Extending Qt Creator Manual | Engine

Extending Qt Creator Manual 4.7.2

# Engine Class

(Debugger::QmlJS::Engine)

- List of all members, including inherited members

## Public Functions

| Engine()
| ~Engine()
void | addComment(int pos, int len, int line, int col)
const Debugger::QString & | code() const
QList<AST::SourceLocation> | comments() const
Debugger::QmlJS::Directives * | directives() const
Debugger::QmlJS::Lexer * | lexer() const
Debugger::QStringRef | midRef(int position, int size)
Debugger::QStringRef | newStringRef(const Debugger::QString &s)
Debugger::QStringRef | newStringRef(const Debugger::QChar *chars, int size)
Debugger::QmlJS::MemoryPool * | pool()
void | setCode(const Debugger::QString &code)
void | setDirectives(Debugger::QmlJS::Directives *directives)
void | setLexer(Debugger::QmlJS::Lexer *lexer)

## Member Function Documentation

### Engine::Engine()

Default constructs an instance of Engine.

### Engine::~Engine()

Destroys the instance of Engine.

### void Engine::addComment(int pos, int len, int line, int col)

### const Debugger::QString &Engine::code() const

See also setCode().

### QList<AST::SourceLocation> Engine::comments() const

### Debugger::QmlJS::Directives *Engine::directives() const

See also setDirectives().

### Debugger::QmlJS::Lexer *Engine::lexer() const

See also setLexer().

### Debugger::QStringRef Engine::midRef(int position, int size)

### Debugger::QStringRef Engine::newStringRef(const Debugger::QString &s)

### Debugger::QStringRef Engine::newStringRef(const Debugger::QChar *chars, int size)

### Debugger::QmlJS::MemoryPool *Engine::pool()

### void Engine::setCode(const Debugger::QString &code)

See also code().

### void Engine::setDirectives(Debugger::QmlJS::Directives *directives)

See also directives().

### void Engine::setLexer(Debugger::QmlJS::Lexer *lexer)

See also lexer().