1#ifndef INC_ASTNULLType_hpp__
2#define INC_ASTNULLType_hpp__
15#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
60#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
ASTRefCount< AST > RefAST
Definition ASTRefCount.hpp:92
TokenRefCount< Token > RefToken
Definition TokenRefCount.hpp:92
Definition ASTNULLType.hpp:20
RefAST clone(void) const
Clone this AST node.
Definition ASTNULLType.cpp:20
size_t getNumberOfChildren() const
Get the number of children. Returns 0 if the node is a leaf.
Definition ASTNULLType.cpp:29
const char * typeName(void) const
Return the type name for this AST node. (for XML output)
Definition ASTNULLType.cpp:150
bool equalsListPartial(RefAST t) const
Definition ASTNULLType.cpp:44
bool attributesToStream(std ::ostream &out) const
std::string toStringList() const
Print out a child-sibling tree in LISP notation.
Definition ASTNULLType.cpp:128
int getType() const
Get the token type for this node.
Definition ASTNULLType.cpp:84
std ::vector< RefAST > findAllPartial(RefAST subtree)
Definition ASTNULLType.cpp:64
void initialize(int t, const std ::string &txt)
std::string toString() const
Return this AST node as a string.
Definition ASTNULLType.cpp:123
RefAST getFirstChild() const
Get the first child of this node; null if no children.
Definition ASTNULLType.cpp:69
bool equalsTree(RefAST t) const
Definition ASTNULLType.cpp:49
bool equalsTreePartial(RefAST t) const
Definition ASTNULLType.cpp:54
void setText(const std ::string &text)
Set the token text for this node.
Definition ASTNULLType.cpp:115
void setNextSibling(RefAST n)
Set the next sibling after this one.
Definition ASTNULLType.cpp:111
void setType(int ttype)
Set the token type for this node.
Definition ASTNULLType.cpp:119
void setFirstChild(RefAST c)
Set the first child of a node.
Definition ASTNULLType.cpp:107
bool equalsList(RefAST t) const
Definition ASTNULLType.cpp:39
std::string toStringTree() const
Definition ASTNULLType.cpp:133
bool equals(RefAST t) const
Is node t equal to this in terms of token type and text?
Definition ASTNULLType.cpp:34
std ::vector< RefAST > findAll(RefAST tree)
Definition ASTNULLType.cpp:59
void initialize(std ::istream &infile)
RefAST getNextSibling() const
Get the next sibling in line after this one.
Definition ASTNULLType.cpp:74
std::string getText() const
Get the token text for this node.
Definition ASTNULLType.cpp:79
void toStream(std ::ostream &out) const
void addChild(RefAST c)
Add a node to the end of the child list for this node.
Definition ASTNULLType.cpp:25
AST()
Definition AST.hpp:25
#define ANTLR_USE_NAMESPACE(_x_)
Definition config.hpp:18
#define ANTLR_API
Definition config.hpp:22
Definition ANTLRException.hpp:15