Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QScriptSyntaxCheckResult Class

TheQScriptSyntaxCheckResult class provides the result of a script syntax check.More...

Header:#include <QScriptSyntaxCheckResult>
Since: Qt 4.5

Public Types

enumState { Error, Intermediate, Valid }

Public Functions

QScriptSyntaxCheckResult(const QScriptSyntaxCheckResult & other)
~QScriptSyntaxCheckResult()
interrorColumnNumber() const
interrorLineNumber() const
QStringerrorMessage() const
Statestate() const
QScriptSyntaxCheckResult &operator=(const QScriptSyntaxCheckResult & other)

Detailed Description

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.

Member Type Documentation

enum QScriptSyntaxCheckResult::State

This enum specifies the state of a syntax check.

ConstantValueDescription
QScriptSyntaxCheckResult::Error0The program contains a syntax error.
QScriptSyntaxCheckResult::Intermediate1The program is incomplete.
QScriptSyntaxCheckResult::Valid2The program is a syntactically correct Qt Script program.

Member Function Documentation

QScriptSyntaxCheckResult::QScriptSyntaxCheckResult(constQScriptSyntaxCheckResult & other)

Constructs a newQScriptSyntaxCheckResult from theother result.

QScriptSyntaxCheckResult::~QScriptSyntaxCheckResult()

Destroys thisQScriptSyntaxCheckResult.

int QScriptSyntaxCheckResult::errorColumnNumber() const

Returns the error column number of thisQScriptSyntaxCheckResult, or -1 if there is no error.

See alsostate() anderrorLineNumber().

int QScriptSyntaxCheckResult::errorLineNumber() const

Returns the error line number of thisQScriptSyntaxCheckResult, or -1 if there is no error.

See alsostate() anderrorMessage().

QString QScriptSyntaxCheckResult::errorMessage() const

Returns the error message of thisQScriptSyntaxCheckResult, or an empty string if there is no error.

See alsostate() anderrorLineNumber().

State QScriptSyntaxCheckResult::state() const

Returns the state of thisQScriptSyntaxCheckResult.

QScriptSyntaxCheckResult & QScriptSyntaxCheckResult::operator=(constQScriptSyntaxCheckResult & other)

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.


[8]ページ先頭

©2009-2025 Movatter.jp