- All Implemented Interfaces:
QtObjectInterface
Represents a value on the JavaScript heap belonging to a QJSEngine
Java wrapper for Qt class QJSManagedValue
- Since:
- This class was introduced in Qt 6.1.
Either each
QJSManagedValue
object or theQJSEngine
object should be explicitly disposed by callingdispose()
to avoid crashes during garbage collection.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionQJSManagedValue
(QJSPrimitiveValue value, QJSEngine engine) QJSManagedValue
(QJSValue value, QJSEngine engine) QJSManagedValue
(String string, QJSEngine engine) QJSManagedValue
(Object variant, QJSEngine engine) -
Method Summary
Modifier and TypeMethodDescriptionfinal QJSValue
call()
Overloaded function forcall(java.util.Collection)
witharguments = java.util.Collections.emptyList()
.final QJSValue
call
(Collection<? extends QJSValue> arguments) final QJSValue
Overloaded function forcallAsConstructor(java.util.Collection)
witharguments = java.util.Collections.emptyList()
.final QJSValue
callAsConstructor
(Collection<? extends QJSValue> arguments) final QJSValue
callWithInstance
(QJSValue instance) Overloaded function forcallWithInstance(io.qt.qml.QJSValue, java.util.Collection)
witharguments = java.util.Collections.emptyList()
.final QJSValue
callWithInstance
(QJSValue instance, Collection<? extends QJSValue> arguments) final boolean
deleteProperty
(int arrayIndex) final boolean
deleteProperty
(String name) final QJSEngine
engine()
final boolean
equals
(QJSManagedValue other) final boolean
hasOwnProperty
(int arrayIndex) final boolean
hasOwnProperty
(String name) final boolean
hasProperty
(int arrayIndex) final boolean
hasProperty
(String name) final boolean
isArray()
final boolean
final boolean
isDate()
final boolean
isError()
final boolean
final boolean
final boolean
SeeQJSManagedValue::
isJsMetaType()const final boolean
isNull()
final boolean
isNumber()
final boolean
isObject()
final boolean
final boolean
final boolean
final boolean
isString()
final boolean
isSymbol()
final boolean
final boolean
isUrl()
final boolean
final QJSManagedValue
Overloaded function forjsMetaInstantiate(java.util.Collection)
withvalues = java.util.Collections.emptyList()
.final QJSManagedValue
jsMetaInstantiate
(Collection<? extends QJSValue> values) SeeQJSManagedValue::
jsMetaInstantiate(QJSValueList)const final QStringList
SeeQJSManagedValue::
jsMetaMembers()const final QJSManagedValue
SeeQJSManagedValue::
jsMetaType()const final QJSValue
property
(int arrayIndex) final QJSValue
final QJSManagedValue
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
(QJSManagedValue prototype) final boolean
strictlyEquals
(QJSManagedValue other) final boolean
final QDateTime
final int
final QJSValue
final double
toNumber()
final QJSPrimitiveValue
final QMetaObject
final QObject
final QRegularExpression
final String
toString()
final QUrl
toUrl()
final Object
final QJSManagedValue.Type
type()
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QJSManagedValue
public QJSManagedValue() -
QJSManagedValue
- Parameters:
value
-engine
-
-
QJSManagedValue
- Parameters:
value
-engine
-
-
QJSManagedValue
- Parameters:
string
-engine
-
-
QJSManagedValue
- Parameters:
variant
-engine
-
-
-
Method Details
-
call
- Parameters:
arguments
-- Returns:
-
callAsConstructor
- Parameters:
arguments
-- Returns:
-
callWithInstance
@QtUninvokable public final QJSValue callWithInstance(QJSValue instance, Collection<? extends QJSValue> arguments) - Parameters:
instance
-arguments
-- Returns:
-
deleteProperty
- Parameters:
name
-- Returns:
-
deleteProperty
- Parameters:
arrayIndex
-- Returns:
-
engine
- Returns:
-
equals
- Parameters:
other
-- Returns:
-
hasOwnProperty
- Parameters:
name
-- Returns:
-
hasOwnProperty
- Parameters:
arrayIndex
-- Returns:
-
hasProperty
- Parameters:
name
-- Returns:
-
hasProperty
- Parameters:
arrayIndex
-- Returns:
-
isArray
- Returns:
-
isBoolean
- Returns:
-
isDate
- Returns:
-
isError
- Returns:
-
isFunction
- Returns:
-
isInteger
- Returns:
-
isJsMetaType
See
QJSManagedValue::
isJsMetaType()const - Returns:
-
isNull
- Returns:
-
isNumber
- Returns:
-
isObject
- Returns:
-
isQMetaObject
- Returns:
-
isQObject
- Returns:
-
isRegularExpression
- Returns:
-
isString
- Returns:
-
isSymbol
- Returns:
-
isUndefined
- Returns:
-
isUrl
- Returns:
-
isVariant
- Returns:
-
jsMetaInstantiate
@QtUninvokable public final QJSManagedValue jsMetaInstantiate(Collection<? extends QJSValue> values) See
QJSManagedValue::
jsMetaInstantiate(QJSValueList)const - Parameters:
values
-- Returns:
-
jsMetaMembers
See
QJSManagedValue::
jsMetaMembers()const - Returns:
-
jsMetaType
See
QJSManagedValue::
jsMetaType()const - Returns:
-
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:
-
toInteger
- Returns:
-
toJSValue
- Returns:
-
toNumber
- Returns:
-
toPrimitive
- Returns:
-
toQMetaObject
- Returns:
-
toQObject
- Returns:
-
toRegularExpression
- Returns:
-
toString
-
toUrl
- Returns:
-
toVariant
- Returns:
-
type
- Returns:
-
call
Overloaded function for
call(java.util.Collection)
witharguments = java.util.Collections.emptyList()
. -
callAsConstructor
Overloaded function for
callAsConstructor(java.util.Collection)
witharguments = java.util.Collections.emptyList()
. -
callWithInstance
Overloaded function for
callWithInstance(io.qt.qml.QJSValue, java.util.Collection)
witharguments = java.util.Collections.emptyList()
. -
jsMetaInstantiate
Overloaded function for
jsMetaInstantiate(java.util.Collection)
withvalues = java.util.Collections.emptyList()
. -
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)
.
-