CopperSpice API
1.9.2
|
The QScriptSyntaxCheckResult class provides the result of a script syntax check. More...
Public Types | |
enum | State |
Public Methods | |
QScriptSyntaxCheckResult (const QScriptSyntaxCheckResult &other) | |
~QScriptSyntaxCheckResult () | |
int | errorColumnNumber () const |
int | errorLineNumber () const |
QString | errorMessage () const |
QScriptSyntaxCheckResult & | operator= (const QScriptSyntaxCheckResult &other) |
State | state () const |
Friends | |
class | QScriptEngine |
The QScriptSyntaxCheckResult class provides the result of a script syntax check.
QScriptSyntaxCheckResult is returned by QScriptEngine::checkSyntax() to provide information about the syntactical (in)correctness of a script.
This enum specifies the state of a syntax check.
Constant | Value | Description |
---|---|---|
QScriptSyntaxCheckResult::Error | 0 | The program contains a syntax error. |
QScriptSyntaxCheckResult::Intermediate | 1 | The program is incomplete. |
QScriptSyntaxCheckResult::Valid | 2 | The program is a syntactically correct CsScript program. |
QScriptSyntaxCheckResult::QScriptSyntaxCheckResult | ( | const QScriptSyntaxCheckResult & | other | ) |
Constructs a new QScriptSyntaxCheckResult from the other result.
QScriptSyntaxCheckResult::~QScriptSyntaxCheckResult | ( | ) |
Destroys this QScriptSyntaxCheckResult.
int QScriptSyntaxCheckResult::errorColumnNumber | ( | ) | const |
Returns the error column number of this QScriptSyntaxCheckResult, or -1 if there is no error.
int QScriptSyntaxCheckResult::errorLineNumber | ( | ) | const |
Returns the error line number of this QScriptSyntaxCheckResult, or -1 if there is no error.
QString QScriptSyntaxCheckResult::errorMessage | ( | ) | const |
Returns the error message of this QScriptSyntaxCheckResult, or an empty string if there is no error.
QScriptSyntaxCheckResult & QScriptSyntaxCheckResult::operator= | ( | const QScriptSyntaxCheckResult & | other | ) |
Copy assigns from other and returns a reference to this object.
State QScriptSyntaxCheckResult::state | ( | ) | const |
Returns the state of this QScriptSyntaxCheckResult.