edu.mit.sketch.ddlcompiler
Class DerivedPropertyNode

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

public class DerivedPropertyNode
extends Object
implements ASTNode

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


Constructor Summary
DerivedPropertyNode(String new_id, String derived_property_id, ArrayList component_nodes)
          s This constructor takes a list of ComponentNodes and extracts the type information regarding the old (derived_property) identifier.
DerivedPropertyNode(String type, String new_id, String derived_property_id)
          Constructor
 
Method Summary
 String toDecleration()
          The decleration string.
 String toDeclerationAndDerivedPropertyStatement()
          The decleration and derived_property string.
 String toDerivedPropertyStatement()
          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

DerivedPropertyNode

public DerivedPropertyNode(String type,
                           String new_id,
                           String derived_property_id)
Constructor

DerivedPropertyNode

public DerivedPropertyNode(String new_id,
                           String derived_property_id,
                           ArrayList component_nodes)
s This constructor takes a list of ComponentNodes and extracts the type information regarding the old (derived_property) identifier. The ComponentNodes should have the correct type information.
Method Detail

toDerivedPropertyStatement

public String toDerivedPropertyStatement()
The decleration string.

toDecleration

public String toDecleration()
The decleration string.

toDeclerationAndDerivedPropertyStatement

public String toDeclerationAndDerivedPropertyStatement()
The decleration and derived_property string.

toString

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