Package antlr
Class ASTNULLType
java.lang.Object
antlr.ASTNULLType
- All Implemented Interfaces:
AST
There is only one instance of this class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a (rightmost) child to this nodebooleanbooleanequalsList(AST t) booleanbooleanequalsTree(AST t) booleanfindAllPartial(AST subtree) intGet the first child of this node; null if no childrenintgetLine()Get the next sibling in line after this oneintGet number of children of this node; if leaf, returns 0getText()Get the token text for this nodeintgetType()Get the token type for this nodevoidinitialize(int t, String txt) voidinitialize(AST t) voidinitialize(Token t) voidsetFirstChild(AST c) Set the first child of a node.voidSet the next sibling after this one.voidSet the token text for this nodevoidsetType(int ttype) Set the token type for this nodetoString()
-
Constructor Details
-
ASTNULLType
public ASTNULLType()
-
-
Method Details
-
addChild
Description copied from interface:ASTAdd a (rightmost) child to this node -
equals
-
equalsList
- Specified by:
equalsListin interfaceAST
-
equalsListPartial
- Specified by:
equalsListPartialin interfaceAST
-
equalsTree
- Specified by:
equalsTreein interfaceAST
-
equalsTreePartial
- Specified by:
equalsTreePartialin interfaceAST
-
findAll
-
findAllPartial
- Specified by:
findAllPartialin interfaceAST
-
getFirstChild
Description copied from interface:ASTGet the first child of this node; null if no children- Specified by:
getFirstChildin interfaceAST
-
getNextSibling
Description copied from interface:ASTGet the next sibling in line after this one- Specified by:
getNextSiblingin interfaceAST
-
getText
Description copied from interface:ASTGet the token text for this node -
getType
public int getType()Description copied from interface:ASTGet the token type for this node -
getLine
public int getLine() -
getColumn
public int getColumn() -
getNumberOfChildren
public int getNumberOfChildren()Description copied from interface:ASTGet number of children of this node; if leaf, returns 0- Specified by:
getNumberOfChildrenin interfaceAST
-
initialize
- Specified by:
initializein interfaceAST
-
initialize
- Specified by:
initializein interfaceAST
-
initialize
- Specified by:
initializein interfaceAST
-
setFirstChild
Description copied from interface:ASTSet the first child of a node.- Specified by:
setFirstChildin interfaceAST
-
setNextSibling
Description copied from interface:ASTSet the next sibling after this one.- Specified by:
setNextSiblingin interfaceAST
-
setText
Description copied from interface:ASTSet the token text for this node -
setType
public void setType(int ttype) Description copied from interface:ASTSet the token type for this node -
toString
-
toStringList
- Specified by:
toStringListin interfaceAST
-
toStringTree
- Specified by:
toStringTreein interfaceAST
-