|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.ast.ASTree
coins.ast.Enum
Enum declaration.
| 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 |
public Enum(java.lang.String name,
java.lang.String fname,
int line)
| Method Detail |
public java.lang.String name()
public Enum.Item getItems()
public void add(java.lang.String name,
ConstantExpr value)
public void accept(Visitor v)
ASTreeatXXX() on the given visitor, where
XXX is the class name of the node object.
accept in class ASTreepublic ASTree getLeft()
getLeft in class ASTreepublic ASTree getRight()
getRight in class ASTreepublic void setLeft(ASTree _left)
setLeft in class ASTreepublic void setRight(ASTree _right)
setRight in class ASTreepublic java.lang.String fileName()
Stmnt
fileName in interface Stmntpublic int lineNumber()
Stmnt
lineNumber in interface Stmntpublic java.lang.String toString()
toString in class ASTree
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||