org.eclipse.ocl.examples.pivot.util
Class AbstractDelegatingVisitor<R,C,D extends Visitor<R,C>>

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.util.AbstractVisitor<R,C>
      extended by org.eclipse.ocl.examples.pivot.util.AbstractDelegatingVisitor<R,C,D>
All Implemented Interfaces:
Visitor<R,C>

public abstract class AbstractDelegatingVisitor<R,C,D extends Visitor<R,C>>
extends AbstractVisitor<R,C>
implements Visitor<R,C>

An AbstractDelegatingVisitor delegates all visits.


Field Summary
protected  D delegate
           
 
Fields inherited from class org.eclipse.ocl.examples.pivot.util.AbstractVisitor
context
 
Constructor Summary
protected AbstractDelegatingVisitor(D delegate, C context)
           
 
Method Summary
protected  D getDelegate()
          Obtains the visitor that I decorate.
 R visitAnnotation(Annotation object)
           
 R visitAnyType(AnyType object)
           
 R visitAssociationClass(AssociationClass object)
           
 R visitAssociationClassCallExp(AssociationClassCallExp object)
           
 R visitBagType(BagType object)
           
 R visitBooleanLiteralExp(BooleanLiteralExp object)
           
 R visitCallExp(CallExp object)
           
 R visitCallOperationAction(CallOperationAction object)
           
 R visitClass(Class object)
           
 R visitClassifierType(ClassifierType object)
           
 R visitCollectionItem(CollectionItem object)
           
 R visitCollectionLiteralExp(CollectionLiteralExp object)
           
 R visitCollectionLiteralPart(CollectionLiteralPart object)
           
 R visitCollectionRange(CollectionRange object)
           
 R visitCollectionType(CollectionType object)
           
 R visitComment(Comment object)
           
 R visitConstraint(Constraint object)
           
 R visitDataType(DataType object)
           
 R visitDetail(Detail object)
           
 R visitElement(Element object)
           
 R visitEnumeration(Enumeration object)
           
 R visitEnumerationLiteral(EnumerationLiteral object)
           
 R visitEnumLiteralExp(EnumLiteralExp object)
           
 R visitExpressionInOcl(ExpressionInOcl object)
           
 R visitFeature(Feature object)
           
 R visitFeatureCallExp(FeatureCallExp object)
           
 R visitIfExp(IfExp object)
           
 R visiting(Visitable visitable)
          Return the result of visiting a visitable for which no more specific pivot type method is available.
 R visitIntegerLiteralExp(IntegerLiteralExp object)
           
 R visitInvalidLiteralExp(InvalidLiteralExp object)
           
 R visitInvalidType(InvalidType object)
           
 R visitIterateExp(IterateExp object)
           
 R visitIteration(Iteration object)
           
 R visitIteratorExp(IteratorExp object)
           
 R visitLambdaType(LambdaType object)
           
 R visitLetExp(LetExp object)
           
 R visitLibrary(Library object)
           
 R visitLiteralExp(LiteralExp object)
           
 R visitLoopExp(LoopExp object)
           
 R visitMessageExp(MessageExp object)
           
 R visitMessageType(MessageType object)
           
 R visitMonikeredElement(MonikeredElement object)
           
 R visitMultiplicityElement(MultiplicityElement object)
           
 R visitNamedElement(NamedElement object)
           
 R visitNamespace(Namespace object)
           
 R visitNavigationCallExp(NavigationCallExp object)
           
 R visitNullLiteralExp(NullLiteralExp object)
           
 R visitNumericLiteralExp(NumericLiteralExp object)
           
 R visitOclExpression(OclExpression object)
           
 R visitOpaqueExpression(OpaqueExpression object)
           
 R visitOperation(Operation object)
           
 R visitOperationCallExp(OperationCallExp object)
           
 R visitOperationTemplateParameter(OperationTemplateParameter object)
           
 R visitOrderedSetType(OrderedSetType object)
           
 R visitPackage(Package object)
           
 R visitPackageableElement(PackageableElement object)
           
 R visitParameter(Parameter object)
           
 R visitParameterableElement(ParameterableElement object)
           
 R visitPrecedence(Precedence object)
           
 R visitPrimitiveLiteralExp(PrimitiveLiteralExp object)
           
 R visitPrimitiveType(PrimitiveType object)
           
 R visitProperty(Property object)
           
 R visitPropertyCallExp(PropertyCallExp object)
           
 R visitRealLiteralExp(RealLiteralExp object)
           
 R visitSendSignalAction(SendSignalAction object)
           
 R visitSequenceType(SequenceType object)
           
 R visitSetType(SetType object)
           
 R visitSignal(Signal object)
           
 R visitState(State object)
           
 R visitStateExp(StateExp object)
           
 R visitStringLiteralExp(StringLiteralExp object)
           
 R visitTemplateableElement(TemplateableElement object)
           
 R visitTemplateBinding(TemplateBinding object)
           
 R visitTemplateParameter(TemplateParameter object)
           
 R visitTemplateParameterSubstitution(TemplateParameterSubstitution object)
           
 R visitTemplateParameterType(TemplateParameterType object)
           
 R visitTemplateSignature(TemplateSignature object)
           
 R visitTupleLiteralExp(TupleLiteralExp object)
           
 R visitTupleLiteralPart(TupleLiteralPart object)
           
 R visitTupleType(TupleType object)
           
 R visitType(Type object)
           
 R visitTypedElement(TypedElement object)
           
 R visitTypedMultiplicityElement(TypedMultiplicityElement object)
           
 R visitTypeExp(TypeExp object)
           
 R visitTypeTemplateParameter(TypeTemplateParameter object)
           
 R visitUnlimitedNaturalLiteralExp(UnlimitedNaturalLiteralExp object)
           
 R visitUnspecifiedType(UnspecifiedType object)
           
 R visitUnspecifiedValueExp(UnspecifiedValueExp object)
           
 R visitValueSpecification(ValueSpecification object)
           
 R visitVariable(Variable object)
           
 R visitVariableDeclaration(VariableDeclaration object)
           
 R visitVariableExp(VariableExp object)
           
 R visitVoidType(VoidType object)
           
 
