All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.script.QScriptValue Maven / Gradle / Ivy

Go to download

Classes for making Qt applications scriptable. Deprecated in favor of the QJS* classes in the Qt QML module.

The newest version!
package io.qt.script;

import io.qt.*;


/**
 * 

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. */ public class QScriptValue extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

Java wrapper for Qt enum QScriptValue::PropertyFlag

* * @see PropertyFlags */ public enum PropertyFlag implements QtFlagEnumerator { /** *

Representing QScriptValue::ReadOnly

*/ ReadOnly(1), /** *

Representing QScriptValue::Undeletable

*/ Undeletable(2), /** *

Representing QScriptValue::SkipInEnumeration

*/ SkipInEnumeration(4), /** *

Representing QScriptValue::PropertyGetter

*/ PropertyGetter(8), /** *

Representing QScriptValue::PropertySetter

*/ PropertySetter(16), /** *

Representing QScriptValue::QObjectMember

*/ QObjectMember(32), /** *

Representing QScriptValue::KeepExistingFlags

*/ KeepExistingFlags(2048), /** *

Representing QScriptValue::UserRange

*/ UserRange(-16777216); static { QtJambi_LibraryUtilities.initialize(); } private PropertyFlag(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ @Override public @NonNull PropertyFlags asFlags() { return new PropertyFlags(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public @NonNull PropertyFlags combined(@NonNull PropertyFlag e) { return asFlags().setFlag(e, true); } /** * Excludes other enum entry from a flag of this entry. * @param e enum entry * @return new flag */ public @NonNull PropertyFlags cleared(@NonNull PropertyFlag e) { return asFlags().setFlag(e, false); } /** * Creates a new {@link PropertyFlags} from the entries. * @param values entries * @return new flag */ public static @NonNull PropertyFlags flags(@Nullable PropertyFlag @NonNull... values) { return new PropertyFlags(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull PropertyFlag resolve(int value) { switch (value) { case 1: return ReadOnly; case 2: return Undeletable; case 4: return SkipInEnumeration; case 8: return PropertyGetter; case 16: return PropertySetter; case 32: return QObjectMember; case 2048: return KeepExistingFlags; case -16777216: return UserRange; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** * {@link QFlags} type for enum {@link PropertyFlag} */ public static final class PropertyFlags extends QFlags implements Comparable { private static final long serialVersionUID = 0xc15141a73ea3ed05L; static { QtJambi_LibraryUtilities.initialize(); } /** * Creates a new PropertyFlags where the flags in args are set. * @param args enum entries */ public PropertyFlags(@Nullable PropertyFlag @NonNull... args){ super(args); } /** * Creates a new PropertyFlags with given value. * @param value */ public PropertyFlags(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new PropertyFlags */ @Override public final @NonNull PropertyFlags combined(@StrictNonNull PropertyFlag e){ return new PropertyFlags(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ @Override public final @NonNull PropertyFlags setFlag(@Nullable PropertyFlag e){ return setFlag(e, true); } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ @Override public final @NonNull PropertyFlags setFlag(@Nullable PropertyFlag e, boolean on){ if (on) { setValue(value() | e.value()); }else { setValue(value() & ~e.value()); } return this; } /** * Returns an array of flag objects represented by this PropertyFlags. * @return array of enum entries */ @Override public final @NonNull PropertyFlag @NonNull[] flags(){ return super.flags(PropertyFlag.values()); } /** * {@inheritDoc} */ @Override public final @NonNull PropertyFlags clone(){ return new PropertyFlags(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(@StrictNonNull PropertyFlags other){ return Integer.compare(value(), other.value()); } } /** *

Java wrapper for Qt enum QScriptValue::ResolveFlag

* * @see ResolveFlags */ public enum ResolveFlag implements QtFlagEnumerator { /** *

Representing QScriptValue::ResolveLocal

*/ ResolveLocal(0), /** *

Representing QScriptValue::ResolvePrototype

*/ ResolvePrototype(1), /** *

Representing QScriptValue::ResolveScope

*/ ResolveScope(2), /** *

Representing QScriptValue::ResolveFull

*/ ResolveFull(3); static { QtJambi_LibraryUtilities.initialize(); } private ResolveFlag(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ @Override public @NonNull ResolveFlags asFlags() { return new ResolveFlags(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public @NonNull ResolveFlags combined(@NonNull ResolveFlag e) { return asFlags().setFlag(e, true); } /** * Excludes other enum entry from a flag of this entry. * @param e enum entry * @return new flag */ public @NonNull ResolveFlags cleared(@NonNull ResolveFlag e) { return asFlags().setFlag(e, false); } /** * Creates a new {@link ResolveFlags} from the entries. * @param values entries * @return new flag */ public static @NonNull ResolveFlags flags(@Nullable ResolveFlag @NonNull... values) { return new ResolveFlags(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull ResolveFlag resolve(int value) { switch (value) { case 0: return ResolveLocal; case 1: return ResolvePrototype; case 2: return ResolveScope; case 3: return ResolveFull; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** * {@link QFlags} type for enum {@link ResolveFlag} */ public static final class ResolveFlags extends QFlags implements Comparable { private static final long serialVersionUID = 0x3cc119ddc5828ef8L; static { QtJambi_LibraryUtilities.initialize(); } /** * Creates a new ResolveFlags where the flags in args are set. * @param args enum entries */ public ResolveFlags(@Nullable ResolveFlag @NonNull... args){ super(args); } /** * Creates a new ResolveFlags with given value. * @param value */ public ResolveFlags(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new ResolveFlags */ @Override public final @NonNull ResolveFlags combined(@StrictNonNull ResolveFlag e){ return new ResolveFlags(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ @Override public final @NonNull ResolveFlags setFlag(@Nullable ResolveFlag e){ return setFlag(e, true); } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ @Override public final @NonNull ResolveFlags setFlag(@Nullable ResolveFlag e, boolean on){ if (on) { setValue(value() | e.value()); }else { setValue(value() & ~e.value()); } return this; } /** * Returns an array of flag objects represented by this ResolveFlags. * @return array of enum entries */ @Override public final @NonNull ResolveFlag @NonNull[] flags(){ return super.flags(ResolveFlag.values()); } /** * {@inheritDoc} */ @Override public final @NonNull ResolveFlags clone(){ return new ResolveFlags(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(@StrictNonNull ResolveFlags other){ return Integer.compare(value(), other.value()); } } /** *

Java wrapper for Qt enum QScriptValue::SpecialValue

*/ public enum SpecialValue implements QtEnumerator { /** *

Representing QScriptValue::NullValue

*/ NullValue(0), /** *

Representing QScriptValue::UndefinedValue

*/ UndefinedValue(1); static { QtJambi_LibraryUtilities.initialize(); } private SpecialValue(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull SpecialValue resolve(int value) { switch (value) { case 0: return NullValue; case 1: return UndefinedValue; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QScriptValue::QScriptValue()

*/ public QScriptValue(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QScriptValue instance); /** *

See QScriptValue::QScriptValue(QScriptEngine*,QScriptValue::SpecialValue)

* @param engine * @param val */ public QScriptValue(io.qt.script.@Nullable QScriptEngine engine, io.qt.script.QScriptValue.@NonNull SpecialValue val){ super((QPrivateConstructor)null); initialize_native(this, engine, val); } private native static void initialize_native(QScriptValue instance, io.qt.script.QScriptEngine engine, io.qt.script.QScriptValue.SpecialValue val); /** *

See QScriptValue::QScriptValue(QScriptEngine*,QString)

* @param engine * @param val */ public QScriptValue(io.qt.script.@Nullable QScriptEngine engine, java.lang.@NonNull String val){ super((QPrivateConstructor)null); initialize_native(this, engine, val); } private native static void initialize_native(QScriptValue instance, io.qt.script.QScriptEngine engine, java.lang.String val); /** *

See QScriptValue::QScriptValue(QScriptEngine*,bool)

* @param engine * @param val */ public QScriptValue(io.qt.script.@Nullable QScriptEngine engine, boolean val){ super((QPrivateConstructor)null); initialize_native(this, engine, val); } private native static void initialize_native(QScriptValue instance, io.qt.script.QScriptEngine engine, boolean val); /** *

See QScriptValue::QScriptValue(QScriptEngine*,qsreal)

* @param engine * @param val */ public QScriptValue(io.qt.script.@Nullable QScriptEngine engine, double val){ super((QPrivateConstructor)null); initialize_native(this, engine, val); } private native static void initialize_native(QScriptValue instance, io.qt.script.QScriptEngine engine, double val); /** *

See QScriptValue::QScriptValue(QScriptEngine*,int)

* @param engine * @param val */ public QScriptValue(io.qt.script.@Nullable QScriptEngine engine, int val){ super((QPrivateConstructor)null); initialize_native(this, engine, val); } private native static void initialize_native(QScriptValue instance, io.qt.script.QScriptEngine engine, int val); /** *

See QScriptValue::QScriptValue(QScriptValue)

* @param other */ public QScriptValue(io.qt.script.@NonNull QScriptValue other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QScriptValue instance, io.qt.script.QScriptValue other); /** *

See QScriptValue::QScriptValue(QScriptValue::SpecialValue)

* @since This function was introduced in Qt 4.5. * @param value */ public QScriptValue(io.qt.script.QScriptValue.@NonNull SpecialValue value){ super((QPrivateConstructor)null); initialize_native(this, value); } private native static void initialize_native(QScriptValue instance, io.qt.script.QScriptValue.SpecialValue value); /** *

See QScriptValue::QScriptValue(QString)

* @since This function was introduced in Qt 4.5. * @param value */ public QScriptValue(java.lang.@NonNull String value){ super((QPrivateConstructor)null); initialize_native(this, value); } private native static void initialize_native(QScriptValue instance, java.lang.String value); /** *

See QScriptValue::QScriptValue(bool)

* @since This function was introduced in Qt 4.5. * @param value */ public QScriptValue(boolean value){ super((QPrivateConstructor)null); initialize_native(this, value); } private native static void initialize_native(QScriptValue instance, boolean value); /** *

See QScriptValue::QScriptValue(qsreal)

* @since This function was introduced in Qt 4.5. * @param value */ public QScriptValue(double value){ super((QPrivateConstructor)null); initialize_native(this, value); } private native static void initialize_native(QScriptValue instance, double value); /** *

See QScriptValue::QScriptValue(int)

* @since This function was introduced in Qt 4.5. * @param value */ public QScriptValue(int value){ super((QPrivateConstructor)null); initialize_native(this, value); } private native static void initialize_native(QScriptValue instance, int value); /** *

See QScriptValue::call(QScriptValue,QScriptValueList)

* @param thisObject * @param args * @return */ @QtUninvokable public final io.qt.script.@NonNull QScriptValue call(io.qt.script.@NonNull QScriptValue thisObject, java.util.@Nullable Collection<@NonNull QScriptValue> args){ return call_native_cref_QScriptValue_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(thisObject), args); } @QtUninvokable private native io.qt.script.QScriptValue call_native_cref_QScriptValue_cref_QList(long __this__nativeId, long thisObject, java.util.Collection<@NonNull QScriptValue> args); /** *

See QScriptValue::call(QScriptValue,QScriptValue)

* @param thisObject * @param arguments * @return */ @QtUninvokable public final io.qt.script.@NonNull QScriptValue call(io.qt.script.@NonNull QScriptValue thisObject, io.qt.script.@NonNull QScriptValue arguments){ return call_native_cref_QScriptValue_cref_QScriptValue(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(thisObject), QtJambi_LibraryUtilities.internal.checkedNativeId(arguments)); } @QtUninvokable private native io.qt.script.QScriptValue call_native_cref_QScriptValue_cref_QScriptValue(long __this__nativeId, long thisObject, long arguments); /** *

See QScriptValue::construct(QScriptValueList)

* @param args * @return */ @QtUninvokable public final io.qt.script.@NonNull QScriptValue construct(java.util.@Nullable Collection<@NonNull QScriptValue> args){ return construct_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), args); } @QtUninvokable private native io.qt.script.QScriptValue construct_native_cref_QList(long __this__nativeId, java.util.Collection<@NonNull QScriptValue> args); /** *

See QScriptValue::construct(QScriptValue)

* @param arguments * @return */ @QtUninvokable public final io.qt.script.@NonNull QScriptValue construct(io.qt.script.@NonNull QScriptValue arguments){ return construct_native_cref_QScriptValue(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arguments)); } @QtUninvokable private native io.qt.script.QScriptValue construct_native_cref_QScriptValue(long __this__nativeId, long arguments); /** *

See QScriptValue::data()const

* @since This function was introduced in Qt 4.4. * @return */ @QtUninvokable public final io.qt.script.@NonNull QScriptValue data(){ return data_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.script.QScriptValue data_native_constfct(long __this__nativeId); /** *

See QScriptValue::engine()const

* @return */ @QtUninvokable public final io.qt.script.@Nullable QScriptEngine engine(){ return engine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.script.QScriptEngine engine_native_constfct(long __this__nativeId); /** *

See QScriptValue::equals(QScriptValue)const

* @param other * @return */ @QtUninvokable public final boolean equals(io.qt.script.@NonNull QScriptValue other){ return equals_native_cref_QScriptValue_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native boolean equals_native_cref_QScriptValue_constfct(long __this__nativeId, long other); /** *

See QScriptValue::instanceOf(QScriptValue)const

* @param other * @return */ @QtUninvokable public final boolean instanceOf(io.qt.script.@NonNull QScriptValue other){ return instanceOf_native_cref_QScriptValue_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native boolean instanceOf_native_cref_QScriptValue_constfct(long __this__nativeId, long other); /** *

See QScriptValue::isArray()const

* @return */ @QtUninvokable public final boolean isArray(){ return isArray_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isArray_native_constfct(long __this__nativeId); /** *

See QScriptValue::isBool()const

* @since This function was introduced in Qt 4.5. * @return */ @QtUninvokable public final boolean isBoolean(){ return isBoolean_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isBoolean_native_constfct(long __this__nativeId); /** *

See QScriptValue::isDate()const

* @return */ @QtUninvokable public final boolean isDate(){ return isDate_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isDate_native_constfct(long __this__nativeId); /** *

See QScriptValue::isError()const

* @return */ @QtUninvokable public final boolean isError(){ return isError_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isError_native_constfct(long __this__nativeId); /** *

See QScriptValue::isFunction()const

* @return */ @QtUninvokable public final boolean isFunction(){ return isFunction_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isFunction_native_constfct(long __this__nativeId); /** *

See QScriptValue::isNull()const

* @return */ @QtUninvokable public final boolean isNull(){ return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isNull_native_constfct(long __this__nativeId); /** *

See QScriptValue::isNumber()const

* @return */ @QtUninvokable public final boolean isNumber(){ return isNumber_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isNumber_native_constfct(long __this__nativeId); /** *

See QScriptValue::isObject()const

* @return */ @QtUninvokable public final boolean isObject(){ return isObject_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isObject_native_constfct(long __this__nativeId); /** *

See QScriptValue::isQObject()const

* @return */ @QtUninvokable public final boolean isQObject(){ return isQObject_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isQObject_native_constfct(long __this__nativeId); /** *

See QScriptValue::isRegExp()const

* @return */ @QtUninvokable public final boolean isRegExp(){ return isRegExp_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isRegExp_native_constfct(long __this__nativeId); /** *

See QScriptValue::isString()const

* @return */ @QtUninvokable public final boolean isString(){ return isString_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isString_native_constfct(long __this__nativeId); /** *

See QScriptValue::isUndefined()const

* @return */ @QtUninvokable public final boolean isUndefined(){ return isUndefined_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isUndefined_native_constfct(long __this__nativeId); /** *

See QScriptValue::isValid()const

* @return */ @QtUninvokable public final boolean isValid(){ return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isValid_native_constfct(long __this__nativeId); /** *

See QScriptValue::isVariant()const

* @return */ @QtUninvokable public final boolean isVariant(){ return isVariant_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isVariant_native_constfct(long __this__nativeId); /** *

See QScriptValue::lessThan(QScriptValue)const

* @param other * @return */ @QtUninvokable public final boolean lessThan(io.qt.script.@NonNull QScriptValue other){ return lessThan_native_cref_QScriptValue_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native boolean lessThan_native_cref_QScriptValue_constfct(long __this__nativeId, long other); /** *

See QScriptValue::objectId()const

* @return */ @QtUninvokable public final long objectId(){ return objectId_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native long objectId_native_constfct(long __this__nativeId); /** *

See QScriptValue::operator=(QScriptValue)

* @param other */ @QtUninvokable public final void assign(io.qt.script.@NonNull QScriptValue other){ assign_native_cref_QScriptValue(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void assign_native_cref_QScriptValue(long __this__nativeId, long other); /** *

See QScriptValue::property(QScriptString,QScriptValue::ResolveFlags)const

* @since This function was introduced in Qt 4.4. * @param name * @param mode * @return */ @QtUninvokable public final io.qt.script.@NonNull QScriptValue property(io.qt.script.@NonNull QScriptString name, io.qt.script.QScriptValue.@NonNull ResolveFlags mode){ return property_native_cref_QScriptString_cref_QScriptValue_ResolveFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(name), mode.value()); } @QtUninvokable private native io.qt.script.QScriptValue property_native_cref_QScriptString_cref_QScriptValue_ResolveFlags_constfct(long __this__nativeId, long name, int mode); /** *

See QScriptValue::property(QString,QScriptValue::ResolveFlags)const

* @param name * @param mode * @return */ @QtUninvokable public final io.qt.script.@NonNull QScriptValue property(java.lang.@NonNull String name, io.qt.script.QScriptValue.@NonNull ResolveFlags mode){ return property_native_cref_QString_cref_QScriptValue_ResolveFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name, mode.value()); } @QtUninvokable private native io.qt.script.QScriptValue property_native_cref_QString_cref_QScriptValue_ResolveFlags_constfct(long __this__nativeId, java.lang.String name, int mode); /** *

See QScriptValue::property(quint32,QScriptValue::ResolveFlags)const

* @param arrayIndex * @param mode * @return */ @QtUninvokable public final io.qt.script.@NonNull QScriptValue property(int arrayIndex, io.qt.script.QScriptValue.@NonNull ResolveFlags mode){ return property_native_quint32_cref_QScriptValue_ResolveFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arrayIndex, mode.value()); } @QtUninvokable private native io.qt.script.QScriptValue property_native_quint32_cref_QScriptValue_ResolveFlags_constfct(long __this__nativeId, int arrayIndex, int mode); /** *

See QScriptValue::propertyFlags(QScriptString,QScriptValue::ResolveFlags)const

* @since This function was introduced in Qt 4.4. * @param name * @param mode * @return */ @QtUninvokable public final io.qt.script.QScriptValue.@NonNull PropertyFlags propertyFlags(io.qt.script.@NonNull QScriptString name, io.qt.script.QScriptValue.@NonNull ResolveFlags mode){ return new io.qt.script.QScriptValue.PropertyFlags(propertyFlags_native_cref_QScriptString_cref_QScriptValue_ResolveFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(name), mode.value())); } @QtUninvokable private native int propertyFlags_native_cref_QScriptString_cref_QScriptValue_ResolveFlags_constfct(long __this__nativeId, long name, int mode); /** *

See QScriptValue::propertyFlags(QString,QScriptValue::ResolveFlags)const

* @param name * @param mode * @return */ @QtUninvokable public final io.qt.script.QScriptValue.@NonNull PropertyFlags propertyFlags(java.lang.@NonNull String name, io.qt.script.QScriptValue.@NonNull ResolveFlags mode){ return new io.qt.script.QScriptValue.PropertyFlags(propertyFlags_native_cref_QString_cref_QScriptValue_ResolveFlags_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name, mode.value())); } @QtUninvokable private native int propertyFlags_native_cref_QString_cref_QScriptValue_ResolveFlags_constfct(long __this__nativeId, java.lang.String name, int mode); /** *

See QScriptValue::prototype()const

* @return */ @QtUninvokable public final io.qt.script.@NonNull QScriptValue prototype(){ return prototype_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.script.QScriptValue prototype_native_constfct(long __this__nativeId); /** *

See QScriptValue::scope()const

* @return */ @QtUninvokable public final io.qt.script.@NonNull QScriptValue scope(){ return scope_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.script.QScriptValue scope_native_constfct(long __this__nativeId); /** *

See QScriptValue::scriptClass()const

* @since This function was introduced in Qt 4.4. * @return */ @QtUninvokable public final io.qt.script.@Nullable QScriptClass scriptClass(){ return scriptClass_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.script.QScriptClass scriptClass_native_constfct(long __this__nativeId); /** *

See QScriptValue::setData(QScriptValue)

* @since This function was introduced in Qt 4.4. * @param data */ @QtUninvokable public final void setData(io.qt.script.@NonNull QScriptValue data){ setData_native_cref_QScriptValue(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data)); } @QtUninvokable private native void setData_native_cref_QScriptValue(long __this__nativeId, long data); /** *

See QScriptValue::setProperty(QScriptString,QScriptValue,PropertyFlags)

* @since This function was introduced in Qt 4.4. * @param name * @param value * @param flags */ @QtUninvokable public final void setProperty(io.qt.script.@NonNull QScriptString name, io.qt.script.@NonNull QScriptValue value, io.qt.script.QScriptValue.@NonNull PropertyFlags flags){ setProperty_native_cref_QScriptString_cref_QScriptValue_cref_QScriptValue_PropertyFlags(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(name), QtJambi_LibraryUtilities.internal.checkedNativeId(value), flags.value()); } @QtUninvokable private native void setProperty_native_cref_QScriptString_cref_QScriptValue_cref_QScriptValue_PropertyFlags(long __this__nativeId, long name, long value, int flags); /** *

See QScriptValue::setProperty(QString,QScriptValue,PropertyFlags)

* @param name * @param value * @param flags */ @QtUninvokable public final void setProperty(java.lang.@NonNull String name, io.qt.script.@NonNull QScriptValue value, io.qt.script.QScriptValue.@NonNull PropertyFlags flags){ setProperty_native_cref_QString_cref_QScriptValue_cref_QScriptValue_PropertyFlags(QtJambi_LibraryUtilities.internal.nativeId(this), name, QtJambi_LibraryUtilities.internal.checkedNativeId(value), flags.value()); } @QtUninvokable private native void setProperty_native_cref_QString_cref_QScriptValue_cref_QScriptValue_PropertyFlags(long __this__nativeId, java.lang.String name, long value, int flags); /** *

See QScriptValue::setProperty(quint32,QScriptValue,PropertyFlags)

* @param arrayIndex * @param value * @param flags */ @QtUninvokable public final void setProperty(int arrayIndex, io.qt.script.@NonNull QScriptValue value, io.qt.script.QScriptValue.@NonNull PropertyFlags flags){ setProperty_native_quint32_cref_QScriptValue_cref_QScriptValue_PropertyFlags(QtJambi_LibraryUtilities.internal.nativeId(this), arrayIndex, QtJambi_LibraryUtilities.internal.checkedNativeId(value), flags.value()); } @QtUninvokable private native void setProperty_native_quint32_cref_QScriptValue_cref_QScriptValue_PropertyFlags(long __this__nativeId, int arrayIndex, long value, int flags); /** *

See QScriptValue::setPrototype(QScriptValue)

* @param prototype */ @QtUninvokable public final void setPrototype(io.qt.script.@NonNull QScriptValue prototype){ setPrototype_native_cref_QScriptValue(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(prototype)); } @QtUninvokable private native void setPrototype_native_cref_QScriptValue(long __this__nativeId, long prototype); /** *

See QScriptValue::setScope(QScriptValue)

* @param scope */ @QtUninvokable public final void setScope(io.qt.script.@NonNull QScriptValue scope){ setScope_native_cref_QScriptValue(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(scope)); } @QtUninvokable private native void setScope_native_cref_QScriptValue(long __this__nativeId, long scope); /** *

See QScriptValue::setScriptClass(QScriptClass*)

* @since This function was introduced in Qt 4.4. * @param scriptClass */ @QtUninvokable public final void setScriptClass(io.qt.script.@Nullable QScriptClass scriptClass){ setScriptClass_native_QScriptClass_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(scriptClass)); } @QtUninvokable private native void setScriptClass_native_QScriptClass_ptr(long __this__nativeId, long scriptClass); /** *

See QScriptValue::strictlyEquals(QScriptValue)const

* @param other * @return */ @QtUninvokable public final boolean strictlyEquals(io.qt.script.@NonNull QScriptValue other){ return strictlyEquals_native_cref_QScriptValue_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native boolean strictlyEquals_native_cref_QScriptValue_constfct(long __this__nativeId, long other); /** *

See QScriptValue::toBool()const

* @since This function was introduced in Qt 4.5. * @return */ @QtUninvokable public final boolean toBoolean(){ return toBoolean_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean toBoolean_native_constfct(long __this__nativeId); /** *

See QScriptValue::toDateTime()const

* @return */ @QtUninvokable public final io.qt.core.@NonNull QDateTime toDateTime(){ return toDateTime_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QDateTime toDateTime_native_constfct(long __this__nativeId); /** *

See QScriptValue::toInt32()const

* @return */ @QtUninvokable public final int toInt(){ return toInt_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int toInt_native_constfct(long __this__nativeId); @QtUninvokable private final double private_toInteger(){ return private_toInteger_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double private_toInteger_native_constfct(long __this__nativeId); /** *

See QScriptValue::toNumber()const

* @return */ @QtUninvokable public final double toDouble(){ return toDouble_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double toDouble_native_constfct(long __this__nativeId); /** *

See QScriptValue::toQObject()const

* @return */ @QtUninvokable public final io.qt.core.@Nullable QObject toQObject(){ return toQObject_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QObject toQObject_native_constfct(long __this__nativeId); /** *

See QScriptValue::toRegExp()const

* @return */ @QtUninvokable public final io.qt.core.@NonNull QRegExp toRegExp(){ return toRegExp_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QRegExp toRegExp_native_constfct(long __this__nativeId); /** *

See QScriptValue::toString()const

* @return */ @QtUninvokable public final java.lang.@NonNull String toString(){ return toString_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String toString_native_constfct(long __this__nativeId); /** *

See QScriptValue::toUInt16()const

* @return */ @QtUninvokable public final short toShort(){ return toShort_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native short toShort_native_constfct(long __this__nativeId); /** *

See QScriptValue::toVariant()const

* @return */ @QtUninvokable public final java.lang.Object toVariant(){ return toVariant_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.Object toVariant_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QScriptValue(QPrivateConstructor p) { super(p); } @QtUninvokable public final Integer toInteger() { if(Double.isNaN(private_toInteger())){ return null; }else{ return toInt(); } } /** *

Creates and returns a copy of this object.

See QScriptValue::QScriptValue(QScriptValue)

*/ @QtUninvokable @Override public QScriptValue clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QScriptValue clone_native(long __this_nativeId); /** *

Overloaded function for {@link #call(io.qt.script.QScriptValue, java.util.Collection)} * with args = new java.util.ArrayList<>().

*/ @QtUninvokable public final io.qt.script.@NonNull QScriptValue call(io.qt.script.@NonNull QScriptValue thisObject) { return call(thisObject, new java.util.ArrayList<>()); } /** *

Overloaded function for {@link #call(io.qt.script.QScriptValue, java.util.Collection)}

*

with:

    *
  • thisObject = new io.qt.script.QScriptValue()
  • *
  • args = new java.util.ArrayList<>()
  • *
*/ @QtUninvokable public final io.qt.script.@NonNull QScriptValue call() { return call(new io.qt.script.QScriptValue(), new java.util.ArrayList<>()); } /** *

Overloaded function for {@link #construct(java.util.Collection)} * with args = new java.util.ArrayList<>().

*/ @QtUninvokable public final io.qt.script.@NonNull QScriptValue construct() { return construct(new java.util.ArrayList<>()); } /** *

Overloaded function for {@link #property(io.qt.script.QScriptString, io.qt.script.QScriptValue.ResolveFlags)} * with mode = new io.qt.script.QScriptValue.ResolveFlags(1).

*/ @QtUninvokable public final io.qt.script.@NonNull QScriptValue property(io.qt.script.@NonNull QScriptString name) { return property(name, new io.qt.script.QScriptValue.ResolveFlags(1)); } /** *

Overloaded function for {@link #property(io.qt.script.QScriptString, io.qt.script.QScriptValue.ResolveFlags)}.

*/ @QtUninvokable public final io.qt.script.@NonNull QScriptValue property(io.qt.script.@NonNull QScriptString name, io.qt.script.QScriptValue.@NonNull ResolveFlag @NonNull... mode) { return property(name, new io.qt.script.QScriptValue.ResolveFlags(mode)); } /** *

Overloaded function for {@link #property(java.lang.String, io.qt.script.QScriptValue.ResolveFlags)} * with mode = new io.qt.script.QScriptValue.ResolveFlags(1).

*/ @QtUninvokable public final io.qt.script.@NonNull QScriptValue property(java.lang.@NonNull String name) { return property(name, new io.qt.script.QScriptValue.ResolveFlags(1)); } /** *

Overloaded function for {@link #property(java.lang.String, io.qt.script.QScriptValue.ResolveFlags)}.

*/ @QtUninvokable public final io.qt.script.@NonNull QScriptValue property(java.lang.@NonNull String name, io.qt.script.QScriptValue.@NonNull ResolveFlag @NonNull... mode) { return property(name, new io.qt.script.QScriptValue.ResolveFlags(mode)); } /** *

Overloaded function for {@link #property(int, io.qt.script.QScriptValue.ResolveFlags)} * with mode = new io.qt.script.QScriptValue.ResolveFlags(1).

*/ @QtUninvokable public final io.qt.script.@NonNull QScriptValue property(int arrayIndex) { return property(arrayIndex, new io.qt.script.QScriptValue.ResolveFlags(1)); } /** *

Overloaded function for {@link #property(int, io.qt.script.QScriptValue.ResolveFlags)}.

*/ @QtUninvokable public final io.qt.script.@NonNull QScriptValue property(int arrayIndex, io.qt.script.QScriptValue.@NonNull ResolveFlag @NonNull... mode) { return property(arrayIndex, new io.qt.script.QScriptValue.ResolveFlags(mode)); } /** *

Overloaded function for {@link #propertyFlags(io.qt.script.QScriptString, io.qt.script.QScriptValue.ResolveFlags)} * with mode = new io.qt.script.QScriptValue.ResolveFlags(1).

*/ @QtUninvokable public final io.qt.script.QScriptValue.@NonNull PropertyFlags propertyFlags(io.qt.script.@NonNull QScriptString name) { return propertyFlags(name, new io.qt.script.QScriptValue.ResolveFlags(1)); } /** *

Overloaded function for {@link #propertyFlags(io.qt.script.QScriptString, io.qt.script.QScriptValue.ResolveFlags)}.

*/ @QtUninvokable public final io.qt.script.QScriptValue.@NonNull PropertyFlags propertyFlags(io.qt.script.@NonNull QScriptString name, io.qt.script.QScriptValue.@NonNull ResolveFlag @NonNull... mode) { return propertyFlags(name, new io.qt.script.QScriptValue.ResolveFlags(mode)); } /** *

Overloaded function for {@link #propertyFlags(java.lang.String, io.qt.script.QScriptValue.ResolveFlags)} * with mode = new io.qt.script.QScriptValue.ResolveFlags(1).

*/ @QtUninvokable public final io.qt.script.QScriptValue.@NonNull PropertyFlags propertyFlags(java.lang.@NonNull String name) { return propertyFlags(name, new io.qt.script.QScriptValue.ResolveFlags(1)); } /** *

Overloaded function for {@link #propertyFlags(java.lang.String, io.qt.script.QScriptValue.ResolveFlags)}.

*/ @QtUninvokable public final io.qt.script.QScriptValue.@NonNull PropertyFlags propertyFlags(java.lang.@NonNull String name, io.qt.script.QScriptValue.@NonNull ResolveFlag @NonNull... mode) { return propertyFlags(name, new io.qt.script.QScriptValue.ResolveFlags(mode)); } /** *

Overloaded function for {@link #setProperty(io.qt.script.QScriptString, io.qt.script.QScriptValue, io.qt.script.QScriptValue.PropertyFlags)} * with flags = new io.qt.script.QScriptValue.PropertyFlags(2048).

*/ @QtUninvokable public final void setProperty(io.qt.script.@NonNull QScriptString name, io.qt.script.@NonNull QScriptValue value) { setProperty(name, value, new io.qt.script.QScriptValue.PropertyFlags(2048)); } /** *

Overloaded function for {@link #setProperty(io.qt.script.QScriptString, io.qt.script.QScriptValue, io.qt.script.QScriptValue.PropertyFlags)}.

*/ @QtUninvokable public final void setProperty(io.qt.script.@NonNull QScriptString name, io.qt.script.@NonNull QScriptValue value, io.qt.script.QScriptValue.@NonNull PropertyFlag @NonNull... flags) { setProperty(name, value, new io.qt.script.QScriptValue.PropertyFlags(flags)); } /** *

Overloaded function for {@link #setProperty(java.lang.String, io.qt.script.QScriptValue, io.qt.script.QScriptValue.PropertyFlags)} * with flags = new io.qt.script.QScriptValue.PropertyFlags(2048).

*/ @QtUninvokable public final void setProperty(java.lang.@NonNull String name, io.qt.script.@NonNull QScriptValue value) { setProperty(name, value, new io.qt.script.QScriptValue.PropertyFlags(2048)); } /** *

Overloaded function for {@link #setProperty(java.lang.String, io.qt.script.QScriptValue, io.qt.script.QScriptValue.PropertyFlags)}.

*/ @QtUninvokable public final void setProperty(java.lang.@NonNull String name, io.qt.script.@NonNull QScriptValue value, io.qt.script.QScriptValue.@NonNull PropertyFlag @NonNull... flags) { setProperty(name, value, new io.qt.script.QScriptValue.PropertyFlags(flags)); } /** *

Overloaded function for {@link #setProperty(int, io.qt.script.QScriptValue, io.qt.script.QScriptValue.PropertyFlags)} * with flags = new io.qt.script.QScriptValue.PropertyFlags(2048).

*/ @QtUninvokable public final void setProperty(int arrayIndex, io.qt.script.@NonNull QScriptValue value) { setProperty(arrayIndex, value, new io.qt.script.QScriptValue.PropertyFlags(2048)); } /** *

Overloaded function for {@link #setProperty(int, io.qt.script.QScriptValue, io.qt.script.QScriptValue.PropertyFlags)}.

*/ @QtUninvokable public final void setProperty(int arrayIndex, io.qt.script.@NonNull QScriptValue value, io.qt.script.QScriptValue.@NonNull PropertyFlag @NonNull... flags) { setProperty(arrayIndex, value, new io.qt.script.QScriptValue.PropertyFlags(flags)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy