#include <CommonAST.hpp>
Inheritance diagram for CommonAST:
Public Methods | |
CommonAST () | |
CommonAST (RefToken t) | |
CommonAST (const CommonAST &other) | |
virtual | ~CommonAST () |
virtual const char * | typeName (void) const |
Return the class name. | |
virtual RefAST | clone (void) const |
Clone this AST node. | |
virtual | ANTLR_USE_NAMESPACE (std) string getText() const |
Get the token text for this node. | |
virtual int | getType () const |
Get the token type for this node. | |
virtual void | initialize (int t, const ANTLR_USE_NAMESPACE(std) string &txt) |
virtual void | initialize (RefAST t) |
virtual void | initialize (RefToken t) |
virtual void | setText (const ANTLR_USE_NAMESPACE(std) string &txt) |
Set the token text for this node. | |
virtual void | setType (int type) |
Set the token type for this node. | |
Static Public Methods | |
RefAST | factory () |
Static Public Attributes | |
const char *const | TYPE_NAME = "CommonAST" |
Protected Methods | |
ANTLR_USE_NAMESPACE (std) string text | |
Protected Attributes | |
int | ttype |
|
|
|
|
|
|
|
|
|
Walk the tree looking for all exact subtree matches. Return an ASTEnumerator that lets the caller walk the list of subtree roots found herein. Reimplemented from BaseAST. |
|
Get the token text for this node.
Reimplemented from BaseAST. |
|
Clone this AST node.
Reimplemented from BaseAST. Reimplemented in CommonASTWithHiddenTokens. |
|
Reimplemented in CommonASTWithHiddenTokens. |
|
Get the token type for this node.
Reimplemented from BaseAST. |
|
Implements AST. Reimplemented in CommonASTWithHiddenTokens. |
|
Implements AST. Reimplemented in CommonASTWithHiddenTokens. |
|
Various initialization routines. Used by several factories to initialize an AST element. Implements AST. Reimplemented in CommonASTWithHiddenTokens. |
|
Set the token text for this node.
Reimplemented from BaseAST. |
|
Set the token type for this node.
Reimplemented from BaseAST. |
|
Return the class name.
Reimplemented from BaseAST. Reimplemented in CommonASTWithHiddenTokens. |
|
|
|
Reimplemented from BaseAST. Reimplemented in CommonASTWithHiddenTokens. |