T
- the result typepublic abstract class AbstractConstraintEvaluator<T> extends Object
Constructor and Description |
---|
AbstractConstraintEvaluator(ExpressionInOCL query)
Construct an helper for the evaluation of an expression
|
Modifier and Type | Method and Description |
---|---|
T |
evaluate(EvaluationVisitor evaluationVisitor)
Use the evaluationVisitor to execute my expression on the objects within the evaluationVisitor's evaluationEnvironment,
invoking one of handleSuccessResult, handleFailureResult, handleInvalidResult or handleExceptionResult to provide the return value.
|
static OCLExpression |
getConstraintExpression(ExpressionInOCL query)
Return the expression to be evaluated for a constraintSpecification, which is the constraintSpecification.bodyExpression
unless that is a status TuplePart PropertyCallExp in which case it is the source of the TuplePart PropertyCallExp enabling the
evaluation to compute the enriched Tuple of invariant results.
|
public AbstractConstraintEvaluator(ExpressionInOCL query)
public static OCLExpression getConstraintExpression(ExpressionInOCL query)
public T evaluate(EvaluationVisitor evaluationVisitor)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.