edu.mit.sketch.ddlcompiler
Class BelowConstraintNode
java.lang.Object
|
+--edu.mit.sketch.ddlcompiler.ConstraintNode
|
+--edu.mit.sketch.ddlcompiler.BelowConstraintNode
- All Implemented Interfaces:
- ASTNode
- public class BelowConstraintNode
- extends ConstraintNode
Parsing can be thought of as generating and AST. This class
represents a "below constraint node" in such an AST.
Look at the language specification for the semantics of the
"below" constraint.
arg1
public String arg1
arg2
public String arg2
BelowConstraintNode
public BelowConstraintNode(String arg1,
String arg2)
toMethodCall
public String toMethodCall()
- The method call string.
- Overrides:
toMethodCall in class ConstraintNode
toInstanceMethodCall
public String toInstanceMethodCall()
- The method call string which uses arg*_instance
instead of arg*
- Overrides:
toInstanceMethodCall in class ConstraintNode
toString
public String toString()
- The string representation.
- Overrides:
toString in class ConstraintNode
usesMember
public boolean usesMember(String input_id)
- Return true if a member variable of this constraint has the
same name as the input string.
- Overrides:
usesMember in class ConstraintNode
getConstraintIdentifiers
public String[] getConstraintIdentifiers()
- Returns a string array consisting of the constraint indentifiers
- Overrides:
getConstraintIdentifiers in class ConstraintNode