ca.ubc.cs.elide.nodes
Class StartNode

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

public class StartNode
extends ChildBearingNode

A StartNode represents the root of a parse tree - this tree is made up of representations of all of the packages, classes, methods, and so on, being processed by ELIDE. StartNodes are used internally within ELIDE,

See Also:
Serialized Form

Field Summary
 ca.ubc.cs.elide.visitors.TransformCollector transformCollector
          maintains all active transforms; for internal use
 
Constructor Summary
StartNode()
           
 
Method Summary
 PackageNode getDefaultPackage()
          Returns a PackageNode representing the default (unnamed) package.
 PackageNode getPackage(java.lang.String name)
           
 PackageNode[] getPackages()
          Returns an array of PackageNode objects representing the packages contained in this tree
 StartNode transform()
          Returns a new tree which is the result of applying all the transformations in this StartNode; for internal use.
 
Methods inherited from class ca.ubc.cs.elide.nodes.ChildBearingNode
add, add, addTransform, clone, getChildren, remove
 
Methods inherited from class ca.ubc.cs.elide.nodes.ParseNode
findType, get, getComment, getDeclaringClass, getName, getPackage, getParent, getRoot, put, registerType, setComment, setName, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

transformCollector

public transient ca.ubc.cs.elide.visitors.TransformCollector transformCollector
maintains all active transforms; for internal use
Constructor Detail

StartNode

public StartNode()
Method Detail

getPackages

public PackageNode[] getPackages()
Returns an array of PackageNode objects representing the packages contained in this tree

getPackage

public PackageNode getPackage(java.lang.String name)

getDefaultPackage

public PackageNode getDefaultPackage()
Returns a PackageNode representing the default (unnamed) package.

transform

public StartNode transform()
Returns a new tree which is the result of applying all the transformations in this StartNode; for internal use.