io.qt.script.QScriptEngineAgent Maven / Gradle / Ivy
Show all versions of qtjambi-script Show documentation
package io.qt.script;
import io.qt.*;
/**
* Interface to report events pertaining to QScriptEngine execution
* Java wrapper for Qt class QScriptEngineAgent
* @since This class was introduced in Qt 4.4.
*/
public class QScriptEngineAgent extends QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QScriptEngineAgent::Extension
*/
public enum Extension implements QtEnumerator {
/**
* Representing QScriptEngineAgent:: DebuggerInvocationRequest
*/
DebuggerInvocationRequest(0);
static {
QtJambi_LibraryUtilities.initialize();
}
private Extension(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 Extension resolve(int value) {
switch (value) {
case 0: return DebuggerInvocationRequest;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QScriptEngineAgent:: QScriptEngineAgent(QScriptEngine*)
* @param engine
*/
public QScriptEngineAgent(io.qt.script.@Nullable QScriptEngine engine){
super((QPrivateConstructor)null);
initialize_native(this, engine);
}
private native static void initialize_native(QScriptEngineAgent instance, io.qt.script.QScriptEngine engine);
/**
* See QScriptEngineAgent:: 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 QScriptEngineAgent:: contextPop()
*/
@QtUninvokable
public void contextPop(){
contextPop_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void contextPop_native(long __this__nativeId);
/**
* See QScriptEngineAgent:: contextPush()
*/
@QtUninvokable
public void contextPush(){
contextPush_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void contextPush_native(long __this__nativeId);
/**
* See QScriptEngineAgent:: exceptionCatch(qint64, QScriptValue)
* @param scriptId
* @param exception
*/
@QtUninvokable
public void exceptionCatch(long scriptId, io.qt.script.@NonNull QScriptValue exception){
exceptionCatch_native_qint64_cref_QScriptValue(QtJambi_LibraryUtilities.internal.nativeId(this), scriptId, QtJambi_LibraryUtilities.internal.checkedNativeId(exception));
}
@QtUninvokable
private native void exceptionCatch_native_qint64_cref_QScriptValue(long __this__nativeId, long scriptId, long exception);
/**
* See QScriptEngineAgent:: exceptionThrow(qint64, QScriptValue, bool)
* @param scriptId
* @param exception
* @param hasHandler
*/
@QtUninvokable
public void exceptionThrow(long scriptId, io.qt.script.@NonNull QScriptValue exception, boolean hasHandler){
exceptionThrow_native_qint64_cref_QScriptValue_bool(QtJambi_LibraryUtilities.internal.nativeId(this), scriptId, QtJambi_LibraryUtilities.internal.checkedNativeId(exception), hasHandler);
}
@QtUninvokable
private native void exceptionThrow_native_qint64_cref_QScriptValue_bool(long __this__nativeId, long scriptId, long exception, boolean hasHandler);
/**
* See QScriptEngineAgent:: extension(QScriptEngineAgent::Extension, QVariant)
* @param extension
* @param argument
* @return
*/
@QtUninvokable
public java.lang.Object extension(io.qt.script.QScriptEngineAgent.@NonNull Extension extension, java.lang.Object argument){
return extension_native_QScriptEngineAgent_Extension_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), extension.value(), argument);
}
@QtUninvokable
private native java.lang.Object extension_native_QScriptEngineAgent_Extension_cref_QVariant(long __this__nativeId, int extension, java.lang.Object argument);
/**
* See QScriptEngineAgent:: functionEntry(qint64)
* @param scriptId
*/
@QtUninvokable
public void functionEntry(long scriptId){
functionEntry_native_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), scriptId);
}
@QtUninvokable
private native void functionEntry_native_qint64(long __this__nativeId, long scriptId);
/**
* See QScriptEngineAgent:: functionExit(qint64, QScriptValue)
* @param scriptId
* @param returnValue
*/
@QtUninvokable
public void functionExit(long scriptId, io.qt.script.@NonNull QScriptValue returnValue){
functionExit_native_qint64_cref_QScriptValue(QtJambi_LibraryUtilities.internal.nativeId(this), scriptId, QtJambi_LibraryUtilities.internal.checkedNativeId(returnValue));
}
@QtUninvokable
private native void functionExit_native_qint64_cref_QScriptValue(long __this__nativeId, long scriptId, long returnValue);
/**
* See QScriptEngineAgent:: positionChange(qint64, int, int)
* @param scriptId
* @param lineNumber
* @param columnNumber
*/
@QtUninvokable
public void positionChange(long scriptId, int lineNumber, int columnNumber){
positionChange_native_qint64_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), scriptId, lineNumber, columnNumber);
}
@QtUninvokable
private native void positionChange_native_qint64_int_int(long __this__nativeId, long scriptId, int lineNumber, int columnNumber);
/**
* See QScriptEngineAgent:: scriptLoad(qint64, QString, QString, int)
* @param id
* @param program
* @param fileName
* @param baseLineNumber
*/
@QtUninvokable
public void scriptLoad(long id, java.lang.@NonNull String program, java.lang.@NonNull String fileName, int baseLineNumber){
scriptLoad_native_qint64_cref_QString_cref_QString_int(QtJambi_LibraryUtilities.internal.nativeId(this), id, program, fileName, baseLineNumber);
}
@QtUninvokable
private native void scriptLoad_native_qint64_cref_QString_cref_QString_int(long __this__nativeId, long id, java.lang.String program, java.lang.String fileName, int baseLineNumber);
/**
* See QScriptEngineAgent:: scriptUnload(qint64)
* @param id
*/
@QtUninvokable
public void scriptUnload(long id){
scriptUnload_native_qint64(QtJambi_LibraryUtilities.internal.nativeId(this), id);
}
@QtUninvokable
private native void scriptUnload_native_qint64(long __this__nativeId, long id);
/**
* See QScriptEngineAgent:: supportsExtension(QScriptEngineAgent::Extension)const
* @param extension
* @return
*/
@QtUninvokable
public boolean supportsExtension(io.qt.script.QScriptEngineAgent.@NonNull Extension extension){
return supportsExtension_native_QScriptEngineAgent_Extension_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), extension.value());
}
@QtUninvokable
private native boolean supportsExtension_native_QScriptEngineAgent_Extension_constfct(long __this__nativeId, int extension);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QScriptEngineAgent(QPrivateConstructor p) { super(p); }
/**
* Overloaded function for {@link #extension(io.qt.script.QScriptEngineAgent.Extension, java.lang.Object)}
* with argument = null
.
*/
@QtUninvokable
public final java.lang.Object extension(io.qt.script.QScriptEngineAgent.@NonNull Extension extension) {
return extension(extension, (java.lang.Object)null);
}
}