Extending Qt Creator Manual | Document

Extending Qt Creator Manual 4.7.2

# Document Class

(QmlJS::QmlJS::Document)

- List of all members, including inherited members

## Public Types

typedef | MutablePtr
typedef | Ptr

## Public Functions

| ~Document()
AST::Node * | ast() const
QmlJS::QmlJS::Bind * | bind() const
QmlJS::QString | componentName() const
QList<QmlJS::QmlJS::DiagnosticMessage> | diagnosticMessages() const
int | editorRevision() const
const QmlJS::Engine * | engine() const
AST::ExpressionNode * | expression() const
QmlJS::QString | fileName() const
QmlJS::QByteArray | fingerprint() const
QmlJS::QString | importId() const
bool | isParsedCorrectly() const
bool | isQmlDocument() const
QList<AST::SourceLocation> | jsDirectives() const
AST::Program * | jsProgram() const
int | language() const
bool | parse()
bool | parseExpression()
bool | parseJavaScript()
bool | parseQml()
QmlJS::QString | path() const
Document::Ptr | ptr() const
AST::UiProgram * | qmlProgram() const
void | setEditorRevision(int revision)
void | setLanguage(int l)
void | setSource(const QmlJS::QString &source)
QmlJS::QString | source() const

## Static Public Members

QmlJS::QmlJS::Document::MutablePtr | create(const QmlJS::QString &fileName, int language)

## Protected Functions

| Document(const QmlJS::QString &fileName, int language)

## Member Type Documentation

### typedef Document::MutablePtr

### typedef Document::Ptr

## Member Function Documentation

### `[protected]` Document::Document(const QmlJS::QString &fileName, int language)

Default constructs an instance of Document.

### Document::~Document()

Destroys the instance of Document.

### AST::Node *Document::ast() const

### QmlJS::QmlJS::Bind *Document::bind() const

### QmlJS::QString Document::componentName() const

### `[static]` QmlJS::QmlJS::Document::MutablePtr Document::create(const QmlJS::QString &fileName, int language)

### QList<QmlJS::QmlJS::DiagnosticMessage> Document::diagnosticMessages() const

### int Document::editorRevision() const

See also setEditorRevision().

### const QmlJS::Engine *Document::engine() const

### AST::ExpressionNode *Document::expression() const

### QmlJS::QString Document::fileName() const

### QmlJS::QByteArray Document::fingerprint() const

### QmlJS::QString Document::importId() const

### bool Document::isParsedCorrectly() const

### bool Document::isQmlDocument() const

### QList<AST::SourceLocation> Document::jsDirectives() const

### AST::Program *Document::jsProgram() const

### int Document::language() const

See also setLanguage().

### bool Document::parse()

### bool Document::parseExpression()

### bool Document::parseJavaScript()

### bool Document::parseQml()

### QmlJS::QString Document::path() const

### Document::Ptr Document::ptr() const

### AST::UiProgram *Document::qmlProgram() const

### void Document::setEditorRevision(int revision)

See also editorRevision().

### void Document::setLanguage(int l)

See also language().

### void Document::setSource(const QmlJS::QString &source)

See also source().

### QmlJS::QString Document::source() const

See also setSource().