ASTNULLType Class Reference
#include <ASTNULLType.hpp>
Detailed Description
There is only one instance of this class
Definition at line 20 of file ASTNULLType.hpp.
Member Function Documentation
const char* ASTNULLType::typeName |
( |
void |
|
) |
const [virtual] |
Return the type name for this AST node. (for XML output).
Implements AST.
RefAST ASTNULLType::clone |
( |
void |
|
) |
const [virtual] |
Clone this AST node.
Implements AST.
void ASTNULLType::addChild |
( |
RefAST |
c |
) |
[virtual] |
Add a node to the end of the child list for this node.
Implements AST.
size_t ASTNULLType::getNumberOfChildren |
( |
|
) |
const [virtual] |
Get the number of children. Returns 0 if the node is a leaf.
Implements AST.
void ASTNULLType::setFirstChild |
( |
RefAST |
c |
) |
[virtual] |
Set the first child of a node.
Implements AST.
void ASTNULLType::setNextSibling |
( |
RefAST |
n |
) |
[virtual] |
Set the next sibling after this one.
Implements AST.
bool ASTNULLType::equals |
( |
RefAST |
t |
) |
const [virtual] |
Is node t equal to this in terms of token type and text?
Implements AST.
bool ASTNULLType::equalsList |
( |
RefAST |
t |
) |
const [virtual] |
Is t an exact structural and equals() match of this tree. The 'this' reference is considered the start of a sibling list.
Implements AST.
bool ASTNULLType::equalsListPartial |
( |
RefAST |
t |
) |
const [virtual] |
Is 't' a subtree of this list? The siblings of the root are NOT ignored.
Implements AST.
bool ASTNULLType::equalsTree |
( |
RefAST |
t |
) |
const [virtual] |
Is tree rooted at 'this' equal to 't'? The siblings of 'this' are ignored.
Implements AST.
bool ASTNULLType::equalsTreePartial |
( |
RefAST |
t |
) |
const [virtual] |
Is 't' a subtree of the tree rooted at 'this'? The siblings of 'this' are ignored.
Implements AST.
ASTNULLType::ANTLR_USE_NAMESPACE |
( |
std |
|
) |
[virtual] |
Walk the tree looking for all exact subtree matches. Return a vector of RefAST that lets the caller walk the list of subtree roots found herein.
Implements AST.
ASTNULLType::ANTLR_USE_NAMESPACE |
( |
std |
|
) |
[virtual] |
Walk the tree looking for all exact subtree matches. Return a vector of RefAST that lets the caller walk the list of subtree roots found herein.
Implements AST.
RefAST ASTNULLType::getFirstChild |
( |
|
) |
const [virtual] |
Get the first child of this node; null if no children.
Implements AST.
RefAST ASTNULLType::getNextSibling |
( |
|
) |
const [virtual] |
Get the next sibling in line after this one.
Implements AST.
ASTNULLType::ANTLR_USE_NAMESPACE |
( |
std |
|
) |
const [virtual] |
Get the token text for this node.
Implements AST.
int ASTNULLType::getType |
( |
|
) |
const [virtual] |
Get the token type for this node.
Implements AST.
void ASTNULLType::initialize |
( |
int |
t, |
|
|
const ANTLR_USE_NAMESPACE(std) string & |
txt | |
|
) |
| | [virtual] |
Various initialization routines. Used by several factories to initialize an AST element.
Implements AST.
void ASTNULLType::initialize |
( |
RefAST |
t |
) |
[virtual] |
void ASTNULLType::initialize |
( |
RefToken |
t |
) |
[virtual] |
void ASTNULLType::initialize |
( |
ANTLR_USE_NAMESPACE(std) istream & |
infile |
) |
|
void ASTNULLType::setText |
( |
const ANTLR_USE_NAMESPACE(std) string & |
txt |
) |
[virtual] |
Set the token text for this node.
Implements AST.
void ASTNULLType::setType |
( |
int |
type |
) |
[virtual] |
Set the token type for this node.
Implements AST.
ASTNULLType::ANTLR_USE_NAMESPACE |
( |
std |
|
) |
const [virtual] |
Get the token text for this node.
Implements AST.
ASTNULLType::ANTLR_USE_NAMESPACE |
( |
std |
|
) |
const [virtual] |
Get the token text for this node.
Implements AST.
ASTNULLType::ANTLR_USE_NAMESPACE |
( |
std |
|
) |
const [virtual] |
Get the token text for this node.
Implements AST.
bool ASTNULLType::attributesToStream |
( |
ANTLR_USE_NAMESPACE(std) ostream & |
out |
) |
const |
void ASTNULLType::toStream |
( |
ANTLR_USE_NAMESPACE(std) ostream & |
out |
) |
const |
The documentation for this class was generated from the following file: