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 TypeMethodDescriptionvoid
Add a (rightmost) child to this nodeboolean
boolean
equalsList
(AST t) boolean
boolean
equalsTree
(AST t) boolean
findAllPartial
(AST subtree) int
Get the first child of this node; null if no childrenint
getLine()
Get the next sibling in line after this oneint
Get number of children of this node; if leaf, returns 0getText()
Get the token text for this nodeint
getType()
Get the token type for this nodevoid
initialize
(int t, String txt) void
initialize
(AST t) void
initialize
(Token t) void
setFirstChild
(AST c) Set the first child of a node.void
Set the next sibling after this one.void
Set the token text for this nodevoid
setType
(int ttype) Set the token type for this nodetoString()
-
Constructor Details
-
ASTNULLType
public ASTNULLType()
-
-
Method Details
-
addChild
Description copied from interface:AST
Add a (rightmost) child to this node -
equals
-
equalsList
- Specified by:
equalsList
in interfaceAST
-
equalsListPartial
- Specified by:
equalsListPartial
in interfaceAST
-
equalsTree
- Specified by:
equalsTree
in interfaceAST
-
equalsTreePartial
- Specified by:
equalsTreePartial
in interfaceAST
-
findAll
-
findAllPartial
- Specified by:
findAllPartial
in interfaceAST
-
getFirstChild
Description copied from interface:AST
Get the first child of this node; null if no children- Specified by:
getFirstChild
in interfaceAST
-
getNextSibling
Description copied from interface:AST
Get the next sibling in line after this one- Specified by:
getNextSibling
in interfaceAST
-
getText
Description copied from interface:AST
Get the token text for this node -
getType
public int getType()Description copied from interface:AST
Get the token type for this node -
getLine
public int getLine() -
getColumn
public int getColumn() -
getNumberOfChildren
public int getNumberOfChildren()Description copied from interface:AST
Get number of children of this node; if leaf, returns 0- Specified by:
getNumberOfChildren
in interfaceAST
-
initialize
- Specified by:
initialize
in interfaceAST
-
initialize
- Specified by:
initialize
in interfaceAST
-
initialize
- Specified by:
initialize
in interfaceAST
-
setFirstChild
Description copied from interface:AST
Set the first child of a node.- Specified by:
setFirstChild
in interfaceAST
-
setNextSibling
Description copied from interface:AST
Set the next sibling after this one.- Specified by:
setNextSibling
in interfaceAST
-
setText
Description copied from interface:AST
Set the token text for this node -
setType
public void setType(int ttype) Description copied from interface:AST
Set the token type for this node -
toString
-
toStringList
- Specified by:
toStringList
in interfaceAST
-
toStringTree
- Specified by:
toStringTree
in interfaceAST
-