ca.ubc.cs.elide.nodes
Class TransformNode

java.lang.Object
  |
  +--ca.ubc.cs.elide.nodes.ParseNode
        |
        +--ca.ubc.cs.elide.nodes.TransformNode
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class TransformNode
extends ParseNode

A TransformNode represents a single invocation of a transformation within source code.

Note that TransformNodes should be added with ChildBearingNode.addTransform(ca.ubc.cs.elide.nodes.TransformNode), not with ChildBearingNode.add(ca.ubc.cs.elide.nodes.ParseNode).

See Also:
Serialized Form

Field Summary
 java.util.List args
           
 java.lang.String transformName
           
 
Constructor Summary
TransformNode(java.lang.String transformName)
           
TransformNode(java.lang.String transformName, java.util.List args)
           
 
Method Summary
 java.lang.String getName()
           
 void invoke(java.lang.String methodName)
          invokes the transform; for internal use
 java.lang.String toString()
          Returns a representation of this object as Java source code.
 
Methods inherited from class ca.ubc.cs.elide.nodes.ParseNode
clone, findType, get, getComment, getDeclaringClass, getPackage, getParent, getRoot, put, registerType, setComment, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

transformName

public java.lang.String transformName

args

public java.util.List args
Constructor Detail

TransformNode

public TransformNode(java.lang.String transformName)

TransformNode

public TransformNode(java.lang.String transformName,
                     java.util.List args)
Method Detail

getName

public java.lang.String getName()
Overrides:
getName in class ParseNode

toString

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

invoke

public void invoke(java.lang.String methodName)
invokes the transform; for internal use