io.qt.script.QScriptSyntaxCheckResult Maven / Gradle / Ivy
Show all versions of qtjambi-script Show documentation
package io.qt.script;
import io.qt.*;
/**
* The result of a script syntax check
* Java wrapper for Qt class QScriptSyntaxCheckResult
* @since This class was introduced in Qt 4.5.
*/
public class QScriptSyntaxCheckResult extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QScriptSyntaxCheckResult::State
*/
public enum State implements QtEnumerator {
/**
* Representing QScriptSyntaxCheckResult:: Error
*/
Error(0),
/**
* Representing QScriptSyntaxCheckResult:: Intermediate
*/
Intermediate(1),
/**
* Representing QScriptSyntaxCheckResult:: Valid
*/
Valid(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private State(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 State resolve(int value) {
switch (value) {
case 0: return Error;
case 1: return Intermediate;
case 2: return Valid;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QScriptSyntaxCheckResult:: QScriptSyntaxCheckResult(QScriptSyntaxCheckResult)
* @param other
*/
public QScriptSyntaxCheckResult(io.qt.script.@NonNull QScriptSyntaxCheckResult other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QScriptSyntaxCheckResult instance, io.qt.script.QScriptSyntaxCheckResult other);
/**
* See QScriptSyntaxCheckResult:: errorColumnNumber()const
* @return
*/
@QtUninvokable
public final int errorColumnNumber(){
return errorColumnNumber_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int errorColumnNumber_native_constfct(long __this__nativeId);
/**
* See QScriptSyntaxCheckResult:: errorLineNumber()const
* @return
*/
@QtUninvokable
public final int errorLineNumber(){
return errorLineNumber_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int errorLineNumber_native_constfct(long __this__nativeId);
/**
* See QScriptSyntaxCheckResult:: errorMessage()const
* @return
*/
@QtUninvokable
public final java.lang.@NonNull String errorMessage(){
return errorMessage_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String errorMessage_native_constfct(long __this__nativeId);
/**
* See QScriptSyntaxCheckResult:: operator=(QScriptSyntaxCheckResult)
* @param other
*/
@QtUninvokable
public final void assign(io.qt.script.@NonNull QScriptSyntaxCheckResult other){
assign_native_cref_QScriptSyntaxCheckResult(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QScriptSyntaxCheckResult(long __this__nativeId, long other);
/**
* See QScriptSyntaxCheckResult:: state()const
* @return
*/
@QtUninvokable
public final io.qt.script.QScriptSyntaxCheckResult.@NonNull State state(){
return io.qt.script.QScriptSyntaxCheckResult.State.resolve(state_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int state_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QScriptSyntaxCheckResult(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QScriptSyntaxCheckResult:: QScriptSyntaxCheckResult(QScriptSyntaxCheckResult)
*/
@QtUninvokable
@Override
public QScriptSyntaxCheckResult clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QScriptSyntaxCheckResult clone_native(long __this_nativeId);
}