
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQScriptSyntaxCheckResult class provides the result of a script syntax check.More...
| Header: | #include <QScriptSyntaxCheckResult> |
| Since: | 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) |
TheQScriptSyntaxCheckResult class provides the result of a script syntax check.
QScriptSyntaxCheckResult is returned byQScriptEngine::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 newQScriptSyntaxCheckResult from theother result.
Destroys thisQScriptSyntaxCheckResult.
Returns the error column number of thisQScriptSyntaxCheckResult, or -1 if there is no error.
See alsostate() anderrorLineNumber().
Returns the error line number of thisQScriptSyntaxCheckResult, or -1 if there is no error.
See alsostate() anderrorMessage().
Returns the error message of thisQScriptSyntaxCheckResult, or an empty string if there is no error.
See alsostate() anderrorLineNumber().
Returns the state of thisQScriptSyntaxCheckResult.
Assigns theother result to thisQScriptSyntaxCheckResult, and returns a reference to thisQScriptSyntaxCheckResult.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.