coins.ast
Class Union
java.lang.Object
coins.ast.ASTree
coins.ast.Aggregate
coins.ast.Union
- All Implemented Interfaces:
- java.io.Serializable, Stmnt
- public class Union
- extends Aggregate
Declaration of a union type.
See ast.Aggregate
- See Also:
- Serialized Form
|
Method Summary |
void |
accept(Visitor v)
Is a method for the visitor pattern. |
protected java.lang.String |
getTag()
Returns the type of this node. |
| Methods inherited from class coins.ast.Aggregate |
fileName, getLeft, getMember, getMembers, getRight, getSize, lineNumber, name, setLeft, setRight, setSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Union
public Union(java.lang.String name,
DeclaratorList mems,
java.lang.String fname,
int line,
ToHirC tohirc)
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
getTag
protected java.lang.String getTag()
- Description copied from class:
ASTree
- Returns the type of this node. This method is used by
toString().
- Overrides:
getTag in class ASTree