public abstract class AbstractEvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> extends AbstractVisitor<Object,C,O,P,EL,PM,S,COA,SSA,CT> implements EvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>
Note that this class is not intended to be used or extended by
clients. Use the AbstractEvaluationVisitor
interface, instead.
See the Environment
class for a description of the
generic type parameters of this class.
Modifier and Type | Method and Description |
---|---|
Environment<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> |
getEnvironment()
Obtains the environment that provides the metamodel semantics for the
expression to be evaluated.
|
EvaluationEnvironment<C,O,P,CLS,E> |
getEvaluationEnvironment()
Obtains the evaluation environment that keeps track of variable values
and knows how to call operations, navigate properties, etc.
|
Map<? extends CLS,? extends Set<? extends E>> |
getExtentMap()
Obtains the mapping of model classes to their extends.
|
String |
toString() |
Object |
visitConstraint(CT constraint)
This default implementation asserts that the constraint is
boolean-valued if it is an invariant, pre-condition, or post-condition
constraint and returns the value of its body expression by delegation to
visitExpression(OCLExpression) . |
Object |
visitExpression(OCLExpression<C> expression)
This default implementation simply asks the expression to
accept
me.
|
visitAssociationClassCallExp, visitBooleanLiteralExp, visitCollectionItem, visitCollectionLiteralExp, visitCollectionRange, visitEnumLiteralExp, visitExpressionInOCL, visitIfExp, visitIntegerLiteralExp, visitInvalidLiteralExp, visitIterateExp, visitIteratorExp, visitLetExp, visitMessageExp, visitNullLiteralExp, visitOperationCallExp, visitPropertyCallExp, visitRealLiteralExp, visitStateExp, visitStringLiteralExp, visitTupleLiteralExp, visitTupleLiteralPart, visitTypeExp, visitUnlimitedNaturalLiteralExp, visitUnspecifiedValueExp, visitVariable, visitVariableExp
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
visitAssociationClassCallExp, visitBooleanLiteralExp, visitCollectionItem, visitCollectionLiteralExp, visitCollectionRange, visitEnumLiteralExp, visitExpressionInOCL, visitIfExp, visitIntegerLiteralExp, visitInvalidLiteralExp, visitIterateExp, visitIteratorExp, visitLetExp, visitMessageExp, visitNullLiteralExp, visitOperationCallExp, visitPropertyCallExp, visitRealLiteralExp, visitStateExp, visitStringLiteralExp, visitTupleLiteralExp, visitTupleLiteralPart, visitTypeExp, visitUnlimitedNaturalLiteralExp, visitUnspecifiedValueExp, visitVariable, visitVariableExp
public EvaluationEnvironment<C,O,P,CLS,E> getEvaluationEnvironment()
EvaluationVisitor
public Environment<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> getEnvironment()
EvaluationVisitor
public Map<? extends CLS,? extends Set<? extends E>> getExtentMap()
EvaluationVisitor
public Object visitExpression(OCLExpression<C> expression)
public Object visitConstraint(CT constraint)
visitExpression(OCLExpression)
.visitConstraint
in interface EvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>
visitConstraint
in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>
visitConstraint
in class AbstractVisitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>
AbstractVisitor.getSpecification(Object)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.