Package cruise.umple.compiler
Class ConstraintMethodParameter
java.lang.Object
cruise.umple.compiler.ConstraintVariable
cruise.umple.compiler.ConstraintNamed
cruise.umple.compiler.ConstraintMethodParameter
- All Implemented Interfaces:
java.lang.Iterable<ConstraintVariable>
public class ConstraintMethodParameter extends ConstraintNamed
ConstraintMethodParameters are there for Preconditions and Postconditions, they encapsulate the MethodParameter that the constraint is refering to
This will be a leaf on the constraint tree.
-
Constructor Summary
Constructors Constructor Description ConstraintMethodParameter(MethodParameter aParameter)
-
Method Summary
Modifier and Type Method Description void
delete()
boolean
equals(java.lang.Object obj)
java.lang.String
getName()
The reason d'etre of this super class, it ensures that subclasses have getName methodsMethodParameter
getParameter()
java.lang.String
getType()
int
hashCode()
boolean
setParameter(MethodParameter aParameter)
java.lang.String
toString()
Methods inherited from class cruise.umple.compiler.ConstraintVariable
getValue, iterator, retrieveClassifier
-
Constructor Details
-
Method Details
-
setParameter
-
getParameter
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
delete
public void delete()- Overrides:
delete
in classConstraintNamed
-
getName
public java.lang.String getName()Description copied from class:ConstraintNamed
The reason d'etre of this super class, it ensures that subclasses have getName methods- Specified by:
getName
in classConstraintNamed
-
getType
public java.lang.String getType()- Specified by:
getType
in classConstraintVariable
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-