ca.ubc.cs.elide.nodes
Class ParseNode

java.lang.Object
  |
  +--ca.ubc.cs.elide.nodes.ParseNode
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
ChildBearingNode, ImportNode, TextNode, TransformNode, TypeNode

public abstract class ParseNode
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
ParseNode()
           
ParseNode(java.lang.String name)
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String findType(java.lang.String varName)
           
 java.lang.Object get(java.lang.Object key)
           
 java.lang.String getComment()
          Returns the comment associated with this item, as a string.
 ClassNode getDeclaringClass()
          Returns the ClassNode object representing the class within which this member was declared.
 java.lang.String getName()
           
 PackageNode getPackage()
          Returns the PackageNode object representing the package within which this item was declared.
 ChildBearingNode getParent()
           
 StartNode getRoot()
          Returns the StartNode object at the root of this parse tree.
 void put(java.lang.Object key, java.lang.Object prop)
           
 void registerType(java.lang.String varName, java.lang.String type)
           
 void setComment(java.lang.String comment)
          Sets the comment associated with this item
 void setName(java.lang.String name)
           
 java.lang.String toString()
          Returns a representation of this object as Java source code.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParseNode

public ParseNode()

ParseNode

public ParseNode(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getComment

public java.lang.String getComment()
Returns the comment associated with this item, as a string.

setComment

public void setComment(java.lang.String comment)
Sets the comment associated with this item

getParent

public ChildBearingNode getParent()

registerType

public void registerType(java.lang.String varName,
                         java.lang.String type)

findType

public java.lang.String findType(java.lang.String varName)

getRoot

public StartNode getRoot()
Returns the StartNode object at the root of this parse tree.

getDeclaringClass

public ClassNode getDeclaringClass()
Returns the ClassNode object representing the class within which this member was declared.

getPackage

public PackageNode getPackage()
Returns the PackageNode object representing the package within which this item was declared.

get

public java.lang.Object get(java.lang.Object key)

put

public void put(java.lang.Object key,
                java.lang.Object prop)

toString

public java.lang.String toString()
Returns a representation of this object as Java source code.
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()