Extending Qt Creator Manual | Bind

Extending Qt Creator Manual 4.7.2

# Bind Class

(QmlJS::Bind)

The Bind class collects information about a single Document. More...

Header: | #include <Bind>
Inherits: | QmlJS::AST::Visitor (protected)

- List of all members, including inherited members

## Protected Functions

void | accept(AST::Node *node)
QmlJS::ObjectValue * | bindObject(AST::UiQualifiedId *qualifiedTypeNameId, AST::UiObjectInitializer *initializer)
QmlJS::ObjectValue * | switchObjectValue(QmlJS::ObjectValue *newObjectValue)

## Reimplemented Protected Functions

virtual bool | visit(AST::UiProgram *ast) override
virtual bool | visit(AST::Program *ast) override
virtual bool | visit(AST::UiImport *ast) override
virtual bool | visit(AST::UiPublicMember *ast) override
virtual bool | visit(AST::UiObjectDefinition *ast) override
virtual bool | visit(AST::UiObjectBinding *ast) override
virtual bool | visit(AST::UiScriptBinding *ast) override
virtual bool | visit(AST::UiArrayBinding *ast) override
virtual bool | visit(AST::FunctionDeclaration *ast) override
virtual bool | visit(AST::FunctionExpression *ast) override
virtual bool | visit(AST::VariableDeclaration *ast) override

### Additional Inherited Members

- 190 public functions inherited from QmlJS::AST::Visitor

## Detailed Description

The Bind class collects information about a single Document.

Each Document owns an instance of Bind. It provides access to data that can be derived by looking at the document in isolation. If you need information that goes beyond that, you need to use a Context.

The document's imports are classified and available through imports().

This class makes the structural information found in the AST available for analysis through Value instances. See findQmlObject(), idEnvironment(), rootObjectValue() and findAttachedJSScope().

See also Document and Context.

## Member Function Documentation

### `[protected]` void Bind::accept(AST::Node *node)

### `[protected]` QmlJS::ObjectValue *Bind::bindObject(AST::UiQualifiedId *qualifiedTypeNameId, AST::UiObjectInitializer *initializer)

### `[protected]` QmlJS::ObjectValue *Bind::switchObjectValue(QmlJS::ObjectValue *newObjectValue)

### `[override virtual protected]` bool Bind::visit(AST::UiProgram *ast)

### `[override virtual protected]` bool Bind::visit(AST::Program *ast)

### `[override virtual protected]` bool Bind::visit(AST::UiImport *ast)

### `[override virtual protected]` bool Bind::visit(AST::UiPublicMember *ast)

### `[override virtual protected]` bool Bind::visit(AST::UiObjectDefinition *ast)

### `[override virtual protected]` bool Bind::visit(AST::UiObjectBinding *ast)

### `[override virtual protected]` bool Bind::visit(AST::UiScriptBinding *ast)

### `[override virtual protected]` bool Bind::visit(AST::UiArrayBinding *ast)

### `[override virtual protected]` bool Bind::visit(AST::FunctionDeclaration *ast)

### `[override virtual protected]` bool Bind::visit(AST::FunctionExpression *ast)

### `[override virtual protected]` bool Bind::visit(AST::VariableDeclaration *ast)