io.qt.script.QScriptProgram Maven / Gradle / Ivy
Show all versions of qtjambi-script Show documentation
package io.qt.script;
import io.qt.*;
/**
* Encapsulates a Qt Script program
* Java wrapper for Qt class QScriptProgram
* @since This class was introduced in Qt 4.7.
*/
public class QScriptProgram extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QScriptProgram:: QScriptProgram()
*/
public QScriptProgram(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QScriptProgram instance);
/**
* See QScriptProgram:: QScriptProgram(QScriptProgram)
* @param other
*/
public QScriptProgram(io.qt.script.@NonNull QScriptProgram other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QScriptProgram instance, io.qt.script.QScriptProgram other);
/**
* See QScriptProgram:: QScriptProgram(QString, QString, int)
* @param sourceCode
* @param fileName
* @param firstLineNumber
*/
public QScriptProgram(java.lang.@NonNull String sourceCode, java.lang.@NonNull String fileName, int firstLineNumber){
super((QPrivateConstructor)null);
initialize_native(this, sourceCode, fileName, firstLineNumber);
}
private native static void initialize_native(QScriptProgram instance, java.lang.String sourceCode, java.lang.String fileName, int firstLineNumber);
/**
* See QScriptProgram:: fileName()const
* @return
*/
@QtUninvokable
public final java.lang.@NonNull String fileName(){
return fileName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String fileName_native_constfct(long __this__nativeId);
/**
* See QScriptProgram:: firstLineNumber()const
* @return
*/
@QtUninvokable
public final int firstLineNumber(){
return firstLineNumber_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int firstLineNumber_native_constfct(long __this__nativeId);
/**
* See QScriptProgram:: 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 QScriptProgram:: operator=(QScriptProgram)
* @param other
*/
@QtUninvokable
public final void assign(io.qt.script.@NonNull QScriptProgram other){
assign_native_cref_QScriptProgram(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QScriptProgram(long __this__nativeId, long other);
/**
* See QScriptProgram:: operator==(QScriptProgram)const
* @param other
* @return
*/
@QtUninvokable
public final boolean equals(io.qt.script.@NonNull QScriptProgram other){
return equals_native_cref_QScriptProgram_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native boolean equals_native_cref_QScriptProgram_constfct(long __this__nativeId, long other);
/**
* See QScriptProgram:: sourceCode()const
* @return
*/
@QtUninvokable
public final java.lang.@NonNull String sourceCode(){
return sourceCode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String sourceCode_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QScriptProgram(QPrivateConstructor p) { super(p); }
/**
* See QScriptProgram:: operator==(QScriptProgram)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other==null || other instanceof io.qt.script.QScriptProgram) {
return equals((io.qt.script.QScriptProgram) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QScriptProgram)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QScriptProgram:: QScriptProgram(QScriptProgram)
*/
@QtUninvokable
@Override
public QScriptProgram clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QScriptProgram clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QScriptProgram(java.lang.String, java.lang.String, int)}
* with firstLineNumber = 1
.
*/
public QScriptProgram(java.lang.@NonNull String sourceCode, java.lang.@NonNull String fileName) {
this(sourceCode, fileName, (int)1);
}
/**
* Overloaded constructor for {@link #QScriptProgram(java.lang.String, java.lang.String, int)}
* with:
* fileName = (String)null
* firstLineNumber = 1
*
*/
public QScriptProgram(java.lang.@NonNull String sourceCode) {
this(sourceCode, (String)null, (int)1);
}
}