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.
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.
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