The QScriptSyntaxCheckResult class provides the result of a script syntax check. More...
#include <QScriptSyntaxCheckResult>
This class was introduced in Qt 4.5.
enum | State { Error, Intermediate, Valid } |
QScriptSyntaxCheckResult ( const QScriptSyntaxCheckResult & other ) | |
~QScriptSyntaxCheckResult () | |
int | errorColumnNumber () const |
int | errorLineNumber () const |
QString | errorMessage () const |
State | state () const |
QScriptSyntaxCheckResult & | operator= ( const QScriptSyntaxCheckResult & other ) |
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 Qt Script program. |
Constructs a new QScriptSyntaxCheckResult from the other result.
Destroys this QScriptSyntaxCheckResult.
Returns the error column number of this QScriptSyntaxCheckResult, or -1 if there is no error.
See also state() and errorLineNumber().
Returns the error line number of this QScriptSyntaxCheckResult, or -1 if there is no error.
See also state() and errorMessage().
Returns the error message of this QScriptSyntaxCheckResult, or an empty string if there is no error.
See also state() and errorLineNumber().
Returns the state of this QScriptSyntaxCheckResult.
Assigns the other result to this QScriptSyntaxCheckResult, and returns a reference to this QScriptSyntaxCheckResult.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.