java.lang.Object
io.qt.QtObject
io.qt.script.QScriptProgram
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Encapsulates a Qt Script program
Java wrapper for Qt class QScriptProgram
- Since:
- This class was introduced in Qt 4.7.
-
Constructor Summary
ConstructorDescriptionQScriptProgram
(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) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QScriptProgram other) clone()
Creates and returns a copy of this object.final boolean
equals
(QScriptProgram other) boolean
final String
fileName()
final int
int
hashCode()
Returns the objects's hash code computed byqHash(QScriptProgram)
.final boolean
isNull()
final String
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QScriptProgram
public QScriptProgram() -
QScriptProgram
- Parameters:
other
-
-
QScriptProgram
- Parameters:
sourceCode
-fileName
-firstLineNumber
-
-
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)null
firstLineNumber = 1
-
-
Method Details
-
fileName
- Returns:
-
firstLineNumber
- Returns:
-
isNull
- Returns:
-
assign
- Parameters:
other
-
-
equals
- Parameters:
other
-- Returns:
-
sourceCode
- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QScriptProgram)
. -
clone
Creates and returns a copy of this object.
-