io.qt.script.QScriptEngine Maven / Gradle / Ivy
Show all versions of qtjambi-script Show documentation
package io.qt.script;
import io.qt.*;
/**
* Environment for evaluating Qt Script code
* Java wrapper for Qt class QScriptEngine
* @since This class was introduced in Qt 4.3.
*/
public class QScriptEngine extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QScriptEngine.class);
/**
* Java wrapper for Qt enum QScriptEngine::QObjectWrapOption
*
* @see QObjectWrapOptions
*/
public enum QObjectWrapOption implements QtFlagEnumerator {
/**
* Representing QScriptEngine:: ExcludeChildObjects
*/
ExcludeChildObjects(1),
/**
* Representing QScriptEngine:: ExcludeSuperClassMethods
*/
ExcludeSuperClassMethods(2),
/**
* Representing QScriptEngine:: ExcludeSuperClassProperties
*/
ExcludeSuperClassProperties(4),
/**
* Representing QScriptEngine:: ExcludeSuperClassContents
*/
ExcludeSuperClassContents(6),
/**
* Representing QScriptEngine:: SkipMethodsInEnumeration
*/
SkipMethodsInEnumeration(8),
/**
* Representing QScriptEngine:: ExcludeDeleteLater
*/
ExcludeDeleteLater(16),
/**
* Representing QScriptEngine:: ExcludeSlots
*/
ExcludeSlots(32),
/**
* Representing QScriptEngine:: AutoCreateDynamicProperties
*/
AutoCreateDynamicProperties(256),
/**
* Representing QScriptEngine:: PreferExistingWrapperObject
*/
PreferExistingWrapperObject(512);
static {
QtJambi_LibraryUtilities.initialize();
}
private QObjectWrapOption(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
@Override
public @NonNull QObjectWrapOptions asFlags() {
return new QObjectWrapOptions(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull QObjectWrapOptions combined(@NonNull QObjectWrapOption 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 QObjectWrapOptions cleared(@NonNull QObjectWrapOption e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link QObjectWrapOptions} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull QObjectWrapOptions flags(@Nullable QObjectWrapOption @NonNull... values) {
return new QObjectWrapOptions(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull QObjectWrapOption resolve(int value) {
switch (value) {
case 1: return ExcludeChildObjects;
case 2: return ExcludeSuperClassMethods;
case 4: return ExcludeSuperClassProperties;
case 6: return ExcludeSuperClassContents;
case 8: return SkipMethodsInEnumeration;
case 16: return ExcludeDeleteLater;
case 32: return ExcludeSlots;
case 256: return AutoCreateDynamicProperties;
case 512: return PreferExistingWrapperObject;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link QObjectWrapOption}
*/
public static final class QObjectWrapOptions extends QFlags implements Comparable {
private static final long serialVersionUID = 0xb5e6169d58306d5L;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new QObjectWrapOptions where the flags in args
are set.
* @param args enum entries
*/
public QObjectWrapOptions(@Nullable QObjectWrapOption @NonNull... args){
super(args);
}
/**
* Creates a new QObjectWrapOptions with given value
.
* @param value
*/
public QObjectWrapOptions(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new QObjectWrapOptions
*/
@Override
public final @NonNull QObjectWrapOptions combined(@StrictNonNull QObjectWrapOption e){
return new QObjectWrapOptions(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
@Override
public final @NonNull QObjectWrapOptions setFlag(@Nullable QObjectWrapOption 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 QObjectWrapOptions setFlag(@Nullable QObjectWrapOption 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 QObjectWrapOptions.
* @return array of enum entries
*/
@Override
public final @NonNull QObjectWrapOption @NonNull[] flags(){
return super.flags(QObjectWrapOption.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull QObjectWrapOptions clone(){
return new QObjectWrapOptions(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull QObjectWrapOptions other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QScriptEngine::ValueOwnership
*/
@QtUnlistedEnum
public enum ValueOwnership implements QtEnumerator {
/**
* Representing QScriptEngine:: QtOwnership
*/
QtOwnership(0),
/**
* Representing QScriptEngine:: ScriptOwnership
*/
ScriptOwnership(1),
/**
* Representing QScriptEngine:: AutoOwnership
*/
AutoOwnership(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private ValueOwnership(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 ValueOwnership resolve(int value) {
switch (value) {
case 0: return QtOwnership;
case 1: return ScriptOwnership;
case 2: return AutoOwnership;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt callable QScriptEngine::FunctionSignature
*/
@FunctionalInterface
public interface FunctionSignature extends QtObjectInterface, java.util.function.BiFunction {
@Override
public io.qt.script.@NonNull QScriptValue apply(io.qt.script.@Nullable QScriptContext arg__1, io.qt.script.@Nullable QScriptEngine arg__2);
/**
* @hidden
* Implementor class for interface {@link FunctionSignature}
*/
public static abstract class Impl extends QtObject implements FunctionSignature{
static {
QtJambi_LibraryUtilities.initialize();
}
public Impl(){
super((QPrivateConstructor)null);
initialize_native(this);
}
protected Impl(QPrivateConstructor p){
super(p);
}
private static native void initialize_native(FunctionSignature instance);
@NativeAccess
private final static class ConcreteWrapper extends Impl {
private ConcreteWrapper(QPrivateConstructor c){
super(c);
}
@Override
public io.qt.script.@NonNull QScriptValue apply(io.qt.script.@Nullable QScriptContext arg__1, io.qt.script.@Nullable QScriptEngine arg__2){
return apply_native(QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__2));
}
private native io.qt.script.QScriptValue apply_native(long arg__1, long arg__2);
}
}
}
/**
* See QScriptEngine:: signalHandlerException(QScriptValue)
* @since This signal was introduced in Qt 4.4.
*/
public final @NonNull Signal1 signalHandlerException = new Signal1<>();
/**
* See QScriptEngine:: QScriptEngine()
*/
public QScriptEngine(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QScriptEngine instance);
/**
* See QScriptEngine:: QScriptEngine(QObject*)
* @param parent
*/
public QScriptEngine(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
if (parent != null) QtJambi_LibraryUtilities.internal.setCppOwnership(this);
}
private native static void initialize_native(QScriptEngine instance, io.qt.core.QObject parent);
/**
* See QScriptEngine:: abortEvaluation(QScriptValue)
* @since This function was introduced in Qt 4.4.
* @param result
*/
@QtUninvokable
public final void abortEvaluation(io.qt.script.@NonNull QScriptValue result){
abortEvaluation_native_cref_QScriptValue(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(result));
}
@QtUninvokable
private native void abortEvaluation_native_cref_QScriptValue(long __this__nativeId, long result);
/**
* See QScriptEngine:: agent()const
* @since This function was introduced in Qt 4.4.
* @return
*/
@QtUninvokable
public final io.qt.script.@Nullable QScriptEngineAgent agent(){
return agent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.script.QScriptEngineAgent agent_native_constfct(long __this__nativeId);
/**
* See QScriptEngine:: availableExtensions()const
* @since This function was introduced in Qt 4.4.
* @return
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList availableExtensions(){
return availableExtensions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QStringList availableExtensions_native_constfct(long __this__nativeId);
/**
* See QScriptEngine:: canEvaluate(QString)const
* @param program
* @return
*/
@QtUninvokable
public final boolean canEvaluate(java.lang.@NonNull String program){
return canEvaluate_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), program);
}
@QtUninvokable
private native boolean canEvaluate_native_cref_QString_constfct(long __this__nativeId, java.lang.String program);
/**
* See QScriptEngine:: clearExceptions()
* @since This function was introduced in Qt 4.4.
*/
@QtUninvokable
public final void clearExceptions(){
clearExceptions_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void clearExceptions_native(long __this__nativeId);
/**
* See QScriptEngine:: collectGarbage()
*/
@QtUninvokable
public final void collectGarbage(){
collectGarbage_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void collectGarbage_native(long __this__nativeId);
/**
* See QScriptEngine:: currentContext()const
* @return
*/
@QtUninvokable
public final io.qt.script.@Nullable QScriptContext currentContext(){
return currentContext_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.script.QScriptContext currentContext_native_constfct(long __this__nativeId);
/**
* See QScriptEngine:: defaultPrototype(int)const
* @param metaTypeId
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue defaultPrototype(int metaTypeId){
return defaultPrototype_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), metaTypeId);
}
@QtUninvokable
private native io.qt.script.QScriptValue defaultPrototype_native_int_constfct(long __this__nativeId, int metaTypeId);
/**
* See QScriptEngine:: evaluate(QScriptProgram)
* @since This function was introduced in Qt 4.7.
* @param program
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue evaluate(io.qt.script.@NonNull QScriptProgram program){
return evaluate_native_cref_QScriptProgram(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(program));
}
@QtUninvokable
private native io.qt.script.QScriptValue evaluate_native_cref_QScriptProgram(long __this__nativeId, long program);
/**
* See QScriptEngine:: evaluate(QString, QString, int)
* @param program
* @param fileName
* @param lineNumber
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue evaluate(java.lang.@NonNull String program, java.lang.@NonNull String fileName, int lineNumber){
return evaluate_native_cref_QString_cref_QString_int(QtJambi_LibraryUtilities.internal.nativeId(this), program, fileName, lineNumber);
}
@QtUninvokable
private native io.qt.script.QScriptValue evaluate_native_cref_QString_cref_QString_int(long __this__nativeId, java.lang.String program, java.lang.String fileName, int lineNumber);
/**
* See QScriptEngine:: globalObject()const
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue globalObject(){
return globalObject_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.script.QScriptValue globalObject_native_constfct(long __this__nativeId);
/**
* See QScriptEngine:: hasUncaughtException()const
* @return
*/
@QtUninvokable
public final boolean hasUncaughtException(){
return hasUncaughtException_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasUncaughtException_native_constfct(long __this__nativeId);
/**
* See QScriptEngine:: importExtension(QString)
* @param extension
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue importExtension(java.lang.@NonNull String extension){
return importExtension_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), extension);
}
@QtUninvokable
private native io.qt.script.QScriptValue importExtension_native_cref_QString(long __this__nativeId, java.lang.String extension);
/**
* See QScriptEngine:: importedExtensions()const
* @since This function was introduced in Qt 4.4.
* @return
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList importedExtensions(){
return importedExtensions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QStringList importedExtensions_native_constfct(long __this__nativeId);
/**
* See QScriptEngine:: installTranslatorFunctions(QScriptValue)
* @since This function was introduced in Qt 4.5.
* @param object
*/
@QtUninvokable
public final void installTranslatorFunctions(io.qt.script.@NonNull QScriptValue object){
installTranslatorFunctions_native_cref_QScriptValue(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object));
}
@QtUninvokable
private native void installTranslatorFunctions_native_cref_QScriptValue(long __this__nativeId, long object);
/**
* See QScriptEngine:: isEvaluating()const
* @since This function was introduced in Qt 4.4.
* @return
*/
@QtUninvokable
public final boolean isEvaluating(){
return isEvaluating_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isEvaluating_native_constfct(long __this__nativeId);
/**
* See QScriptEngine:: newActivationObject()
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newActivationObject(){
return newActivationObject_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.script.QScriptValue newActivationObject_native(long __this__nativeId);
/**
* See QScriptEngine:: newArray(uint)
* @param length
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newArray(int length){
return newArray_native_uint(QtJambi_LibraryUtilities.internal.nativeId(this), length);
}
@QtUninvokable
private native io.qt.script.QScriptValue newArray_native_uint(long __this__nativeId, int length);
/**
* See QScriptEngine:: newDate(QDateTime)
* @param value
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newDate(io.qt.core.@NonNull QDateTime value){
return newDate_native_cref_QDateTime(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value));
}
@QtUninvokable
private native io.qt.script.QScriptValue newDate_native_cref_QDateTime(long __this__nativeId, long value);
/**
* See QScriptEngine:: newDate(qsreal)
* @param value
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newDate(double value){
return newDate_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), value);
}
@QtUninvokable
private native io.qt.script.QScriptValue newDate_native_double(long __this__nativeId, double value);
/**
* See QScriptEngine:: newFunction(QScriptEngine::FunctionSignature, QScriptValue, int)
* @param signature
* @param prototype
* @param length
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newFunction(io.qt.script.QScriptEngine.@Nullable FunctionSignature signature, io.qt.script.@NonNull QScriptValue prototype, int length){
return newFunction_native_QScriptEngine_FunctionSignature_cref_QScriptValue_int(QtJambi_LibraryUtilities.internal.nativeId(this), signature, QtJambi_LibraryUtilities.internal.checkedNativeId(prototype), length);
}
@QtUninvokable
private native io.qt.script.QScriptValue newFunction_native_QScriptEngine_FunctionSignature_cref_QScriptValue_int(long __this__nativeId, io.qt.script.QScriptEngine.FunctionSignature signature, long prototype, int length);
/**
* See QScriptEngine:: newFunction(QScriptEngine::FunctionSignature, int)
* @param signature
* @param length
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newFunction(io.qt.script.QScriptEngine.@Nullable FunctionSignature signature, int length){
return newFunction_native_QScriptEngine_FunctionSignature_int(QtJambi_LibraryUtilities.internal.nativeId(this), signature, length);
}
@QtUninvokable
private native io.qt.script.QScriptValue newFunction_native_QScriptEngine_FunctionSignature_int(long __this__nativeId, io.qt.script.QScriptEngine.FunctionSignature signature, int length);
/**
* See QScriptEngine:: newObject()
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newObject(){
return newObject_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.script.QScriptValue newObject_native(long __this__nativeId);
/**
* See QScriptEngine:: newObject(QScriptClass*, QScriptValue)
* @since This function was introduced in Qt 4.4.
* @param scriptClass
* @param data
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newObject(io.qt.script.@Nullable QScriptClass scriptClass, io.qt.script.@NonNull QScriptValue data){
return newObject_native_QScriptClass_ptr_cref_QScriptValue(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(scriptClass), QtJambi_LibraryUtilities.internal.checkedNativeId(data));
}
@QtUninvokable
private native io.qt.script.QScriptValue newObject_native_QScriptClass_ptr_cref_QScriptValue(long __this__nativeId, long scriptClass, long data);
/**
* See QScriptEngine:: newQObject(QObject*, QScriptEngine::ValueOwnership, QScriptEngine::QObjectWrapOptions)
* @param object
* @param ownership
* @param options
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newQObject(io.qt.core.@Nullable QObject object, io.qt.script.QScriptEngine.@NonNull ValueOwnership ownership, io.qt.script.QScriptEngine.@NonNull QObjectWrapOptions options){
return newQObject_native_QObject_ptr_QScriptEngine_ValueOwnership_cref_QScriptEngine_QObjectWrapOptions(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object), ownership.value(), options.value());
}
@QtUninvokable
private native io.qt.script.QScriptValue newQObject_native_QObject_ptr_QScriptEngine_ValueOwnership_cref_QScriptEngine_QObjectWrapOptions(long __this__nativeId, long object, int ownership, int options);
/**
*
* @since This function was introduced in Qt 4.4.
* @param scriptObject
* @param qtObject
* @param ownership
* @param options
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newQObject(io.qt.script.@NonNull QScriptValue scriptObject, io.qt.core.@Nullable QObject qtObject, io.qt.script.QScriptEngine.@NonNull ValueOwnership ownership, io.qt.script.QScriptEngine.@NonNull QObjectWrapOptions options){
return newQObject_native_cref_QScriptValue_QObject_ptr_QScriptEngine_ValueOwnership_cref_QScriptEngine_QObjectWrapOptions(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(scriptObject), QtJambi_LibraryUtilities.internal.checkedNativeId(qtObject), ownership.value(), options.value());
}
@QtUninvokable
private native io.qt.script.QScriptValue newQObject_native_cref_QScriptValue_QObject_ptr_QScriptEngine_ValueOwnership_cref_QScriptEngine_QObjectWrapOptions(long __this__nativeId, long scriptObject, long qtObject, int ownership, int options);
/**
* See QScriptEngine:: newRegExp(QRegExp)
* @param regexp
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newRegExp(io.qt.core.@NonNull QRegExp regexp){
return newRegExp_native_cref_QRegExp(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(regexp));
}
@QtUninvokable
private native io.qt.script.QScriptValue newRegExp_native_cref_QRegExp(long __this__nativeId, long regexp);
/**
* See QScriptEngine:: newRegExp(QString, QString)
* @param pattern
* @param flags
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newRegExp(java.lang.@NonNull String pattern, java.lang.@NonNull String flags){
return newRegExp_native_cref_QString_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), pattern, flags);
}
@QtUninvokable
private native io.qt.script.QScriptValue newRegExp_native_cref_QString_cref_QString(long __this__nativeId, java.lang.String pattern, java.lang.String flags);
/**
* See QScriptEngine:: newVariant(QScriptValue, QVariant)
* @since This function was introduced in Qt 4.4.
* @param object
* @param value
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newVariant(io.qt.script.@NonNull QScriptValue object, java.lang.Object value){
return newVariant_native_cref_QScriptValue_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object), value);
}
@QtUninvokable
private native io.qt.script.QScriptValue newVariant_native_cref_QScriptValue_cref_QVariant(long __this__nativeId, long object, java.lang.Object value);
/**
* See QScriptEngine:: newVariant(QVariant)
* @param value
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newVariant(java.lang.Object value){
return newVariant_native_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), value);
}
@QtUninvokable
private native io.qt.script.QScriptValue newVariant_native_cref_QVariant(long __this__nativeId, java.lang.Object value);
/**
* See QScriptEngine:: nullValue()
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue nullValue(){
return nullValue_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.script.QScriptValue nullValue_native(long __this__nativeId);
/**
* See QScriptEngine:: popContext()
*/
@QtUninvokable
public final void popContext(){
popContext_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void popContext_native(long __this__nativeId);
/**
* See QScriptEngine:: processEventsInterval()const
* @return
*/
@QtUninvokable
public final int processEventsInterval(){
return processEventsInterval_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int processEventsInterval_native_constfct(long __this__nativeId);
/**
* See QScriptEngine:: pushContext()
* @return
*/
@QtUninvokable
public final io.qt.script.@Nullable QScriptContext pushContext(){
return pushContext_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.script.QScriptContext pushContext_native(long __this__nativeId);
/**
* See QScriptEngine:: reportAdditionalMemoryCost(int)
* @since This function was introduced in Qt 4.7.
* @param size
*/
@QtUninvokable
public final void reportAdditionalMemoryCost(int size){
reportAdditionalMemoryCost_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), size);
}
@QtUninvokable
private native void reportAdditionalMemoryCost_native_int(long __this__nativeId, int size);
/**
* See QScriptEngine:: setAgent(QScriptEngineAgent*)
* @since This function was introduced in Qt 4.4.
* @param agent
*/
@QtUninvokable
public final void setAgent(io.qt.script.@Nullable QScriptEngineAgent agent){
setAgent_native_QScriptEngineAgent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(agent));
}
@QtUninvokable
private native void setAgent_native_QScriptEngineAgent_ptr(long __this__nativeId, long agent);
/**
* See QScriptEngine:: setDefaultPrototype(int, QScriptValue)
* @param metaTypeId
* @param prototype
*/
@QtUninvokable
public final void setDefaultPrototype(int metaTypeId, io.qt.script.@NonNull QScriptValue prototype){
setDefaultPrototype_native_int_cref_QScriptValue(QtJambi_LibraryUtilities.internal.nativeId(this), metaTypeId, QtJambi_LibraryUtilities.internal.checkedNativeId(prototype));
}
@QtUninvokable
private native void setDefaultPrototype_native_int_cref_QScriptValue(long __this__nativeId, int metaTypeId, long prototype);
/**
* See QScriptEngine:: setGlobalObject(QScriptValue)
* @since This function was introduced in Qt 4.5.
* @param object
*/
@QtUninvokable
public final void setGlobalObject(io.qt.script.@NonNull QScriptValue object){
setGlobalObject_native_cref_QScriptValue(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object));
}
@QtUninvokable
private native void setGlobalObject_native_cref_QScriptValue(long __this__nativeId, long object);
/**
* See QScriptEngine:: setProcessEventsInterval(int)
* @param interval
*/
@QtUninvokable
public final void setProcessEventsInterval(int interval){
setProcessEventsInterval_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), interval);
}
@QtUninvokable
private native void setProcessEventsInterval_native_int(long __this__nativeId, int interval);
/**
* See QScriptEngine:: toObject(QScriptValue)
* @since This function was introduced in Qt 4.5.
* @param value
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue toObject(io.qt.script.@NonNull QScriptValue value){
return toObject_native_cref_QScriptValue(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value));
}
@QtUninvokable
private native io.qt.script.QScriptValue toObject_native_cref_QScriptValue(long __this__nativeId, long value);
/**
* See QScriptEngine:: toStringHandle(QString)
* @since This function was introduced in Qt 4.4.
* @param str
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptString toStringHandle(java.lang.@NonNull String str){
return toStringHandle_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), str);
}
@QtUninvokable
private native io.qt.script.QScriptString toStringHandle_native_cref_QString(long __this__nativeId, java.lang.String str);
/**
* See QScriptEngine:: uncaughtException()const
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue uncaughtException(){
return uncaughtException_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.script.QScriptValue uncaughtException_native_constfct(long __this__nativeId);
/**
* See QScriptEngine:: uncaughtExceptionBacktrace()const
* @return
*/
@QtUninvokable
public final io.qt.core.@NonNull QStringList uncaughtExceptionBacktrace(){
return uncaughtExceptionBacktrace_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QStringList uncaughtExceptionBacktrace_native_constfct(long __this__nativeId);
/**
* See QScriptEngine:: uncaughtExceptionLineNumber()const
* @return
*/
@QtUninvokable
public final int uncaughtExceptionLineNumber(){
return uncaughtExceptionLineNumber_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int uncaughtExceptionLineNumber_native_constfct(long __this__nativeId);
/**
* See QScriptEngine:: undefinedValue()
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue undefinedValue(){
return undefinedValue_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.script.QScriptValue undefinedValue_native(long __this__nativeId);
/**
* See QScriptEngine:: checkSyntax(QString)
* @since This function was introduced in Qt 4.5.
* @param program
* @return
*/
public native static io.qt.script.@NonNull QScriptSyntaxCheckResult checkSyntax(java.lang.@NonNull String program);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QScriptEngine(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QScriptEngine(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QScriptEngine instance, QDeclarativeConstructor constructor);
/**
* Overloaded function for {@link #abortEvaluation(io.qt.script.QScriptValue)}
* with result = new io.qt.script.QScriptValue()
.
*/
@QtUninvokable
public final void abortEvaluation() {
abortEvaluation(new io.qt.script.QScriptValue());
}
/**
* Overloaded function for {@link #evaluate(java.lang.String, java.lang.String, int)}
* with lineNumber = 1
.
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue evaluate(java.lang.@NonNull String program, java.lang.@NonNull String fileName) {
return evaluate(program, fileName, (int)1);
}
/**
* Overloaded function for {@link #evaluate(java.lang.String, java.lang.String, int)}
* with:
* fileName = (String)null
* lineNumber = 1
*
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue evaluate(java.lang.@NonNull String program) {
return evaluate(program, (String)null, (int)1);
}
/**
* Overloaded function for {@link #installTranslatorFunctions(io.qt.script.QScriptValue)}
* with object = new io.qt.script.QScriptValue()
.
*/
@QtUninvokable
public final void installTranslatorFunctions() {
installTranslatorFunctions(new io.qt.script.QScriptValue());
}
/**
* Overloaded function for {@link #newArray(int)}
* with length = 0
.
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newArray() {
return newArray((int)0);
}
/**
* Overloaded function for {@link #newFunction(io.qt.script.QScriptEngine.FunctionSignature, io.qt.script.QScriptValue, int)}
* with length = 0
.
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newFunction(io.qt.script.QScriptEngine.@Nullable FunctionSignature signature, io.qt.script.@NonNull QScriptValue prototype) {
return newFunction(signature, prototype, (int)0);
}
/**
* Overloaded function for {@link #newFunction(io.qt.script.QScriptEngine.FunctionSignature, int)}
* with length = 0
.
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newFunction(io.qt.script.QScriptEngine.@Nullable FunctionSignature signature) {
return newFunction(signature, (int)0);
}
/**
* Overloaded function for {@link #newObject(io.qt.script.QScriptClass, io.qt.script.QScriptValue)}
* with data = new io.qt.script.QScriptValue()
.
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newObject(io.qt.script.@Nullable QScriptClass scriptClass) {
return newObject(scriptClass, new io.qt.script.QScriptValue());
}
/**
* Overloaded function for {@link #newQObject(io.qt.core.QObject, io.qt.script.QScriptEngine.ValueOwnership, io.qt.script.QScriptEngine.QObjectWrapOptions)}
* with options = new io.qt.script.QScriptEngine.QObjectWrapOptions(0)
.
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newQObject(io.qt.core.@Nullable QObject object, io.qt.script.QScriptEngine.@NonNull ValueOwnership ownership) {
return newQObject(object, ownership, new io.qt.script.QScriptEngine.QObjectWrapOptions(0));
}
/**
* Overloaded function for {@link #newQObject(io.qt.core.QObject, io.qt.script.QScriptEngine.ValueOwnership, io.qt.script.QScriptEngine.QObjectWrapOptions)}
* with:
* ownership = io.qt.script.QScriptEngine.ValueOwnership.QtOwnership
* options = new io.qt.script.QScriptEngine.QObjectWrapOptions(0)
*
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newQObject(io.qt.core.@Nullable QObject object) {
return newQObject(object, io.qt.script.QScriptEngine.ValueOwnership.QtOwnership, new io.qt.script.QScriptEngine.QObjectWrapOptions(0));
}
/**
* Overloaded function for {@link #newQObject(io.qt.core.QObject, io.qt.script.QScriptEngine.ValueOwnership, io.qt.script.QScriptEngine.QObjectWrapOptions)}.
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newQObject(io.qt.core.@Nullable QObject object, io.qt.script.QScriptEngine.@NonNull ValueOwnership ownership, io.qt.script.QScriptEngine.@NonNull QObjectWrapOption @NonNull... options) {
return newQObject(object, ownership, new io.qt.script.QScriptEngine.QObjectWrapOptions(options));
}
/**
* Overloaded function for {@link #newQObject(io.qt.script.QScriptValue, io.qt.core.QObject, io.qt.script.QScriptEngine.ValueOwnership, io.qt.script.QScriptEngine.QObjectWrapOptions)}
* with options = new io.qt.script.QScriptEngine.QObjectWrapOptions(0)
.
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newQObject(io.qt.script.@NonNull QScriptValue scriptObject, io.qt.core.@Nullable QObject qtObject, io.qt.script.QScriptEngine.@NonNull ValueOwnership ownership) {
return newQObject(scriptObject, qtObject, ownership, new io.qt.script.QScriptEngine.QObjectWrapOptions(0));
}
/**
* Overloaded function for {@link #newQObject(io.qt.script.QScriptValue, io.qt.core.QObject, io.qt.script.QScriptEngine.ValueOwnership, io.qt.script.QScriptEngine.QObjectWrapOptions)}
* with:
* ownership = io.qt.script.QScriptEngine.ValueOwnership.QtOwnership
* options = new io.qt.script.QScriptEngine.QObjectWrapOptions(0)
*
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newQObject(io.qt.script.@NonNull QScriptValue scriptObject, io.qt.core.@Nullable QObject qtObject) {
return newQObject(scriptObject, qtObject, io.qt.script.QScriptEngine.ValueOwnership.QtOwnership, new io.qt.script.QScriptEngine.QObjectWrapOptions(0));
}
/**
* Overloaded function for {@link #newQObject(io.qt.script.QScriptValue, io.qt.core.QObject, io.qt.script.QScriptEngine.ValueOwnership, io.qt.script.QScriptEngine.QObjectWrapOptions)}.
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue newQObject(io.qt.script.@NonNull QScriptValue scriptObject, io.qt.core.@Nullable QObject qtObject, io.qt.script.QScriptEngine.@NonNull ValueOwnership ownership, io.qt.script.QScriptEngine.@NonNull QObjectWrapOption @NonNull... options) {
return newQObject(scriptObject, qtObject, ownership, new io.qt.script.QScriptEngine.QObjectWrapOptions(options));
}
}