public class EvaluationVisitorDecorator<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> extends Object implements EvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>
EvaluationVisitor, to intercept
invocations of the visitXxx(...) methods. By default, every
visitation is simply delegated to the decorated visitor. Subclasses may
extend these delegations with any additional behaviour that is required,
even replacing calls to the delegate where necessary.
This class works together with the AbstractEvaluationVisitor to
ensure that recursive visitXxx() calls are correctly intercepted
by me (and not just implemented within the decorated visitor). Moreover,
this works with decorators nested to any depth.
| Modifier | Constructor and Description |
|---|---|
protected |
EvaluationVisitorDecorator(EvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> decorated) |
| Modifier and Type | Method and Description |
|---|---|
protected EvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> |
getDelegate()
Obtains the visitor that I decorate.
|
Environment<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> |
getEnvironment()
Obtains my delegate's environment.
|
EvaluationEnvironment<C,O,P,CLS,E> |
getEvaluationEnvironment()
Obtains my delegate's evaluation environment.
|
Map<? extends CLS,? extends Set<? extends E>> |
getExtentMap()
Obtains my delegate's extent map.
|
Object |
visitAssociationClassCallExp(AssociationClassCallExp<C,P> callExp)
Delegates to my decorated visitor.
|
Object |
visitBooleanLiteralExp(BooleanLiteralExp<C> literalExp)
Delegates to my decorated visitor.
|
Object |
visitCollectionItem(CollectionItem<C> item)
Delegates to my decorated visitor.
|
Object |
visitCollectionLiteralExp(CollectionLiteralExp<C> literalExp)
Delegates to my decorated visitor.
|
Object |
visitCollectionRange(CollectionRange<C> range)
Delegates to my decorated visitor.
|
Object |
visitConstraint(CT constraint)
Delegates to my decorated visitor.
|
Object |
visitEnumLiteralExp(EnumLiteralExp<C,EL> literalExp)
Delegates to my decorated visitor.
|
Object |
visitExpression(OCLExpression<C> expression)
Delegates to my decorated visitor.
|
Object |
visitExpressionInOCL(ExpressionInOCL<C,PM> expression)
Delegates to my decorated visitor.
|
Object |
visitIfExp(IfExp<C> ifExp)
Delegates to my decorated visitor.
|
Object |
visitIntegerLiteralExp(IntegerLiteralExp<C> literalExp)
Delegates to my decorated visitor.
|
Object |
visitInvalidLiteralExp(InvalidLiteralExp<C> literalExp)
Delegates to my decorated visitor.
|
Object |
visitIterateExp(IterateExp<C,PM> callExp)
Delegates to my decorated visitor.
|
Object |
visitIteratorExp(IteratorExp<C,PM> callExp)
Delegates to my decorated visitor.
|
Object |
visitLetExp(LetExp<C,PM> letExp)
Delegates to my decorated visitor.
|
Object |
visitMessageExp(MessageExp<C,COA,SSA> messageExp)
Delegates to my decorated visitor.
|
Object |
visitNullLiteralExp(NullLiteralExp<C> literalExp)
Delegates to my decorated visitor.
|
Object |
visitOperationCallExp(OperationCallExp<C,O> callExp)
Delegates to my decorated visitor.
|
Object |
visitPropertyCallExp(PropertyCallExp<C,P> callExp)
Delegates to my decorated visitor.
|
Object |
visitRealLiteralExp(RealLiteralExp<C> literalExp)
Delegates to my decorated visitor.
|
Object |
visitStateExp(StateExp<C,S> stateExp)
Delegates to my decorated visitor.
|
Object |
visitStringLiteralExp(StringLiteralExp<C> literalExp)
Delegates to my decorated visitor.
|
Object |
visitTupleLiteralExp(TupleLiteralExp<C,P> literalExp)
Delegates to my decorated visitor.
|
Object |
visitTupleLiteralPart(TupleLiteralPart<C,P> part)
Delegates to my decorated visitor.
|
Object |
visitTypeExp(TypeExp<C> typeExp)
Delegates to my decorated visitor.
|
Object |
visitUnlimitedNaturalLiteralExp(UnlimitedNaturalLiteralExp<C> literalExp)
Delegates to my decorated visitor.
|
Object |
visitUnspecifiedValueExp(UnspecifiedValueExp<C> unspecExp)
Delegates to my decorated visitor.
|
Object |
visitVariable(Variable<C,PM> variable)
Delegates to my decorated visitor.
|
Object |
visitVariableExp(VariableExp<C,PM> variableExp)
Delegates to my decorated visitor.
|
protected final EvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> getDelegate()
public Environment<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> getEnvironment()
public EvaluationEnvironment<C,O,P,CLS,E> getEvaluationEnvironment()
public Map<? extends CLS,? extends Set<? extends E>> getExtentMap()
public Object visitConstraint(CT constraint)
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>public Object visitExpression(OCLExpression<C> expression)
public Object visitAssociationClassCallExp(AssociationClassCallExp<C,P> callExp)
public Object visitBooleanLiteralExp(BooleanLiteralExp<C> literalExp)
public Object visitCollectionItem(CollectionItem<C> item)
public Object visitCollectionLiteralExp(CollectionLiteralExp<C> literalExp)
public Object visitCollectionRange(CollectionRange<C> range)
public Object visitEnumLiteralExp(EnumLiteralExp<C,EL> literalExp)
public Object visitExpressionInOCL(ExpressionInOCL<C,PM> expression)
public Object visitIntegerLiteralExp(IntegerLiteralExp<C> literalExp)
public Object visitInvalidLiteralExp(InvalidLiteralExp<C> literalExp)
public Object visitIterateExp(IterateExp<C,PM> callExp)
public Object visitIteratorExp(IteratorExp<C,PM> callExp)
public Object visitMessageExp(MessageExp<C,COA,SSA> messageExp)
public Object visitNullLiteralExp(NullLiteralExp<C> literalExp)
public Object visitOperationCallExp(OperationCallExp<C,O> callExp)
public Object visitPropertyCallExp(PropertyCallExp<C,P> callExp)
public Object visitRealLiteralExp(RealLiteralExp<C> literalExp)
public Object visitStateExp(StateExp<C,S> stateExp)
public Object visitStringLiteralExp(StringLiteralExp<C> literalExp)
public Object visitTupleLiteralExp(TupleLiteralExp<C,P> literalExp)
public Object visitTupleLiteralPart(TupleLiteralPart<C,P> part)
public Object visitUnlimitedNaturalLiteralExp(UnlimitedNaturalLiteralExp<C> literalExp)
public Object visitUnspecifiedValueExp(UnspecifiedValueExp<C> unspecExp)
public Object visitVariable(Variable<C,PM> variable)
Copyright © 2015 Open eHealth Foundation. All rights reserved.