Methods inherited from class org.eclipse.ocl.examples.pivot.util.AbstractVisitor
getAdapter, safeVisit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.util.Visitor
getAdapter
 

Field Detail

delegate

protected final D extends Visitor<R,C> delegate
Constructor Detail

AbstractDelegatingVisitor

protected AbstractDelegatingVisitor(D delegate,
                                    C context)
Method Detail

getDelegate

protected final D getDelegate()
Obtains the visitor that I decorate.

Returns:
my decorated visitor

visiting

public R visiting(Visitable visitable)
Description copied from interface: Visitor
Return the result of visiting a visitable for which no more specific pivot type method is available.

Specified by:
visiting in interface Visitor<R,C>

visitAnnotation

public R visitAnnotation(Annotation object)
Specified by:
visitAnnotation in interface Visitor<R,C>

visitAnyType

public R visitAnyType(AnyType object)
Specified by:
visitAnyType in interface Visitor<R,C>

visitAssociationClass

public R visitAssociationClass(AssociationClass object)
Specified by:
visitAssociationClass in interface Visitor<R,C>

visitAssociationClassCallExp

public R visitAssociationClassCallExp(AssociationClassCallExp object)
Specified by:
visitAssociationClassCallExp in interface Visitor<R,C>

visitBagType

public R visitBagType(BagType object)
Specified by:
visitBagType in interface Visitor<R,C>

visitBooleanLiteralExp

public R visitBooleanLiteralExp(BooleanLiteralExp object)
Specified by:
visitBooleanLiteralExp in interface Visitor<R,C>

visitCallExp

public R visitCallExp(CallExp object)
Specified by:
visitCallExp in interface Visitor<R,C>

visitCallOperationAction

public R visitCallOperationAction(CallOperationAction object)
Specified by:
visitCallOperationAction in interface Visitor<R,C>

