|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EvaluationVisitor
A specialized visitor that is used for evaluation an OCL expression by walking its AST.
See the Environment
class for a description of the
generic type parameters of this class.
Method Summary | |
---|---|
EvaluationVisitor |
createNestedVisitor()
|
Environment |
getEnvironment()
Obtains the environment that provides the metamodel semantics for the expression to be evaluated. |
EvaluationEnvironment |
getEvaluationEnvironment()
Obtains the evaluation environment that keeps track of variable values and knows how to call operations, navigate properties, etc. |
ModelManager |
getModelManager()
Obtains the mapping of model classes to their extents. |
TypeManager |
getTypeManager()
|
ValueFactory |
getValueFactory()
|
void |
setUndecoratedVisitor(EvaluationVisitor evaluationVisitor)
Configures the specified decorated visitor to correctly handle the invocation of recursive visitXxx(...) calls. |
NullValue |
throwInvalidEvaluation(InvalidValueException e)
|
NullValue |
throwInvalidEvaluation(java.lang.String message)
|
NullValue |
throwInvalidEvaluation(java.lang.Throwable e,
OclExpression expression,
java.lang.Object value,
java.lang.String message,
java.lang.Object... bindings)
|
Method Detail |
---|
EvaluationVisitor createNestedVisitor()
Environment getEnvironment()
EvaluationEnvironment getEvaluationEnvironment()
ModelManager getModelManager()
TypeManager getTypeManager()
ValueFactory getValueFactory()
void setUndecoratedVisitor(EvaluationVisitor evaluationVisitor)
visitXxx(...)
calls. In particular,
the tail of a chain of decorators is informed (if it is an
AbstractEvaluationVisitor
of the head decorator of the chain,
so that recursive visitation follows the entire decorator chain at
every step.
decorator
- the decorator that is not decorated/NullValue throwInvalidEvaluation(InvalidValueException e) throws InvalidEvaluationException
InvalidEvaluationException
NullValue throwInvalidEvaluation(java.lang.String message) throws InvalidEvaluationException
InvalidEvaluationException
NullValue throwInvalidEvaluation(java.lang.Throwable e, OclExpression expression, java.lang.Object value, java.lang.String message, java.lang.Object... bindings) throws InvalidEvaluationException
InvalidEvaluationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |