|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--de.tuberlin.cs.cis.ocl.eval.instance.PredefinedInstance
|
+--de.tuberlin.cs.cis.ocl.eval.instance.OclExpressionInstance
Represents an instance of the OCL type OclExpression.
| Constructor Summary | |
OclExpressionInstance(Type domain,
java.util.Map evaluation,
OclType scope)
Constructs an instance of the OCL type OclExpression. |
|
| Method Summary | |
static Instance |
evaluate(Instance parameter,
OclExpression expr)
Evaluates the specified expression parameterized with the specified instance. |
static Instance |
evaluate(java.util.Vector parameters,
OclExpression expr)
Evaluates the specified expression with the specified values as parameters. |
static java.util.Set |
evaluationDomain(OclExpression expr)
Returns the domain the specified expression can be evaluated for. |
static java.util.Collection |
evaluationScope(OclExpression expr)
Returns the scope of all possible evaluations of expression, regarding the domain of the expr. |
OclType |
evaluationType()
Results in the type of the object that results from evaluating this expression. |
Type |
getDomain()
Returns the domain this expression is parameterized with. |
Type |
getScope()
Returns the codomain this expression evaluates to. |
| Methods inherited from class de.tuberlin.cs.cis.ocl.eval.instance.PredefinedInstance |
getRepresentation, getRuntimeType, getValue, hashCode, invoke, navigate, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public OclExpressionInstance(Type domain,
java.util.Map evaluation,
OclType scope)
domain - the domain of this expressionevaluation - the mapping from collection elements to results
this expression can be evaluated toscope - the scope of this expression| Method Detail |
public static Instance evaluate(java.util.Vector parameters,
OclExpression expr)
parameters - Parameters used to evaluate expr. The parameters must be
included in the domain of the evaluation of expr.expr - the expression instance to evaluate. The instance will be included
in the scope of the evaluation of expr.
evaluationDomain(OclExpression),
evaluationDomain(OclExpression)
public static Instance evaluate(Instance parameter,
OclExpression expr)
parameter - the instance the expression is parameterized withexpr - an OclExpression
public static java.util.Collection evaluationScope(OclExpression expr)
expr - the expression beeing evaluated.
public static java.util.Set evaluationDomain(OclExpression expr)
Instance.
expr - the expression the evaluation process will be regarded
for.
public OclType evaluationType()
OclExpression
evaluationType in interface OclExpressionpublic Type getDomain()
public Type getScope()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||