java.lang.Object
io.qt.QtObject
io.qt.script.QScriptProgram
- All Implemented Interfaces:
io.qt.QtObjectInterface,Cloneable
Encapsulates a Qt Script program
Java wrapper for Qt's class QScriptProgram
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
io.qt.QtObject.QPrivateConstructor -
Constructor Summary
ConstructorsModifierConstructorDescriptionQScriptProgram(QScriptProgram other) QScriptProgram(String sourceCode) Overloaded constructor forQScriptProgram(java.lang.String, java.lang.String, int)QScriptProgram(String sourceCode, String fileName) Overloaded constructor forQScriptProgram(java.lang.String, java.lang.String, int)withfirstLineNumber = 1.QScriptProgram(String sourceCode, String fileName, int firstLineNumber) protectedQScriptProgram(io.qt.QtObject.QPrivateConstructor p) Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidassign(QScriptProgram other) clone()Creates and returns a copy of this object.booleanUsed to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final StringfileName()final intinthashCode()final booleanisNull()final StringMethods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QScriptProgram
public QScriptProgram() -
QScriptProgram
-
QScriptProgram
Overloaded constructor for
QScriptProgram(java.lang.String, java.lang.String, int)withfirstLineNumber = 1. -
QScriptProgram
Overloaded constructor for
QScriptProgram(java.lang.String, java.lang.String, int)with:
fileName = (String)nullfirstLineNumber = 1
-
QScriptProgram
-
QScriptProgram
protected QScriptProgram(io.qt.QtObject.QPrivateConstructor p) Constructor for internal use only.- Parameters:
p- expected to benull.
-
-
Method Details
-
fileName
-
firstLineNumber
@QtUninvokable public final int firstLineNumber() -
isNull
@QtUninvokable public final boolean isNull() -
assign
-
sourceCode
-
equals
Description copied from class:io.qt.QtObjectUsed to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation.- Overrides:
equalsin classio.qt.QtObject- Parameters:
other- other object- Returns:
- true if the native counterpart of the two objects are one and the same.
-
hashCode
@QtUninvokable public int hashCode() -
clone
Creates and returns a copy of this object.
-