edu.mit.sketch.ddlcompiler
Class ComponentNode

java.lang.Object
  |
  +--edu.mit.sketch.ddlcompiler.ComponentNode
All Implemented Interfaces:
ASTNode

public class ComponentNode
extends Object
implements ASTNode

Parsing can be thought of as generating and AST. This class represents a component node in such an AST.


Constructor Summary
ComponentNode(String component_type, String component_id)
           
 
Method Summary
 String toDecleration()
          The decleration string.
static String toDecleration(String input_id, ArrayList component_nodes)
          The decleration string.
static String toDecleration(String input_id, ComponentNode[] component_nodes)
          The decleration string.
 String toInstanceDecleration()
          The decleration string.
 String toString()
          The string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentNode

public ComponentNode(String component_type,
                     String component_id)
Method Detail

toDecleration

public String toDecleration()
The decleration string.

toInstanceDecleration

public String toInstanceDecleration()
The decleration string.

toDecleration

public static String toDecleration(String input_id,
                                   ArrayList component_nodes)
The decleration string.

toDecleration

public static String toDecleration(String input_id,
                                   ComponentNode[] component_nodes)
The decleration string.

toString

public String toString()
The string representation.
Specified by:
toString in interface ASTNode
Overrides:
toString in class Object