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.
ComponentNode
public ComponentNode(String component_type,
String component_id)
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