visitClass

public R visitClass(Class object)
Specified by:
visitClass in interface Visitor<R,C>

visitClassifierType

public R visitClassifierType(ClassifierType object)
Specified by:
visitClassifierType in interface Visitor<R,C>

visitCollectionItem

public R visitCollectionItem(CollectionItem object)
Specified by:
visitCollectionItem in interface Visitor<R,C>

visitCollectionLiteralExp

public R visitCollectionLiteralExp(CollectionLiteralExp object)
Specified by:
visitCollectionLiteralExp in interface Visitor<R,C>

visitCollectionLiteralPart

public R visitCollectionLiteralPart(CollectionLiteralPart object)
Specified by:
visitCollectionLiteralPart in interface Visitor<R,C>

visitCollectionRange

public R visitCollectionRange(CollectionRange object)
Specified by:
visitCollectionRange in interface Visitor<R,C>

visitCollectionType

public R visitCollectionType(CollectionType object)
Specified by:
visitCollectionType in interface Visitor<R,C>

visitComment

public R visitComment(Comment object)
Specified by:
visitComment in interface Visitor<R,C>

visitConstraint

public R visitConstraint(Constraint object)
Specified by:
visitConstraint in interface Visitor<R,C>

visitDataType

public R visitDataType(DataType object)
Specified by:
visitDataType in interface Visitor<R,C>

visitDetail

public R visitDetail(Detail object)
Specified by:
visitDetail in interface Visitor<R,C>

visitElement

public R visitElement(Element object)
Specified by:
visitElement in interface Visitor<R,C>

visitEnumLiteralExp

public R visitEnumLiteralExp(EnumLiteralExp object)
Specified by:
visitEnumLiteralExp in interface Visitor<R,C>

visitEnumeration

public R visitEnumeration(Enumeration object)
Specified by:
visitEnumeration in interface Visitor<R,C>

visitEnumerationLiteral

public R visitEnumerationLiteral(EnumerationLiteral object)
Specified by:
visitEnumerationLiteral in interface Visitor<R,C>

visitExpressionInOcl

public R visitExpressionInOcl(ExpressionInOcl object)
Specified by:
visitExpressionInOcl in interface Visitor<R,C>

visitFeature

public R visitFeature(Feature object)
Specified by:
visitFeature in interface Visitor<R,C>

visitFeatureCallExp

public R visitFeatureCallExp(FeatureCallExp object)
Specified by:
visitFeatureCallExp in interface Visitor<R,C>

visitIfExp

public R visitIfExp(IfExp object)
Specified by:
visitIfExp in interface Visitor<R,C>

visitIntegerLiteralExp

public R visitIntegerLiteralExp(IntegerLiteralExp object)
Specified by:
visitIntegerLiteralExp in interface Visitor<R,C>

visitInvalidLiteralExp

public R visitInvalidLiteralExp(InvalidLiteralExp object)
Specified by:
visitInvalidLiteralExp in interface Visitor<R,C>

visitInvalidType

public R visitInvalidType(InvalidType object)
Specified by:
visitInvalidType in interface Visitor<R,C>

visitIterateExp

public R visitIterateExp(IterateExp object)
Specified by:
visitIterateExp in interface Visitor<R,C>

visitIteration

public R visitIteration(Iteration object)
Specified by:
visitIteration in interface Visitor<R,C>

visitIteratorExp

public R visitIteratorExp(IteratorExp object)
Specified by:
visitIteratorExp in interface Visitor<R,C>

visitLambdaType

public R visitLambdaType(LambdaType object)
Specified by:
visitLambdaType in interface Visitor<R,C>

visitLetExp

public R visitLetExp(LetExp object)
Specified by:
visitLetExp in interface Visitor<R,C>

visitLibrary

public R visitLibrary(Library object)
Specified by:
visitLibrary in interface Visitor<R,C>

visitLiteralExp

public R visitLiteralExp(LiteralExp object)
Specified by:
visitLiteralExp in interface Visitor<R,C>

visitLoopExp

