|
||||||||||
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 |
createNestedEvaluator()
|
Value |
evaluate(DomainExpression body)
|
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. |
EvaluationVisitor |
getEvaluator()
|
MetaModelManager |
getMetaModelManager()
|
DomainModelManager |
getModelManager()
Obtains the mapping of model classes to their extents. |
DomainStandardLibrary |
getStandardLibrary()
|
ValueFactory |
getValueFactory()
Return the factory for values and indirectly for types. |
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,
DomainExpression expression,
java.lang.Object value,
java.lang.String message,
java.lang.Object... bindings)
|
Methods inherited from interface org.eclipse.ocl.examples.domain.evaluation.DomainEvaluator |
---|
isCanceled, setCanceled |
Method Detail |
---|
EvaluationVisitor createNestedEvaluator()
createNestedEvaluator
in interface DomainEvaluator
Value evaluate(DomainExpression body)
evaluate
in interface DomainEvaluator
Environment getEnvironment()
EvaluationEnvironment getEvaluationEnvironment()
getEvaluationEnvironment
in interface DomainEvaluator
EvaluationVisitor getEvaluator()
DomainModelManager getModelManager()
getModelManager
in interface DomainEvaluator
MetaModelManager getMetaModelManager()
DomainStandardLibrary getStandardLibrary()
ValueFactory getValueFactory()
DomainEvaluator
getValueFactory
in interface DomainEvaluator
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
throwInvalidEvaluation
in interface DomainEvaluator
InvalidEvaluationException
NullValue throwInvalidEvaluation(java.lang.String message) throws InvalidEvaluationException
InvalidEvaluationException
NullValue throwInvalidEvaluation(java.lang.Throwable e, DomainExpression expression, java.lang.Object value, java.lang.String message, java.lang.Object... bindings) throws InvalidEvaluationException
throwInvalidEvaluation
in interface DomainEvaluator
InvalidEvaluationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |