#include <CommonAST.hpp>
Public Member Functions | |
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 Member Functions | |
static RefAST | factory () |
Static Public Attributes | |
static const char *const | TYPE_NAME |
Protected Member Functions | |
ANTLR_USE_NAMESPACE (std) string text | |
Protected Attributes | |
int | ttype |
Definition at line 18 of file CommonAST.hpp.
CommonAST::CommonAST | ( | ) | [inline] |
Definition at line 20 of file CommonAST.hpp.
CommonAST::CommonAST | ( | RefToken | t | ) | [inline] |
Definition at line 27 of file CommonAST.hpp.
CommonAST::CommonAST | ( | const CommonAST & | other | ) | [inline] |
Definition at line 34 of file CommonAST.hpp.
virtual CommonAST::~CommonAST | ( | ) | [inline, virtual] |
Definition at line 41 of file CommonAST.hpp.
virtual const char* CommonAST::typeName | ( | void | ) | const [inline, virtual] |
Return the class name.
Implements BaseAST.
Reimplemented in CommonASTWithHiddenTokens.
Definition at line 45 of file CommonAST.hpp.
References TYPE_NAME.
virtual RefAST CommonAST::clone | ( | void | ) | const [inline, virtual] |
Clone this AST node.
Implements BaseAST.
Reimplemented in CommonASTWithHiddenTokens.
Definition at line 51 of file CommonAST.hpp.
virtual CommonAST::ANTLR_USE_NAMESPACE | ( | std | ) | const [inline, virtual] |
Get the token text for this node.
Reimplemented from BaseAST.
Definition at line 57 of file CommonAST.hpp.
virtual int CommonAST::getType | ( | ) | const [inline, virtual] |
Get the token type for this node.
Reimplemented from BaseAST.
Definition at line 61 of file CommonAST.hpp.
virtual void CommonAST::initialize | ( | int | t, | |
const ANTLR_USE_NAMESPACE(std) string & | txt | |||
) | [inline, virtual] |
Various initialization routines. Used by several factories to initialize an AST element.
Implements AST.
Reimplemented in CommonASTWithHiddenTokens.
Definition at line 66 of file CommonAST.hpp.
Referenced by cfront::LocationNode::initialize().
virtual void CommonAST::initialize | ( | RefAST | t | ) | [inline, virtual] |
Implements AST.
Reimplemented in CommonASTWithHiddenTokens.
Definition at line 72 of file CommonAST.hpp.
virtual void CommonAST::initialize | ( | RefToken | t | ) | [inline, virtual] |
Implements AST.
Reimplemented in CommonASTWithHiddenTokens.
Definition at line 77 of file CommonAST.hpp.
virtual void CommonAST::setText | ( | const ANTLR_USE_NAMESPACE(std) string & | txt | ) | [inline, virtual] |
Set the token text for this node.
Reimplemented from BaseAST.
Definition at line 87 of file CommonAST.hpp.
virtual void CommonAST::setType | ( | int | type | ) | [inline, virtual] |
Set the token type for this node.
Reimplemented from BaseAST.
Definition at line 91 of file CommonAST.hpp.
static RefAST CommonAST::factory | ( | ) | [static] |
Reimplemented in CommonASTWithHiddenTokens.
CommonAST::ANTLR_USE_NAMESPACE | ( | std | ) | [protected, virtual] |
const char* const CommonAST::TYPE_NAME [static] |
Reimplemented in CommonASTWithHiddenTokens.
Definition at line 98 of file CommonAST.hpp.
Referenced by typeName().
int CommonAST::ttype [protected] |
Definition at line 100 of file CommonAST.hpp.