public R visitLoopExp(LoopExp object)
Specified by:
visitLoopExp in interface Visitor<R,C>

visitMessageExp

public R visitMessageExp(MessageExp object)
Specified by:
visitMessageExp in interface Visitor<R,C>

visitMessageType

public R visitMessageType(MessageType object)
Specified by:
visitMessageType in interface Visitor<R,C>

visitMonikeredElement

public R visitMonikeredElement(MonikeredElement object)
Specified by:
visitMonikeredElement in interface Visitor<R,C>

visitMultiplicityElement

public R visitMultiplicityElement(MultiplicityElement object)
Specified by:
visitMultiplicityElement in interface Visitor<R,C>

visitNamedElement

public R visitNamedElement(NamedElement object)
Specified by:
visitNamedElement in interface Visitor<R,C>

visitNamespace

public R visitNamespace(Namespace object)
Specified by:
visitNamespace in interface Visitor<R,C>

visitNavigationCallExp

public R visitNavigationCallExp(NavigationCallExp object)
Specified by:
visitNavigationCallExp in interface Visitor<R,C>

visitNullLiteralExp

public R visitNullLiteralExp(NullLiteralExp object)
Specified by:
visitNullLiteralExp in interface Visitor<R,C>

visitNumericLiteralExp

public R visitNumericLiteralExp(NumericLiteralExp object)
Specified by:
visitNumericLiteralExp in interface Visitor<R,C>

visitOclExpression

public R visitOclExpression(OclExpression object)
Specified by:
visitOclExpression in interface Visitor<R,C>

visitOpaqueExpression

public R visitOpaqueExpression(OpaqueExpression object)
Specified by:
visitOpaqueExpression in interface Visitor<R,C>

visitOperation

public R visitOperation(Operation object)
Specified by:
visitOperation in interface Visitor<R,C>

visitOperationCallExp

public R visitOperationCallExp(OperationCallExp object)
Specified by:
visitOperationCallExp in interface Visitor<R,C>

visitOperationTemplateParameter

public R visitOperationTemplateParameter(OperationTemplateParameter object)
Specified by:
visitOperationTemplateParameter in interface Visitor<R,C>

visitOrderedSetType

public R visitOrderedSetType(OrderedSetType object)
Specified by:
visitOrderedSetType in interface Visitor<R,C>

visitPackage

public R visitPackage(Package object)
Specified by:
visitPackage in interface Visitor<R,C>

visitPackageableElement

public R visitPackageableElement(PackageableElement object)
Specified by:
visitPackageableElement in interface Visitor<R,C>

visitParameter

public R visitParameter(Parameter object)
Specified by:
visitParameter in interface Visitor<R,C>

visitParameterableElement

public R visitParameterableElement(ParameterableElement object)
Specified by:
visitParameterableElement in interface Visitor<R,C>

visitPrecedence

public R visitPrecedence(Precedence object)
Specified by:
visitPrecedence in interface Visitor<R,C>

visitPrimitiveLiteralExp

public R visitPrimitiveLiteralExp(PrimitiveLiteralExp object)
Specified by:
visitPrimitiveLiteralExp in interface Visitor<R,C>

visitPrimitiveType

public R visitPrimitiveType(PrimitiveType object)
Specified by:
visitPrimitiveType in interface Visitor<R,C>

visitProperty

public R visitProperty(Property object)
Specified by:
visitProperty in interface Visitor<R,C>

visitPropertyCallExp

public R visitPropertyCallExp(PropertyCallExp object)
Specified by:
visitPropertyCallExp in interface Visitor<R,C>

visitRealLiteralExp

public R visitRealLiteralExp(RealLiteralExp object)
Specified by:
visitRealLiteralExp in interface Visitor<R,C>

visitSendSignalAction

public R visitSendSignalAction(SendSignalAction object)
Specified by:
visitSendSignalAction in interface Visitor<R,C>

visitSequenceType

public R visitSequenceType(SequenceType object)
Specified by:
visitSequenceType in interface Visitor<R,C>

