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 voidaddChild(AST c)Add a (rightmost) child to this nodebooleanequals(AST t)booleanequalsList(AST t)booleanequalsListPartial(AST t)booleanequalsTree(AST t)booleanequalsTreePartial(AST t)ASTEnumerationfindAll(AST tree)ASTEnumerationfindAllPartial(AST subtree)intgetColumn()ASTgetFirstChild()Get the first child of this node; null if no childrenintgetLine()ASTgetNextSibling()Get the next sibling in line after this oneintgetNumberOfChildren()Get number of children of this node; if leaf, returns 0java.lang.StringgetText()Get the token text for this nodeintgetType()Get the token type for this nodevoidinitialize(int t, java.lang.String txt)voidinitialize(AST t)voidinitialize(Token t)voidsetFirstChild(AST c)Set the first child of a node.voidsetNextSibling(AST n)Set the next sibling after this one.voidsetText(java.lang.String text)Set the token text for this nodevoidsetType(int ttype)Set the token type for this nodejava.lang.StringtoString()java.lang.StringtoStringList()java.lang.StringtoStringTree()
-
-
-
Method Detail
-
addChild
public void addChild(AST c)
Description copied from interface:ASTAdd a (rightmost) child to this node
-
equalsList
public boolean equalsList(AST t)
- Specified by:
equalsListin interfaceAST
-
equalsListPartial
public boolean equalsListPartial(AST t)
- Specified by:
equalsListPartialin interfaceAST
-
equalsTree
public boolean equalsTree(AST t)
- Specified by:
equalsTreein interfaceAST
-
equalsTreePartial
public boolean equalsTreePartial(AST t)
- Specified by:
equalsTreePartialin interfaceAST
-
findAll
public ASTEnumeration findAll(AST tree)
-
findAllPartial
public ASTEnumeration findAllPartial(AST subtree)
- Specified by:
findAllPartialin interfaceAST
-
getFirstChild
public AST getFirstChild()
Description copied from interface:ASTGet the first child of this node; null if no children- Specified by:
getFirstChildin interfaceAST
-
getNextSibling
public AST getNextSibling()
Description copied from interface:ASTGet the next sibling in line after this one- Specified by:
getNextSiblingin interfaceAST
-
getText
public java.lang.String 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
-
getNumberOfChildren
public int getNumberOfChildren()
Description copied from interface:ASTGet number of children of this node; if leaf, returns 0- Specified by:
getNumberOfChildrenin interfaceAST
-
initialize
public void initialize(int t, java.lang.String txt)- Specified by:
initializein interfaceAST
-
initialize
public void initialize(AST t)
- Specified by:
initializein interfaceAST
-
initialize
public void initialize(Token t)
- Specified by:
initializein interfaceAST
-
setFirstChild
public void setFirstChild(AST c)
Description copied from interface:ASTSet the first child of a node.- Specified by:
setFirstChildin interfaceAST
-
setNextSibling
public void setNextSibling(AST n)
Description copied from interface:ASTSet the next sibling after this one.- Specified by:
setNextSiblingin interfaceAST
-
setText
public void setText(java.lang.String text)
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
public java.lang.String toString()
-
toStringList
public java.lang.String toStringList()
- Specified by:
toStringListin interfaceAST
-
toStringTree
public java.lang.String toStringTree()
- Specified by:
toStringTreein interfaceAST
-
-