java.lang.Object
io.qt.internal.QtJambiObject
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 enum QJSValue::ErrorTypestatic enum
Java wrapper for Qt enum QJSValue::SpecialValueNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQJSValue()
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
(QJSValue.SpecialValue value) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QJSValue
call()
Overloaded function forcall(java.util.Collection)
withargs = java.util.Collections.emptyList()
.final QJSValue
call
(Collection<QJSValue> args) final QJSValue
Overloaded function forcallAsConstructor(java.util.Collection)
withargs = java.util.Collections.emptyList()
.final QJSValue
callAsConstructor
(Collection<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<QJSValue> args) clone()
final boolean
deleteProperty
(String name) final QJSEngine
engine()
Deprecated.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 QJSValue
property
(int arrayIndex) final QJSValue
final 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, boolean value) final void
setProperty
(String name, double value) final void
setProperty
(String name, int value) final void
setProperty
(String name, QJSValue 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 QObject
final String
toString()
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QJSValue
public QJSValue()Overloaded constructor for
QJSValue(io.qt.qml.QJSValue.SpecialValue)
withvalue = io.qt.qml.QJSValue.SpecialValue.UndefinedValue
. -
QJSValue
-
QJSValue
public QJSValue(boolean value) -
QJSValue
-
QJSValue
-
QJSValue
public QJSValue(double value) -
QJSValue
public QJSValue(int value) -
QJSValue
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
call
Overloaded function for
call(java.util.Collection)
withargs = java.util.Collections.emptyList()
. -
call
-
callAsConstructor
Overloaded function for
callAsConstructor(java.util.Collection)
withargs = java.util.Collections.emptyList()
. -
callAsConstructor
-
callWithInstance
Overloaded function for
callWithInstance(io.qt.qml.QJSValue, java.util.Collection)
withargs = java.util.Collections.emptyList()
. -
callWithInstance
-
deleteProperty
-
engine
Deprecated. -
equals
-
errorType
-
hasOwnProperty
-
hasProperty
-
isArray
-
isBoolean
-
isCallable
-
isDate
-
isError
-
isNull
-
isNumber
-
isObject
-
isQMetaObject
-
isQObject
-
isRegExp
-
isString
-
isUndefined
-
property
-
property
-
prototype
-
setProperty
-
setProperty
-
setPrototype
-
strictlyEquals
-
toBoolean
-
toDateTime
-
toInt
-
toDouble
-
toQObject
-
toString
-
toObject
-
setProperty
-
setProperty
-
setProperty
-
setProperty
-
setProperty
-
setProperty
-
setProperty
-
setProperty
-
setProperty
-
setProperty
-
clone
-