visitSetType

public R visitSetType(SetType object)
Specified by:
visitSetType in interface Visitor<R,C>

visitSignal

public R visitSignal(Signal object)
Specified by:
visitSignal in interface Visitor<R,C>

visitState

public R visitState(State object)
Specified by:
visitState in interface Visitor<R,C>

visitStateExp

public R visitStateExp(StateExp object)
Specified by:
visitStateExp in interface Visitor<R,C>

visitStringLiteralExp

public R visitStringLiteralExp(StringLiteralExp object)
Specified by:
visitStringLiteralExp in interface Visitor<R,C>

visitTemplateBinding

public R visitTemplateBinding(TemplateBinding object)
Specified by:
visitTemplateBinding in interface Visitor<R,C>

visitTemplateParameter

public R visitTemplateParameter(TemplateParameter object)
Specified by:
visitTemplateParameter in interface Visitor<R,C>

visitTemplateParameterSubstitution

public R visitTemplateParameterSubstitution(TemplateParameterSubstitution object)
Specified by:
visitTemplateParameterSubstitution in interface Visitor<R,C>

visitTemplateParameterType

public R visitTemplateParameterType(TemplateParameterType object)
Specified by:
visitTemplateParameterType in interface Visitor<R,C>

visitTemplateSignature

public R visitTemplateSignature(TemplateSignature object)
Specified by:
visitTemplateSignature in interface Visitor<R,C>

visitTemplateableElement

public R visitTemplateableElement(TemplateableElement object)
Specified by:
visitTemplateableElement in interface Visitor<R,C>

visitTupleLiteralExp

public R visitTupleLiteralExp(TupleLiteralExp object)
Specified by:
visitTupleLiteralExp in interface Visitor<R,C>

visitTupleLiteralPart

public R visitTupleLiteralPart(TupleLiteralPart object)
Specified by:
visitTupleLiteralPart in interface Visitor<R,C>

visitTupleType

public R visitTupleType(TupleType object)
Specified by:
visitTupleType in interface Visitor<R,C>

visitType

public R visitType(Type object)
Specified by:
visitType in interface Visitor<R,C>

visitTypeExp

public R visitTypeExp(TypeExp object)
Specified by:
visitTypeExp in interface Visitor<R,C>

visitTypeTemplateParameter

public R visitTypeTemplateParameter(TypeTemplateParameter object)
Specified by:
visitTypeTemplateParameter in interface Visitor<R,C>

visitTypedElement

public R visitTypedElement(TypedElement object)
Specified by:
visitTypedElement in interface Visitor<R,C>

visitTypedMultiplicityElement

public R visitTypedMultiplicityElement(TypedMultiplicityElement object)
Specified by:
visitTypedMultiplicityElement in interface Visitor<R,C>

visitUnlimitedNaturalLiteralExp

public R visitUnlimitedNaturalLiteralExp(UnlimitedNaturalLiteralExp object)
Specified by:
visitUnlimitedNaturalLiteralExp in interface Visitor<R,C>

visitUnspecifiedType

public R visitUnspecifiedType(UnspecifiedType object)
Specified by:
visitUnspecifiedType in interface Visitor<R,C>

visitUnspecifiedValueExp

public R visitUnspecifiedValueExp(UnspecifiedValueExp object)
Specified by:
visitUnspecifiedValueExp in interface Visitor<R,C>

visitValueSpecification

public R visitValueSpecification(ValueSpecification object)
Specified by:
visitValueSpecification in interface Visitor<R,C>

visitVariable

public R visitVariable(Variable object)
Specified by:
visitVariable in interface Visitor<R,C>

visitVariableDeclaration

public R visitVariableDeclaration(VariableDeclaration object)
Specified by:
visitVariableDeclaration in interface Visitor<R,C>

visitVariableExp

public R visitVariableExp(VariableExp object)
Specified by:
visitVariableExp in interface Visitor<R,C>

visitVoidType

public R visitVoidType(VoidType object)
Specified by:
visitVoidType in interface Visitor<R,C>