|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ocl.EvaluationVisitorDecorator<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>
public class EvaluationVisitorDecorator<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>
A visitor that decorates another 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.
| Constructor Summary | |
|---|---|
protected |
EvaluationVisitorDecorator(EvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> decorated)
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected EvaluationVisitorDecorator(EvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E> decorated)
| Method Detail |
|---|
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()
getEnvironment in interface EvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>public EvaluationEnvironment<C,O,P,CLS,E> getEvaluationEnvironment()
getEvaluationEnvironment in interface EvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>public Map<? extends CLS,? extends Set<? extends E>> getExtentMap()
getExtentMap in interface EvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>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)
visitExpression in interface EvaluationVisitor<PK,C,O,P,EL,PM,S,COA,SSA,CT,CLS,E>expression - the expression to evaluate
public Object visitAssociationClassCallExp(AssociationClassCallExp<C,P> callExp)
visitAssociationClassCallExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitBooleanLiteralExp(BooleanLiteralExp<C> literalExp)
visitBooleanLiteralExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitCollectionItem(CollectionItem<C> item)
visitCollectionItem in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitCollectionLiteralExp(CollectionLiteralExp<C> literalExp)
visitCollectionLiteralExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitCollectionRange(CollectionRange<C> range)
visitCollectionRange in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitEnumLiteralExp(EnumLiteralExp<C,EL> literalExp)
visitEnumLiteralExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitExpressionInOCL(ExpressionInOCL<C,PM> expression)
visitExpressionInOCL in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitIfExp(IfExp<C> ifExp)
visitIfExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitIntegerLiteralExp(IntegerLiteralExp<C> literalExp)
visitIntegerLiteralExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitInvalidLiteralExp(InvalidLiteralExp<C> literalExp)
visitInvalidLiteralExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitIterateExp(IterateExp<C,PM> callExp)
visitIterateExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitIteratorExp(IteratorExp<C,PM> callExp)
visitIteratorExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitLetExp(LetExp<C,PM> letExp)
visitLetExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitMessageExp(MessageExp<C,COA,SSA> messageExp)
visitMessageExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitNullLiteralExp(NullLiteralExp<C> literalExp)
visitNullLiteralExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitOperationCallExp(OperationCallExp<C,O> callExp)
visitOperationCallExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitPropertyCallExp(PropertyCallExp<C,P> callExp)
visitPropertyCallExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitRealLiteralExp(RealLiteralExp<C> literalExp)
visitRealLiteralExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitStateExp(StateExp<C,S> stateExp)
visitStateExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitStringLiteralExp(StringLiteralExp<C> literalExp)
visitStringLiteralExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitTupleLiteralExp(TupleLiteralExp<C,P> literalExp)
visitTupleLiteralExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitTupleLiteralPart(TupleLiteralPart<C,P> part)
visitTupleLiteralPart in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitTypeExp(TypeExp<C> typeExp)
visitTypeExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitUnlimitedNaturalLiteralExp(UnlimitedNaturalLiteralExp<C> literalExp)
visitUnlimitedNaturalLiteralExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitUnspecifiedValueExp(UnspecifiedValueExp<C> unspecExp)
visitUnspecifiedValueExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitVariable(Variable<C,PM> variable)
visitVariable in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>public Object visitVariableExp(VariableExp<C,PM> variableExp)
visitVariableExp in interface Visitor<Object,C,O,P,EL,PM,S,COA,SSA,CT>
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||