- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Acts as a container for the Qt Script data types
Java wrapper for Qt class QScriptValue
- Since:
- This class was introduced in Qt 4.3.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQScriptValue::PropertyFlag
static final class
QFlags
type for enumQScriptValue.PropertyFlag
static enum
Java wrapper for Qt enumQScriptValue::ResolveFlag
static final class
QFlags
type for enumQScriptValue.ResolveFlag
static enum
Java wrapper for Qt enumQScriptValue::SpecialValue
-
Constructor Summary
ConstructorDescriptionQScriptValue
(boolean value) QScriptValue
(double value) QScriptValue
(int value) QScriptValue
(QScriptValue other) QScriptValue
(QScriptEngine engine, boolean val) QScriptValue
(QScriptEngine engine, double val) QScriptValue
(QScriptEngine engine, int val) QScriptValue
(QScriptEngine engine, QScriptValue.SpecialValue val) QScriptValue
(QScriptEngine engine, String val) QScriptValue
(String value) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QScriptValue other) final QScriptValue
call()
Overloaded function forcall(io.qt.script.QScriptValue, java.util.Collection)
final QScriptValue
call
(QScriptValue thisObject) Overloaded function forcall(io.qt.script.QScriptValue, java.util.Collection)
withargs = new java.util.ArrayList<>()
.final QScriptValue
call
(QScriptValue thisObject, QScriptValue arguments) final QScriptValue
call
(QScriptValue thisObject, Collection<QScriptValue> args) clone()
Creates and returns a copy of this object.final QScriptValue
Overloaded function forconstruct(java.util.Collection)
withargs = new java.util.ArrayList<>()
.final QScriptValue
construct
(QScriptValue arguments) final QScriptValue
construct
(Collection<QScriptValue> args) final QScriptValue
data()
final QScriptEngine
engine()
final boolean
equals
(QScriptValue other) final boolean
instanceOf
(QScriptValue other) final boolean
isArray()
final boolean
final boolean
isDate()
final boolean
isError()
final boolean
final boolean
isNull()
final boolean
isNumber()
final boolean
isObject()
final boolean
final boolean
isRegExp()
final boolean
isString()
final boolean
final boolean
isValid()
final boolean
final boolean
lessThan
(QScriptValue other) final long
objectId()
SeeQScriptValue::
objectId()const final QScriptValue
property
(int arrayIndex) Overloaded function forproperty(int, io.qt.script.QScriptValue.ResolveFlags)
withmode = new io.qt.script.QScriptValue.ResolveFlags(1)
.final QScriptValue
property
(int arrayIndex, QScriptValue.ResolveFlag ... mode) Overloaded function forproperty(int, io.qt.script.QScriptValue.ResolveFlags)
.final QScriptValue
property
(int arrayIndex, QScriptValue.ResolveFlags mode) final QScriptValue
property
(QScriptString name) Overloaded function forproperty(io.qt.script.QScriptString, io.qt.script.QScriptValue.ResolveFlags)
withmode = new io.qt.script.QScriptValue.ResolveFlags(1)
.final QScriptValue
property
(QScriptString name, QScriptValue.ResolveFlag ... mode) Overloaded function forproperty(io.qt.script.QScriptString, io.qt.script.QScriptValue.ResolveFlags)
.final QScriptValue
property
(QScriptString name, QScriptValue.ResolveFlags mode) final QScriptValue
Overloaded function forproperty(java.lang.String, io.qt.script.QScriptValue.ResolveFlags)
withmode = new io.qt.script.QScriptValue.ResolveFlags(1)
.final QScriptValue
property
(String name, QScriptValue.ResolveFlag ... mode) Overloaded function forproperty(java.lang.String, io.qt.script.QScriptValue.ResolveFlags)
.final QScriptValue
property
(String name, QScriptValue.ResolveFlags mode) propertyFlags
(QScriptString name) Overloaded function forpropertyFlags(io.qt.script.QScriptString, io.qt.script.QScriptValue.ResolveFlags)
withmode = new io.qt.script.QScriptValue.ResolveFlags(1)
.propertyFlags
(QScriptString name, QScriptValue.ResolveFlag ... mode) Overloaded function forpropertyFlags(io.qt.script.QScriptString, io.qt.script.QScriptValue.ResolveFlags)
.propertyFlags
(QScriptString name, QScriptValue.ResolveFlags mode) propertyFlags
(String name) Overloaded function forpropertyFlags(java.lang.String, io.qt.script.QScriptValue.ResolveFlags)
withmode = new io.qt.script.QScriptValue.ResolveFlags(1)
.propertyFlags
(String name, QScriptValue.ResolveFlag ... mode) Overloaded function forpropertyFlags(java.lang.String, io.qt.script.QScriptValue.ResolveFlags)
.propertyFlags
(String name, QScriptValue.ResolveFlags mode) final QScriptValue
final QScriptValue
scope()
SeeQScriptValue::
scope()const final QScriptClass
final void
setData
(QScriptValue data) final void
setProperty
(int arrayIndex, QScriptValue value) Overloaded function forsetProperty(int, io.qt.script.QScriptValue, io.qt.script.QScriptValue.PropertyFlags)
withflags = new io.qt.script.QScriptValue.PropertyFlags(2048)
.final void
setProperty
(int arrayIndex, QScriptValue value, QScriptValue.PropertyFlag ... flags) Overloaded function forsetProperty(int, io.qt.script.QScriptValue, io.qt.script.QScriptValue.PropertyFlags)
.final void
setProperty
(int arrayIndex, QScriptValue value, QScriptValue.PropertyFlags flags) final void
setProperty
(QScriptString name, QScriptValue value) Overloaded function forsetProperty(io.qt.script.QScriptString, io.qt.script.QScriptValue, io.qt.script.QScriptValue.PropertyFlags)
withflags = new io.qt.script.QScriptValue.PropertyFlags(2048)
.final void
setProperty
(QScriptString name, QScriptValue value, QScriptValue.PropertyFlag ... flags) final void
setProperty
(QScriptString name, QScriptValue value, QScriptValue.PropertyFlags flags) final void
setProperty
(String name, QScriptValue value) Overloaded function forsetProperty(java.lang.String, io.qt.script.QScriptValue, io.qt.script.QScriptValue.PropertyFlags)
withflags = new io.qt.script.QScriptValue.PropertyFlags(2048)
.final void
setProperty
(String name, QScriptValue value, QScriptValue.PropertyFlag ... flags) Overloaded function forsetProperty(java.lang.String, io.qt.script.QScriptValue, io.qt.script.QScriptValue.PropertyFlags)
.final void
setProperty
(String name, QScriptValue value, QScriptValue.PropertyFlags flags) final void
setPrototype
(QScriptValue prototype) final void
setScope
(QScriptValue scope) SeeQScriptValue::
setScope(QScriptValue) final void
setScriptClass
(QScriptClass scriptClass) final boolean
strictlyEquals
(QScriptValue other) final boolean
final QDateTime
final double
toDouble()
final int
toInt()
final Integer
final QObject
final QRegExp
toRegExp()
final short
toShort()
final String
toString()
final Object
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QScriptValue
public QScriptValue() -
QScriptValue
- Parameters:
engine
-val
-
-
QScriptValue
- Parameters:
engine
-val
-
-
QScriptValue
- Parameters:
engine
-val
-
-
QScriptValue
- Parameters:
engine
-val
-
-
QScriptValue
- Parameters:
engine
-val
-
-
QScriptValue
- Parameters:
other
-
-
QScriptValue
- Parameters:
value
-- Since:
- This function was introduced in Qt 4.5.
-
QScriptValue
- Parameters:
value
-- Since:
- This function was introduced in Qt 4.5.
-
QScriptValue
public QScriptValue(boolean value) - Parameters:
value
-- Since:
- This function was introduced in Qt 4.5.
-
QScriptValue
public QScriptValue(double value) - Parameters:
value
-- Since:
- This function was introduced in Qt 4.5.
-
QScriptValue
public QScriptValue(int value) - Parameters:
value
-- Since:
- This function was introduced in Qt 4.5.
-
-
Method Details
-
call
@QtUninvokable public final QScriptValue call(QScriptValue thisObject, Collection<QScriptValue> args) - Parameters:
thisObject
-args
-- Returns:
-
call
- Parameters:
thisObject
-arguments
-- Returns:
-
construct
- Parameters:
args
-- Returns:
-
construct
- Parameters:
arguments
-- Returns:
-
data
- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
engine
- Returns:
-
equals
- Parameters:
other
-- Returns:
-
instanceOf
- Parameters:
other
-- Returns:
-
isArray
- Returns:
-
isBoolean
- Returns:
- Since:
- This function was introduced in Qt 4.5.
-
isDate
- Returns:
-
isError
- Returns:
-
isFunction
- Returns:
-
isNull
- Returns:
-
isNumber
- Returns:
-
isObject
- Returns:
-
isQObject
- Returns:
-
isRegExp
- Returns:
-
isString
- Returns:
-
isUndefined
- Returns:
-
isValid
- Returns:
-
isVariant
- Returns:
-
lessThan
- Parameters:
other
-- Returns:
-
objectId
See
QScriptValue::
objectId()const - Returns:
-
assign
- Parameters:
other
-
-
property
@QtUninvokable public final QScriptValue property(QScriptString name, QScriptValue.ResolveFlags mode) - Parameters:
name
-mode
-- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
property
- Parameters:
name
-mode
-- Returns:
-
property
- Parameters:
arrayIndex
-mode
-- Returns:
-
propertyFlags
@QtUninvokable public final QScriptValue.PropertyFlags propertyFlags(QScriptString name, QScriptValue.ResolveFlags mode) - Parameters:
name
-mode
-- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
propertyFlags
@QtUninvokable public final QScriptValue.PropertyFlags propertyFlags(String name, QScriptValue.ResolveFlags mode) - Parameters:
name
-mode
-- Returns:
-
prototype
- Returns:
-
scope
See
QScriptValue::
scope()const - Returns:
-
scriptClass
- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
setData
- Parameters:
data
-- Since:
- This function was introduced in Qt 4.4.
-
setProperty
@QtUninvokable public final void setProperty(QScriptString name, QScriptValue value, QScriptValue.PropertyFlags flags) - Parameters:
name
-value
-flags
-- Since:
- This function was introduced in Qt 4.4.
-
setProperty
@QtUninvokable public final void setProperty(String name, QScriptValue value, QScriptValue.PropertyFlags flags) - Parameters:
name
-value
-flags
-
-
setProperty
@QtUninvokable public final void setProperty(int arrayIndex, QScriptValue value, QScriptValue.PropertyFlags flags) - Parameters:
arrayIndex
-value
-flags
-
-
setPrototype
- Parameters:
prototype
-
-
setScope
See
QScriptValue::
setScope(QScriptValue) - Parameters:
scope
-
-
setScriptClass
- Parameters:
scriptClass
-- Since:
- This function was introduced in Qt 4.4.
-
strictlyEquals
- Parameters:
other
-- Returns:
-
toBoolean
- Returns:
- Since:
- This function was introduced in Qt 4.5.
-
toDateTime
- Returns:
-
toInt
- Returns:
-
toDouble
- Returns:
-
toQObject
- Returns:
-
toRegExp
- Returns:
-
toString
-
toShort
- Returns:
-
toVariant
- Returns:
-
toInteger
-
clone
Creates and returns a copy of this object.
-
call
Overloaded function for
call(io.qt.script.QScriptValue, java.util.Collection)
withargs = new java.util.ArrayList<>()
. -
call
Overloaded function for
call(io.qt.script.QScriptValue, java.util.Collection)
with:
thisObject = new io.qt.script.QScriptValue()
args = new java.util.ArrayList<>()
-
construct
Overloaded function for
construct(java.util.Collection)
withargs = new java.util.ArrayList<>()
. -
property
Overloaded function for
property(io.qt.script.QScriptString, io.qt.script.QScriptValue.ResolveFlags)
withmode = new io.qt.script.QScriptValue.ResolveFlags(1)
. -
property
@QtUninvokable public final QScriptValue property(QScriptString name, QScriptValue.ResolveFlag ... mode) Overloaded function for
property(io.qt.script.QScriptString, io.qt.script.QScriptValue.ResolveFlags)
. -
property
Overloaded function for
property(java.lang.String, io.qt.script.QScriptValue.ResolveFlags)
withmode = new io.qt.script.QScriptValue.ResolveFlags(1)
. -
property
Overloaded function for
property(java.lang.String, io.qt.script.QScriptValue.ResolveFlags)
. -
property
Overloaded function for
property(int, io.qt.script.QScriptValue.ResolveFlags)
withmode = new io.qt.script.QScriptValue.ResolveFlags(1)
. -
property
@QtUninvokable public final QScriptValue property(int arrayIndex, QScriptValue.ResolveFlag ... mode) Overloaded function for
property(int, io.qt.script.QScriptValue.ResolveFlags)
. -
propertyFlags
Overloaded function for
propertyFlags(io.qt.script.QScriptString, io.qt.script.QScriptValue.ResolveFlags)
withmode = new io.qt.script.QScriptValue.ResolveFlags(1)
. -
propertyFlags
@QtUninvokable public final QScriptValue.PropertyFlags propertyFlags(QScriptString name, QScriptValue.ResolveFlag ... mode) Overloaded function for
propertyFlags(io.qt.script.QScriptString, io.qt.script.QScriptValue.ResolveFlags)
. -
propertyFlags
Overloaded function for
propertyFlags(java.lang.String, io.qt.script.QScriptValue.ResolveFlags)
withmode = new io.qt.script.QScriptValue.ResolveFlags(1)
. -
propertyFlags
@QtUninvokable public final QScriptValue.PropertyFlags propertyFlags(String name, QScriptValue.ResolveFlag ... mode) Overloaded function for
propertyFlags(java.lang.String, io.qt.script.QScriptValue.ResolveFlags)
. -
setProperty
Overloaded function for
setProperty(io.qt.script.QScriptString, io.qt.script.QScriptValue, io.qt.script.QScriptValue.PropertyFlags)
withflags = new io.qt.script.QScriptValue.PropertyFlags(2048)
. -
setProperty
@QtUninvokable public final void setProperty(QScriptString name, QScriptValue value, QScriptValue.PropertyFlag ... flags) -
setProperty
Overloaded function for
setProperty(java.lang.String, io.qt.script.QScriptValue, io.qt.script.QScriptValue.PropertyFlags)
withflags = new io.qt.script.QScriptValue.PropertyFlags(2048)
. -
setProperty
@QtUninvokable public final void setProperty(String name, QScriptValue value, QScriptValue.PropertyFlag ... flags) Overloaded function for
setProperty(java.lang.String, io.qt.script.QScriptValue, io.qt.script.QScriptValue.PropertyFlags)
. -
setProperty
Overloaded function for
setProperty(int, io.qt.script.QScriptValue, io.qt.script.QScriptValue.PropertyFlags)
withflags = new io.qt.script.QScriptValue.PropertyFlags(2048)
. -
setProperty
@QtUninvokable public final void setProperty(int arrayIndex, QScriptValue value, QScriptValue.PropertyFlag ... flags) Overloaded function for
setProperty(int, io.qt.script.QScriptValue, io.qt.script.QScriptValue.PropertyFlags)
.
-