1 #ifndef INC_CommonAST_hpp__ 2 #define INC_CommonAST_hpp__ 14 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 22 , ttype(
Token::INVALID_TYPE )
29 , ttype( t->getType() )
30 , text( t->getText() )
83 #ifdef ANTLR_SUPPORT_XML 106 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 110 #endif //INC_CommonAST_hpp__ Definition: ANTLRException.hpp:15
virtual void setText(const std ::string &txt)
Set the token text for this node.
Definition: CommonAST.hpp:87
int ttype
Definition: CommonAST.hpp:100
virtual RefAST clone(void) const
Clone this AST node.
Definition: CommonAST.hpp:51
static const char *const TYPE_NAME
Definition: CommonAST.hpp:98
std ::string text
Definition: CommonAST.hpp:101
virtual void setType(int type)
Set the token type for this node.
Definition: CommonAST.hpp:91
virtual int getType() const =0
Get the token type for this node.
Definition: BaseAST.hpp:23
#define ANTLR_API
Definition: config.hpp:22
virtual std ::string getText() const
Get the token text for this node.
Definition: CommonAST.hpp:57
Definition: CommonAST.hpp:18
virtual int getType() const
Definition: Token.cpp:30
virtual std ::string getText() const
Definition: Token.cpp:25
virtual void initialize(int t, const std ::string &txt)
Definition: CommonAST.hpp:66
virtual std ::string getText() const =0
Get the token text for this node.
CommonAST(const CommonAST &other)
Definition: CommonAST.hpp:34
virtual const char * typeName(void) const
Return the class name.
Definition: CommonAST.hpp:45
CommonAST(RefToken t)
Definition: CommonAST.hpp:27
CommonAST()
Definition: CommonAST.hpp:20
virtual void initialize(RefToken t)
Definition: CommonAST.hpp:77
virtual void initialize(RefAST t)
Definition: CommonAST.hpp:72
ASTRefCount< AST > RefAST
Definition: ASTRefCount.hpp:92
#define ANTLR_USE_NAMESPACE(_x_)
Definition: config.hpp:18
virtual int getType() const
Get the token type for this node.
Definition: CommonAST.hpp:61
ASTRefCount< CommonAST > RefCommonAST
Definition: CommonAST.hpp:104
virtual ~CommonAST()
Definition: CommonAST.hpp:41