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

io.qt.script.QScriptContext 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.*;


/**
 * 

Represents a Qt Script function invocation

*

Java wrapper for Qt class QScriptContext

* @since This class was introduced in Qt 4.3. */ public final class QScriptContext extends QtObject { static { QtJambi_LibraryUtilities.initialize(); } /** *

Java wrapper for Qt enum QScriptContext::Error

*/ public enum Error implements QtEnumerator { /** *

Representing QScriptContext::UnknownError

*/ UnknownError(0), /** *

Representing QScriptContext::ReferenceError

*/ ReferenceError(1), /** *

Representing QScriptContext::SyntaxError

*/ SyntaxError(2), /** *

Representing QScriptContext::TypeError

*/ TypeError(3), /** *

Representing QScriptContext::RangeError

*/ RangeError(4), /** *

Representing QScriptContext::URIError

*/ URIError(5); static { QtJambi_LibraryUtilities.initialize(); } private Error(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 Error resolve(int value) { switch (value) { case 0: return UnknownError; case 1: return ReferenceError; case 2: return SyntaxError; case 3: return TypeError; case 4: return RangeError; case 5: return URIError; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QScriptContext::ExecutionState

*/ public enum ExecutionState implements QtEnumerator { /** *

Representing QScriptContext::NormalState

*/ NormalState(0), /** *

Representing QScriptContext::ExceptionState

*/ ExceptionState(1); static { QtJambi_LibraryUtilities.initialize(); } private ExecutionState(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 ExecutionState resolve(int value) { switch (value) { case 0: return NormalState; case 1: return ExceptionState; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QScriptContext::activationObject()const

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

See QScriptContext::argument(int)const

* @param index * @return */ @QtUninvokable public final io.qt.script.@NonNull QScriptValue argument(int index){ return argument_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @QtUninvokable private native io.qt.script.QScriptValue argument_native_int_constfct(long __this__nativeId, int index); /** *

See QScriptContext::argumentCount()const

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

See QScriptContext::argumentsObject()const

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

See QScriptContext::backtrace()const

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

See QScriptContext::callee()const

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

See QScriptContext::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 QScriptContext::isCalledAsConstructor()const

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

See QScriptContext::parentContext()const

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

See QScriptContext::popScope()

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

See QScriptContext::pushScope(QScriptValue)

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

See QScriptContext::returnValue()const

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

See QScriptContext::setActivationObject(QScriptValue)

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

See QScriptContext::setReturnValue(QScriptValue)

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

See QScriptContext::setThisObject(QScriptValue)

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

See QScriptContext::state()const

* @return */ @QtUninvokable public final io.qt.script.QScriptContext.@NonNull ExecutionState state(){ return io.qt.script.QScriptContext.ExecutionState.resolve(state_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int state_native_constfct(long __this__nativeId); /** *

See QScriptContext::thisObject()const

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

See QScriptContext::throwError(QScriptContext::Error,QString)

* @param error * @param text * @return */ @QtUninvokable public final io.qt.script.@NonNull QScriptValue throwError(io.qt.script.QScriptContext.@NonNull Error error, java.lang.@NonNull String text){ return throwError_native_QScriptContext_Error_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), error.value(), text); } @QtUninvokable private native io.qt.script.QScriptValue throwError_native_QScriptContext_Error_cref_QString(long __this__nativeId, int error, java.lang.String text); /** *

See QScriptContext::throwError(QString)

* @param text * @return */ @QtUninvokable public final io.qt.script.@NonNull QScriptValue throwError(java.lang.@NonNull String text){ return throwError_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text); } @QtUninvokable private native io.qt.script.QScriptValue throwError_native_cref_QString(long __this__nativeId, java.lang.String text); /** *

See QScriptContext::throwValue(QScriptValue)

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

See QScriptContext::toString()const

* @since This function was introduced in Qt 4.4. * @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); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess private QScriptContext(QPrivateConstructor p) { super(p); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy