Qt 4.8
|
The QScriptSyntaxCheckResult class provides the result of a script syntax check. More...
#include <qscriptengine.h>
Public Types | |
enum | State { Error, Intermediate, Valid } |
This enum specifies the state of a syntax check. More... | |
Public Functions | |
int | errorColumnNumber () const |
Returns the error column number of this QScriptSyntaxCheckResult, or -1 if there is no error. More... | |
int | errorLineNumber () const |
Returns the error line number of this QScriptSyntaxCheckResult, or -1 if there is no error. More... | |
QString | errorMessage () const |
Returns the error message of this QScriptSyntaxCheckResult, or an empty string if there is no error. More... | |
QScriptSyntaxCheckResult & | operator= (const QScriptSyntaxCheckResult &other) |
Assigns the other result to this QScriptSyntaxCheckResult, and returns a reference to this QScriptSyntaxCheckResult. More... | |
QScriptSyntaxCheckResult (const QScriptSyntaxCheckResult &other) | |
Constructs a new QScriptSyntaxCheckResult from the other result. More... | |
State | state () const |
Returns the state of this QScriptSyntaxCheckResult. More... | |
~QScriptSyntaxCheckResult () | |
Destroys this QScriptSyntaxCheckResult. More... | |
Private Functions | |
QScriptSyntaxCheckResult () | |
QScriptSyntaxCheckResult (QScriptSyntaxCheckResultPrivate *d) | |
Properties | |
QExplicitlySharedDataPointer< QScriptSyntaxCheckResultPrivate > | d_ptr |
Friends | |
class | QScriptEngine |
class | QScriptEnginePrivate |
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.
Definition at line 75 of file qscriptengine.h.
This enum specifies the state of a syntax check.
Enumerator | |
---|---|
Error | |
Intermediate | |
Valid |
Definition at line 78 of file qscriptengine.h.
QScriptSyntaxCheckResult::QScriptSyntaxCheckResult | ( | const QScriptSyntaxCheckResult & | other | ) |
Constructs a new QScriptSyntaxCheckResult from the other result.
Definition at line 4463 of file qscriptengine.cpp.
QScriptSyntaxCheckResult::~QScriptSyntaxCheckResult | ( | ) |
Destroys this QScriptSyntaxCheckResult.
Definition at line 4487 of file qscriptengine.cpp.
|
private |
Definition at line 4479 of file qscriptengine.cpp.
|
private |
Definition at line 4471 of file qscriptengine.cpp.
int QScriptSyntaxCheckResult::errorColumnNumber | ( | ) | const |
Returns the error column number of this QScriptSyntaxCheckResult, or -1 if there is no error.
Definition at line 4522 of file qscriptengine.cpp.
int QScriptSyntaxCheckResult::errorLineNumber | ( | ) | const |
Returns the error line number of this QScriptSyntaxCheckResult, or -1 if there is no error.
Definition at line 4508 of file qscriptengine.cpp.
QString QScriptSyntaxCheckResult::errorMessage | ( | ) | const |
Returns the error message of this QScriptSyntaxCheckResult, or an empty string if there is no error.
Definition at line 4536 of file qscriptengine.cpp.
QScriptSyntaxCheckResult & QScriptSyntaxCheckResult::operator= | ( | const QScriptSyntaxCheckResult & | other | ) |
Assigns the other result to this QScriptSyntaxCheckResult, and returns a reference to this QScriptSyntaxCheckResult.
Definition at line 4548 of file qscriptengine.cpp.
QScriptSyntaxCheckResult::State QScriptSyntaxCheckResult::state | ( | ) | const |
Returns the state of this QScriptSyntaxCheckResult.
Definition at line 4494 of file qscriptengine.cpp.
Referenced by QScriptDebuggerConsole::consumeInput(), QScriptDebuggerLocalsItemDelegate::validateInput(), and QScriptBreakpointsItemDelegate::validateInput().
|
friend |
Definition at line 100 of file qscriptengine.h.
|
friend |
Definition at line 101 of file qscriptengine.h.
|
private |
Definition at line 97 of file qscriptengine.h.
Referenced by operator=().