Package cruise.umple.compiler
Class ConstraintVariable
java.lang.Object
cruise.umple.compiler.ConstraintVariable
- All Implemented Interfaces:
java.lang.Iterable<ConstraintVariable>
- Direct Known Subclasses:
ConstraintLiteral
,ConstraintNamed
,ConstraintOperator
,ConstraintTree
public abstract class ConstraintVariable extends java.lang.Object implements java.lang.Iterable<ConstraintVariable>
ConstraintVariables encapsulate that data of one element in a ConstraintTree, making up the nodes of that tree.
For example: a<3
has the structure: ConstraintTree
ConstraintOperator(<)
/ \
ConstraintTree ConstraintNumberLiteral(3)
ConstraintAttribute(a)
where all the "Constraint" classes inherit from ConstraintVariable
-
Constructor Summary
Constructors Constructor Description ConstraintVariable()
-
Method Summary
Modifier and Type Method Description void
delete()
abstract java.lang.String
getType()
java.lang.String
getValue(CodeTranslator gen)
java.util.Iterator<ConstraintVariable>
iterator()
UmpleClassifier
retrieveClassifier()
-
Constructor Details
-
ConstraintVariable
public ConstraintVariable()
-
-
Method Details
-
delete
public void delete() -
getValue
-
retrieveClassifier
-
iterator
- Specified by:
iterator
in interfacejava.lang.Iterable<ConstraintVariable>
-
getType
public abstract java.lang.String getType()
-