|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.mit.sketch.ddlcompiler.ConstraintNode
edu.mit.sketch.ddlcompiler.AttachedConstraintNode
public class AttachedConstraintNode
Parsing can be thought of as generating and AST. This class represents a "attached constraint node" in such an AST. Look at the language specification for the semantics of the "attached" constraint.
| Field Summary | |
|---|---|
java.lang.String |
arg1
|
java.lang.String |
arg2
|
| Constructor Summary | |
|---|---|
AttachedConstraintNode(java.lang.String arg1,
java.lang.String arg2)
|
|
| Method Summary | |
|---|---|
java.lang.String[] |
getConstraintIdentifiers()
Returns a string array consisting of the constraint indentifiers |
java.lang.String |
toInstanceMethodCall()
The method call string which uses arg*_instance instead of arg* |
java.lang.String |
toMethodCall()
The method call string. |
java.lang.String |
toString()
The string representation. |
boolean |
usesMember(java.lang.String input_id)
Return true if a member variable of this constraint has the same name as the input string. |
| Methods inherited from class edu.mit.sketch.ddlcompiler.ConstraintNode |
|---|
getConstraintType |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String arg1
public java.lang.String arg2
| Constructor Detail |
|---|
public AttachedConstraintNode(java.lang.String arg1,
java.lang.String arg2)
| Method Detail |
|---|
public java.lang.String toMethodCall()
toMethodCall in class ConstraintNodepublic java.lang.String toInstanceMethodCall()
toInstanceMethodCall in class ConstraintNodepublic java.lang.String toString()
toString in interface ASTNodetoString in class ConstraintNodepublic boolean usesMember(java.lang.String input_id)
usesMember in class ConstraintNodepublic java.lang.String[] getConstraintIdentifiers()
getConstraintIdentifiers in class ConstraintNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||