- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Acts as a container for Qt/JavaScript data types
Java wrapper for Qt class QJSValue
Either each QJSValue
object or the QJSEngine
object should be explicitly disposed by calling dispose()
to avoid crashes during garbage collection.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQJSValue::ErrorType
static enum
Java wrapper for Qt enumQJSValue::ObjectConversionBehavior
static enum
Java wrapper for Qt enumQJSValue::SpecialValue
-
Constructor Summary
ConstructorDescriptionQJSValue()
Overloaded constructor forQJSValue(io.qt.qml.QJSValue.SpecialValue)
withvalue = io.qt.qml.QJSValue.SpecialValue.UndefinedValue
.QJSValue
(boolean value) QJSValue
(double value) QJSValue
(int value) QJSValue
(QJSPrimitiveValue value) SeeQJSValue::
QJSValue(QJSPrimitiveValue&&) QJSValue
(QJSManagedValue value) SeeQJSValue::
QJSValue(QJSManagedValue&&) QJSValue
(QJSValue.SpecialValue value) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(boolean other) Overloaded function forassign(io.qt.qml.QJSValue)
.final void
assign
(double other) Overloaded function forassign(io.qt.qml.QJSValue)
.final void
assign
(int other) Overloaded function forassign(io.qt.qml.QJSValue)
.final void
final void
assign
(QJSValue.SpecialValue other) Overloaded function forassign(io.qt.qml.QJSValue)
.final void
Overloaded function forassign(io.qt.qml.QJSValue)
.final QJSValue
call()
Overloaded function forcall(java.util.Collection)
withargs = java.util.Collections.emptyList()
.final QJSValue
call
(Collection<? extends QJSValue> args) final QJSValue
Overloaded function forcallAsConstructor(java.util.Collection)
withargs = java.util.Collections.emptyList()
.final QJSValue
callAsConstructor
(Collection<? extends QJSValue> args) final QJSValue
callWithInstance
(QJSValue instance) Overloaded function forcallWithInstance(io.qt.qml.QJSValue, java.util.Collection)
withargs = java.util.Collections.emptyList()
.final QJSValue
callWithInstance
(QJSValue instance, Collection<? extends QJSValue> args) clone()
Creates and returns a copy of this object.final boolean
deleteProperty
(String name) final boolean
equals
(boolean other) Overloaded function forequals(io.qt.qml.QJSValue)
.final boolean
equals
(double other) Overloaded function forequals(io.qt.qml.QJSValue)
.final boolean
equals
(int other) Overloaded function forequals(io.qt.qml.QJSValue)
.final boolean
final boolean
equals
(QJSValue.SpecialValue other) Overloaded function forequals(io.qt.qml.QJSValue)
.final boolean
Overloaded function forequals(io.qt.qml.QJSValue)
.final QJSValue.ErrorType
final boolean
hasOwnProperty
(String name) final boolean
hasProperty
(String name) final boolean
isArray()
final boolean
final boolean
final boolean
isDate()
final boolean
isError()
final boolean
isNull()
final boolean
isNumber()
final boolean
isObject()
final boolean
final boolean
final boolean
isRegExp()
final boolean
isString()
final boolean
final boolean
isUrl()
final QJSValue
property
(int arrayIndex) final QJSValue
final QJSValue
void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QJSValue&) final void
setProperty
(int arrayIndex, boolean value) Overloaded function forsetProperty(int, io.qt.qml.QJSValue)
.final void
setProperty
(int arrayIndex, double value) Overloaded function forsetProperty(int, io.qt.qml.QJSValue)
.final void
setProperty
(int arrayIndex, int value) Overloaded function forsetProperty(int, io.qt.qml.QJSValue)
.final void
setProperty
(int arrayIndex, QJSValue value) final void
setProperty
(int arrayIndex, QJSValue.SpecialValue value) Overloaded function forsetProperty(int, io.qt.qml.QJSValue)
.final void
setProperty
(int arrayIndex, String value) Overloaded function forsetProperty(int, io.qt.qml.QJSValue)
.final void
setProperty
(String name, boolean value) Overloaded function forsetProperty(java.lang.String, io.qt.qml.QJSValue)
.final void
setProperty
(String name, double value) Overloaded function forsetProperty(java.lang.String, io.qt.qml.QJSValue)
.final void
setProperty
(String name, int value) Overloaded function forsetProperty(java.lang.String, io.qt.qml.QJSValue)
.final void
setProperty
(String name, QJSValue value) final void
setProperty
(String name, QJSValue.SpecialValue value) Overloaded function forsetProperty(java.lang.String, io.qt.qml.QJSValue)
.final void
setProperty
(String name, String value) Overloaded function forsetProperty(java.lang.String, io.qt.qml.QJSValue)
.final void
setPrototype
(boolean prototype) Overloaded function forsetPrototype(io.qt.qml.QJSValue)
.final void
setPrototype
(double prototype) Overloaded function forsetPrototype(io.qt.qml.QJSValue)
.final void
setPrototype
(int prototype) Overloaded function forsetPrototype(io.qt.qml.QJSValue)
.final void
setPrototype
(QJSValue prototype) final void
setPrototype
(QJSValue.SpecialValue prototype) Overloaded function forsetPrototype(io.qt.qml.QJSValue)
.final void
setPrototype
(String prototype) Overloaded function forsetPrototype(io.qt.qml.QJSValue)
.final boolean
strictlyEquals
(boolean other) Overloaded function forstrictlyEquals(io.qt.qml.QJSValue)
.final boolean
strictlyEquals
(double other) Overloaded function forstrictlyEquals(io.qt.qml.QJSValue)
.final boolean
strictlyEquals
(int other) Overloaded function forstrictlyEquals(io.qt.qml.QJSValue)
.final boolean
strictlyEquals
(QJSValue other) final boolean
Overloaded function forstrictlyEquals(io.qt.qml.QJSValue)
.final boolean
strictlyEquals
(String other) Overloaded function forstrictlyEquals(io.qt.qml.QJSValue)
.final boolean
final QDateTime
final double
toDouble()
Deprecated.final int
toInt()
final double
toNumber()
final Object
toObject()
Deprecated.UsetoVariant()
instead.final QJSPrimitiveValue
final QMetaObject
final QObject
final String
toString()
final Object
final Object
toVariant
(QJSValue.ObjectConversionBehavior behavior) void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QJSValue) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QJSValue
See
QJSValue::
QJSValue(QJSManagedValue&&) - Parameters:
value
-
-
QJSValue
See
QJSValue::
QJSValue(QJSPrimitiveValue&&) - Parameters:
value
-
-
QJSValue
- Parameters:
other
-
-
QJSValue
- Parameters:
value
-
-
QJSValue
- Parameters:
value
-
-
QJSValue
public QJSValue(boolean value) - Parameters:
value
-
-
QJSValue
public QJSValue(double value) - Parameters:
value
-
-
QJSValue
public QJSValue(int value) - Parameters:
value
-
-
QJSValue
public QJSValue()Overloaded constructor for
QJSValue(io.qt.qml.QJSValue.SpecialValue)
withvalue = io.qt.qml.QJSValue.SpecialValue.UndefinedValue
.
-
-
Method Details
-
call
- Parameters:
args
-- Returns:
-
callAsConstructor
- Parameters:
args
-- Returns:
-
callWithInstance
@QtUninvokable public final QJSValue callWithInstance(QJSValue instance, Collection<? extends QJSValue> args) - Parameters:
instance
-args
-- Returns:
-
deleteProperty
- Parameters:
name
-- Returns:
-
equals
- Parameters:
other
-- Returns:
-
errorType
- Returns:
-
hasOwnProperty
- Parameters:
name
-- Returns:
-
hasProperty
- Parameters:
name
-- Returns:
-
isArray
- Returns:
-
isBoolean
- Returns:
-
isCallable
- Returns:
-
isDate
- Returns:
-
isError
- Returns:
-
isNull
- Returns:
-
isNumber
- Returns:
-
isObject
- Returns:
-
isQMetaObject
- Returns:
-
isQObject
- Returns:
-
isRegExp
- Returns:
-
isString
- Returns:
-
isUndefined
- Returns:
-
isUrl
- Returns:
-
writeTo
See
operator<<(QDataStream&,
QJSValue) - Parameters:
arg__1
-
-
assign
- Parameters:
other
-
-
readFrom
See
operator>>(QDataStream&,
QJSValue&) - Parameters:
arg__1
-
-
property
- Parameters:
name
-- Returns:
-
property
- Parameters:
arrayIndex
-- Returns:
-
prototype
- Returns:
-
setProperty
- Parameters:
name
-value
-
-
setProperty
- Parameters:
arrayIndex
-value
-
-
setPrototype
- Parameters:
prototype
-
-
strictlyEquals
- Parameters:
other
-- Returns:
-
toBoolean
- Returns:
-
toDateTime
- Returns:
-
toInt
- Returns:
-
toNumber
- Returns:
-
toPrimitive
- Returns:
-
toQMetaObject
- Returns:
-
toQObject
- Returns:
-
toString
-
toVariant
- Returns:
-
toVariant
- Parameters:
behavior
-- Returns:
-
clone
Creates and returns a copy of this object.
-
call
Overloaded function for
call(java.util.Collection)
withargs = java.util.Collections.emptyList()
. -
callAsConstructor
Overloaded function for
callAsConstructor(java.util.Collection)
withargs = java.util.Collections.emptyList()
. -
callWithInstance
Overloaded function for
callWithInstance(io.qt.qml.QJSValue, java.util.Collection)
withargs = java.util.Collections.emptyList()
. -
equals
Overloaded function for
equals(io.qt.qml.QJSValue)
. -
equals
Overloaded function for
equals(io.qt.qml.QJSValue)
. -
equals
Overloaded function for
equals(io.qt.qml.QJSValue)
. -
equals
Overloaded function for
equals(io.qt.qml.QJSValue)
. -
equals
Overloaded function for
equals(io.qt.qml.QJSValue)
. -
assign
Overloaded function for
assign(io.qt.qml.QJSValue)
. -
assign
Overloaded function for
assign(io.qt.qml.QJSValue)
. -
assign
Overloaded function for
assign(io.qt.qml.QJSValue)
. -
assign
Overloaded function for
assign(io.qt.qml.QJSValue)
. -
assign
Overloaded function for
assign(io.qt.qml.QJSValue)
. -
setProperty
Overloaded function for
setProperty(java.lang.String, io.qt.qml.QJSValue)
. -
setProperty
Overloaded function for
setProperty(java.lang.String, io.qt.qml.QJSValue)
. -
setProperty
Overloaded function for
setProperty(java.lang.String, io.qt.qml.QJSValue)
. -
setProperty
Overloaded function for
setProperty(java.lang.String, io.qt.qml.QJSValue)
. -
setProperty
Overloaded function for
setProperty(java.lang.String, io.qt.qml.QJSValue)
. -
setProperty
Overloaded function for
setProperty(int, io.qt.qml.QJSValue)
. -
setProperty
Overloaded function for
setProperty(int, io.qt.qml.QJSValue)
. -
setProperty
Overloaded function for
setProperty(int, io.qt.qml.QJSValue)
. -
setProperty
Overloaded function for
setProperty(int, io.qt.qml.QJSValue)
. -
setProperty
Overloaded function for
setProperty(int, io.qt.qml.QJSValue)
. -
setPrototype
Overloaded function for
setPrototype(io.qt.qml.QJSValue)
. -
setPrototype
Overloaded function for
setPrototype(io.qt.qml.QJSValue)
. -
setPrototype
Overloaded function for
setPrototype(io.qt.qml.QJSValue)
. -
setPrototype
Overloaded function for
setPrototype(io.qt.qml.QJSValue)
. -
setPrototype
Overloaded function for
setPrototype(io.qt.qml.QJSValue)
. -
strictlyEquals
Overloaded function for
strictlyEquals(io.qt.qml.QJSValue)
. -
strictlyEquals
Overloaded function for
strictlyEquals(io.qt.qml.QJSValue)
. -
strictlyEquals
Overloaded function for
strictlyEquals(io.qt.qml.QJSValue)
. -
strictlyEquals
Overloaded function for
strictlyEquals(io.qt.qml.QJSValue)
. -
strictlyEquals
Overloaded function for
strictlyEquals(io.qt.qml.QJSValue)
. -
toDouble
Deprecated.UsetoNumber()
instead. -
toObject
Deprecated.UsetoVariant()
instead.
-
toNumber()
instead.