antlr
Class ASTNULLType

java.lang.Object
  |
  +--antlr.ASTNULLType
All Implemented Interfaces:
AST

public class ASTNULLType
extends Object
implements AST

There is only one instance of this class


Constructor Summary
ASTNULLType()
           
 
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)
           
 AST getFirstChild()
          Get the first child of this node; null if no children
 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(AST t)
           
 void initialize(int t, String txt)
           
 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(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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTNULLType

public ASTNULLType()
Method Detail

addChild

public void addChild(AST c)
Description copied from interface: AST
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

getFirstChild

public AST getFirstChild()
Description copied from interface: AST
Get the first child of this node; null if no children

Specified by:
getFirstChild in interface AST

getNextSibling

public AST getNextSibling()
Description copied from interface: AST
Get the next sibling in line after this one

Specified by:
getNextSibling in interface AST

getText

public String getText()
Description copied from interface: AST
Get the token text for this node

Specified by:
getText in interface AST

getType

public int getType()
Description copied from interface: AST
Get the token type for this node

Specified by:
getType in interface AST

getNumberOfChildren

public int getNumberOfChildren()
Description copied from interface: AST
Get number of children of this node; if leaf, returns 0

Specified by:
getNumberOfChildren in interface AST

initialize

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

initialize

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

initialize

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

setFirstChild

public void setFirstChild(AST c)
Description copied from interface: AST
Set the first child of a node.

Specified by:
setFirstChild in interface AST

setNextSibling

public void setNextSibling(AST n)
Description copied from interface: AST
Set the next sibling after this one.

Specified by:
setNextSibling in interface AST

setText

public void setText(String text)
Description copied from interface: AST
Set the token text for this node

Specified by:
setText in interface AST

setType

public void setType(int ttype)
Description copied from interface: AST
Set the token type for this node

Specified by:
setType in interface AST

toString

public String toString()
Specified by:
toString in interface AST
Overrides:
toString in class Object

toStringList

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

toStringTree

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


Copyright 1999-2003 Oliver Zeigermann. All Rights Reserved.