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