java.lang.Object
io.qt.QtObject
io.qt.qml.QJSValue
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Acts as a container for Qt/JavaScript data types
Java wrapper for Qt class QJSValue
-
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
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
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
(QJSValue.SpecialValue value) QJSValue
(QJSManagedValue value) SeeQJSValue::
QJSValue(QJSManagedValue&&) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
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
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) final void
setProperty
(int arrayIndex, double value) final void
setProperty
(int arrayIndex, int value) final void
setProperty
(int arrayIndex, QJSValue value) final void
setProperty
(int arrayIndex, QJSValue.SpecialValue value) final void
setProperty
(int arrayIndex, String value) final void
setProperty
(String name, QJSValue value) final void
setProperty
(String name, boolean value) final void
setProperty
(String name, double value) final void
setProperty
(String name, int value) final void
setProperty
(String name, QJSValue.SpecialValue value) final void
setProperty
(String name, String value) final void
setPrototype
(QJSValue prototype) final boolean
strictlyEquals
(QJSValue other) final boolean
final QDateTime
final double
toDouble()
final int
toInt()
final Object
toObject()
final QJSPrimitiveValue
final QMetaObject
final QObject
final String
toString()
final Object
toVariant
(QJSValue.ObjectConversionBehavior behavior) void
writeTo
(QDataStream arg__1) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QJSValue
See
QJSValue::
QJSValue(QJSManagedValue&&) -
QJSValue
See
QJSValue::
QJSValue(QJSPrimitiveValue&&) -
QJSValue
-
QJSValue
public QJSValue(boolean value) -
QJSValue
-
QJSValue
-
QJSValue
public QJSValue(double value) -
QJSValue
public QJSValue(int value) -
QJSValue
public QJSValue()Overloaded constructor for
QJSValue(io.qt.qml.QJSValue.SpecialValue)
withvalue = io.qt.qml.QJSValue.SpecialValue.UndefinedValue
.
-
-
Method Details
-
call
-
callAsConstructor
-
callWithInstance
@QtUninvokable public final QJSValue callWithInstance(QJSValue instance, Collection<? extends QJSValue> args) -
deleteProperty
-
equals
-
errorType
-
hasOwnProperty
-
hasProperty
-
isArray
-
isBoolean
-
isCallable
-
isDate
-
isError
-
isNull
-
isNumber
-
isObject
-
isQMetaObject
-
isQObject
-
isRegExp
-
isString
-
isUndefined
-
isUrl
-
writeTo
-
assign
-
readFrom
See
operator>>(QDataStream&,
QJSValue&) -
property
-
property
-
prototype
-
setProperty
-
setProperty
-
setPrototype
-
strictlyEquals
-
toBoolean
-
toDateTime
-
toInt
-
toDouble
-
toPrimitive
-
toQMetaObject
-
toQObject
-
toString
-
toObject
-
toVariant
-
setProperty
-
setProperty
-
setProperty
-
setProperty
-
setProperty
-
setProperty
-
setProperty
-
setProperty
-
setProperty
-
setProperty
-
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()
.
-