CommonAST Class Reference
#include <CommonAST.hpp>
Inheritance diagram for CommonAST:

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 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 std::string &txt) |
Various initialization routines. | |
virtual void | initialize (RefAST t) |
virtual void | initialize (RefToken t) |
virtual void | setText (const 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 | |
RefAST | factory () |
Protected Attributes | |
int | ttype |
std::string | text |
Constructor & Destructor Documentation
|
Definition at line 18 of file CommonAST.cpp. References text(). Referenced by clone(). |
|
Definition at line 25 of file CommonAST.cpp. References text(). |
|
Definition at line 41 of file CommonAST.cpp. References text(). |
|
Definition at line 32 of file CommonAST.cpp. |
Member Function Documentation
|
Clone this AST node.
Reimplemented from BaseAST. Reimplemented in CommonASTWithHiddenTokens. Definition at line 46 of file CommonAST.cpp. References CommonAST(), and RefAST. |
|
Reimplemented in CommonASTWithHiddenTokens. Definition at line 108 of file CommonAST.cpp. References RefAST. |
|
Get the token text for this node.
Reimplemented from BaseAST. Definition at line 52 of file CommonAST.cpp. References text(). |
|
Get the token type for this node.
Reimplemented from BaseAST. Definition at line 57 of file CommonAST.cpp. References ttype. |
|
Implements AST. Reimplemented in CommonASTWithHiddenTokens. Definition at line 74 of file CommonAST.cpp. References initialize(), setText(), and setType(). |
|
Implements AST. Reimplemented in CommonASTWithHiddenTokens. Definition at line 68 of file CommonAST.cpp. References initialize(), setText(), and setType(). |
|
Various initialization routines. Used by several factories to initialize an AST element. Implements AST. Reimplemented in CommonASTWithHiddenTokens. Definition at line 62 of file CommonAST.cpp. References initialize(), setText(), and setType(). Referenced by initialize(). |
|
Set the token text for this node.
Reimplemented from BaseAST. Definition at line 98 of file CommonAST.cpp. References text(). Referenced by initialize(). |
|
Set the token type for this node.
Reimplemented from BaseAST. Definition at line 103 of file CommonAST.cpp. References setType(), and ttype. Referenced by initialize(), and setType(). |
|
Return the class name.
Reimplemented from BaseAST. Reimplemented in CommonASTWithHiddenTokens. Definition at line 36 of file CommonAST.cpp. |
Member Data Documentation
|
Definition at line 47 of file CommonAST.hpp. |
|
Definition at line 46 of file CommonAST.hpp. |
The documentation for this class was generated from the following files:
- lib/antlr/antlr/CommonAST.hpp
- lib/antlr/src/CommonAST.cpp