coins.ast
Class Enum

java.lang.Object
  extended bycoins.ast.ASTree
      extended bycoins.ast.Enum
All Implemented Interfaces:
java.io.Serializable, Stmnt

public class Enum
extends ASTree
implements Stmnt

Enum declaration.

See Also:
Serialized Form

Nested Class Summary
static class Enum.Item
           
 
Constructor Summary
Enum(java.lang.String name, java.lang.String fname, int line)
           
 
Method Summary
 void accept(Visitor v)
          Is a method for the visitor pattern.
 void add(java.lang.String name, ConstantExpr value)
           
 java.lang.String fileName()
          Returns the file name including the statement.
 Enum.Item getItems()
          Returns a list of enum constants.
 ASTree getLeft()
          Returns null.
 ASTree getRight()
          Returns null.
 int lineNumber()
          Returns the line number of the statement.
 java.lang.String name()
          Returns the tag name of the enum type.
 void setLeft(ASTree _left)
           
 void setRight(ASTree _right)
           
 java.lang.String toString()
           
 
Methods inherited from class coins.ast.ASTree
getTag, putSeparator, rightToString, toString1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Enum

public Enum(java.lang.String name,
            java.lang.String fname,
            int line)
Method Detail

name

public java.lang.String name()
Returns the tag name of the enum type. If the tag name is not explicitly specified, an arbitrary chosen unique name is given by the parser.


getItems

public Enum.Item getItems()
Returns a list of enum constants.


add

public void add(java.lang.String name,
                ConstantExpr value)

accept

public void accept(Visitor v)
Description copied from class: ASTree
Is a method for the visitor pattern. It calls atXXX() on the given visitor, where XXX is the class name of the node object.

Specified by:
accept in class ASTree

getLeft

public ASTree getLeft()
Returns null.

Specified by:
getLeft in class ASTree

getRight

public ASTree getRight()
Returns null.

Specified by:
getRight in class ASTree

setLeft

public void setLeft(ASTree _left)
Specified by:
setLeft in class ASTree

setRight

public void setRight(ASTree _right)
Specified by:
setRight in class ASTree

fileName

public java.lang.String fileName()
Description copied from interface: Stmnt
Returns the file name including the statement.

Specified by:
fileName in interface Stmnt

lineNumber

public int lineNumber()
Description copied from interface: Stmnt
Returns the line number of the statement.

Specified by:
lineNumber in interface Stmnt

toString

public java.lang.String toString()
Overrides:
toString in class ASTree