antlr

Class ASTNULLType

Implemented Interfaces:
AST

public class ASTNULLType
extends Object
implements AST

There is only one instance of this class *

Method Summary

void
addChild(AST c)
Add a (rightmost) child to this node
boolean
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 children
int
getLine()
AST
getNextSibling()
Get the next sibling in line after this one
int
getNumberOfChildren()
Get number of children of this node; if leaf, returns 0
String
getText()
Get the token text for this node
int
getType()
Get the token type for this node
void
initialize(Token t)
void
initialize(AST t)
void
initialize(int t, String txt)
void
setFirstChild(AST c)
Set the first child of a node.
void
setNextSibling(AST n)
Set the next sibling after this one.
void
setText(String text)
Set the token text for this node
void
setType(int ttype)
Set the token type for this node
String
toString()
String
toStringList()
String
toStringTree()

Method Details

addChild

public void addChild(AST c)
Add a (rightmost) child to this node
Specified by:
addChild in interface AST


equals

public boolean equals(AST t)
Specified by:
equals in interface AST


equalsList

public boolean equalsList(AST t)
Specified by:
equalsList in interface AST


equalsListPartial

public boolean equalsListPartial(AST t)
Specified by:
equalsListPartial in interface AST


equalsTree

public boolean equalsTree(AST t)
Specified by:
equalsTree in interface AST


equalsTreePartial

public boolean equalsTreePartial(AST t)
Specified by:
equalsTreePartial in interface AST


findAll

public ASTEnumeration findAll(AST tree)
Specified by:
findAll in interface AST


findAllPartial

public ASTEnumeration findAllPartial(AST subtree)
Specified by:
findAllPartial in interface AST


getColumn

public int getColumn()
Specified by:
getColumn in interface AST

Since:
2.7.3 Need for error handling


getFirstChild

public AST getFirstChild()
Get the first child of this node; null if no children
Specified by:
getFirstChild in interface AST


getLine

public int getLine()
Specified by:
getLine in interface AST

Since:
2.7.3 Need for error handling


getNextSibling

public AST getNextSibling()
Get the next sibling in line after this one
Specified by:
getNextSibling in interface AST


getNumberOfChildren

public int getNumberOfChildren()
Get number of children of this node; if leaf, returns 0
Specified by:
getNumberOfChildren in interface AST


getText

public String getText()
Get the token text for this node
Specified by:
getText in interface AST


getType

public int getType()
Get the token type for this node
Specified by:
getType in interface AST


initialize

public void initialize(Token t)
Specified by:
initialize in interface AST


initialize

public void initialize(AST t)
Specified by:
initialize in interface AST


initialize

public void initialize(int t,
                       String txt)
Specified by:
initialize in interface AST


setFirstChild

public void setFirstChild(AST c)
Set the first child of a node.
Specified by:
setFirstChild in interface AST


setNextSibling

public void setNextSibling(AST n)
Set the next sibling after this one.
Specified by:
setNextSibling in interface AST


setText

public void setText(String text)
Set the token text for this node
Specified by:
setText in interface AST


setType

public void setType(int ttype)
Set the token type for this node
Specified by:
setType in interface AST


toString

public String toString()
Specified by:
toString in interface AST


toStringList

public String toStringList()
Specified by:
toStringList in interface AST


toStringTree

public String toStringTree()
Specified by:
toStringTree in interface AST