java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.qml.QJSValue
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QJSValue extends QtObject implements Cloneable
Acts as a container for Qt/JavaScript data types
Java wrapper for Qt class QJSValue
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QJSValue.ErrorType
Java wrapper for Qt enum QJSValue::ErrorTypestatic class
QJSValue.SpecialValue
Java wrapper for Qt enum QJSValue::SpecialValue -
Constructor Summary
Constructors Modifier Constructor Description QJSValue()
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 other)
QJSValue(QJSValue.SpecialValue value)
protected
QJSValue(QtObject.QPrivateConstructor p)
Constructor for internal use only.QJSValue(String value)
-
Method Summary
Modifier and Type Method Description QJSValue
call()
Overloaded function forcall(java.util.Collection)
withargs = java.util.Collections.emptyList()
.QJSValue
call(Collection<QJSValue> args)
QJSValue
callAsConstructor()
Overloaded function forcallAsConstructor(java.util.Collection)
withargs = java.util.Collections.emptyList()
.QJSValue
callAsConstructor(Collection<QJSValue> args)
QJSValue
callWithInstance(QJSValue instance)
Overloaded function forcallWithInstance(io.qt.qml.QJSValue, java.util.Collection)
withargs = java.util.Collections.emptyList()
.QJSValue
callWithInstance(QJSValue instance, Collection<QJSValue> args)
QJSValue
clone()
boolean
deleteProperty(String name)
QJSEngine
engine()
Deprecated.boolean
equals(QJSValue other)
QJSValue.ErrorType
errorType()
boolean
hasOwnProperty(String name)
boolean
hasProperty(String name)
boolean
isArray()
boolean
isBoolean()
boolean
isCallable()
boolean
isDate()
boolean
isError()
boolean
isNull()
boolean
isNumber()
boolean
isObject()
boolean
isQMetaObject()
boolean
isQObject()
boolean
isRegExp()
boolean
isString()
boolean
isUndefined()
QJSValue
property(int arrayIndex)
QJSValue
property(String name)
QJSValue
prototype()
void
setProperty(int arrayIndex, boolean value)
void
setProperty(int arrayIndex, double value)
void
setProperty(int arrayIndex, int value)
void
setProperty(int arrayIndex, QJSValue value)
void
setProperty(int arrayIndex, QJSValue.SpecialValue value)
void
setProperty(int arrayIndex, String value)
void
setProperty(String name, boolean value)
void
setProperty(String name, double value)
void
setProperty(String name, int value)
void
setProperty(String name, QJSValue value)
void
setProperty(String name, QJSValue.SpecialValue value)
void
setProperty(String name, String value)
void
setPrototype(QJSValue prototype)
boolean
strictlyEquals(QJSValue other)
boolean
toBoolean()
QDateTime
toDateTime()
double
toDouble()
int
toInt()
Object
toObject()
QObject
toQObject()
String
toString()
-
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
@QtUninvokable public final QJSValue callWithInstance(QJSValue instance, Collection<QJSValue> args) -
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
-