|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ksu.cis.projects.bogor.ast.Node edu.ksu.cis.projects.bogor.ast.TypedId
public final class TypedId
Typed id AST.
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
TypedId(String id,
ASTType type)
Default constructor. |
Method Summary | |
---|---|
TypedId |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes reference to parent and id, and disposes type. |
String |
getId()
Gets the id. |
ITypedIdParent |
getParent()
Gets the parent of this object. |
ASTType |
getType()
Gets the type. |
void |
setId(String newId)
Sets the id. |
void |
setParent(ITypedIdParent newParent)
Sets the parent of this object. |
void |
setType(ASTType newType)
Sets the type. |
String |
toString()
Returns the string representation of this object. |
void |
visit(ASTVisitor visitor)
|
Methods inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
getLocationInfo, getProperty, putProperty, setLocationInfo |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TypedId(String id, ASTType type)
id
- The id. Must be non-null.type
- The type. Must be non-null.Method Detail |
---|
public void setId(String newId)
newId
- The new id. Must be non-null.public String getId()
public void setParent(ITypedIdParent newParent)
newParent
- The new parent. Must be non-null.public ITypedIdParent getParent()
public void setType(ASTType newType)
newType
- The new type. Must be non-null.public ASTType getType()
public TypedId clone()
clone
in class Node
public void dispose()
dispose
in interface Disposable
dispose
in class Node
public String toString()
toString
in class Node
public void visit(ASTVisitor visitor)
visit
in class Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |