org.eclipse.ocl.examples.pivot.ecore
Class Pivot2EcoreReferenceVisitor

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.util.AbstractVisitor<R,C>
      extended by org.eclipse.ocl.examples.pivot.util.AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>
          extended by org.eclipse.ocl.examples.pivot.ecore.Pivot2EcoreReferenceVisitor
All Implemented Interfaces:
Visitor<org.eclipse.emf.ecore.EObject>

public class Pivot2EcoreReferenceVisitor
extends AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>


Nested Class Summary
protected static class Pivot2EcoreReferenceVisitor.OptionalType
           
 
Field Summary
protected  Pivot2EcoreTypeRefVisitor typeRefVisitor
           
 
Fields inherited from class org.eclipse.ocl.examples.pivot.util.AbstractVisitor
context
 
Constructor Summary
Pivot2EcoreReferenceVisitor(Pivot2Ecore context)
           
 
Method Summary
protected  Pivot2EcoreReferenceVisitor.OptionalType addPropertyRedefinitionEAnnotations(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Property pivotProperty)
           
protected  boolean addPropertyRenameEAnnotations(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, Property pivotProperty)
           
<T extends org.eclipse.emf.ecore.EClassifier>
void
safeVisitAll(java.lang.Class<?> javaClass, java.util.List<org.eclipse.emf.ecore.EGenericType> eGenericTypes, java.util.List<T> eTypes, java.util.List<? extends Type> asTypes)
           
<T extends org.eclipse.emf.ecore.EObject>
void
safeVisitAll(java.util.List<T> eObjects, java.util.List<? extends Element> pivotObjects)
           
protected  void setEType(org.eclipse.emf.ecore.ETypedElement eTypedElement, Type pivotType)
           
protected  void setETypeAndMultiplicity(org.eclipse.emf.ecore.ETypedElement eTypedElement, Type pivotType, boolean isRequired)
           
 org.eclipse.emf.ecore.EObject visitAnnotation(Annotation pivotAnnotation)
           
 org.eclipse.emf.ecore.EObject visitClass(Class pivotClass)
           
 org.eclipse.emf.ecore.EObject visitConstraint(Constraint pivotConstraint)
           
 org.eclipse.emf.ecore.EObject visitDataType(DataType pivotDataType)
           
 org.eclipse.emf.ecore.EObject visiting(Visitable visitable)
          Return the result of visiting a visitable for which no more specific pivot type method is available.
 org.eclipse.emf.ecore.EObject visitOperation(Operation pivotOperation)
           
 org.eclipse.emf.ecore.EObject visitPackage(Package pivotPackage)
           
 org.eclipse.emf.ecore.EObject visitProperty(Property pivotProperty)
           
 org.eclipse.emf.ecore.EObject visitTypedElement(TypedElement pivotTypedElement)
           
 org.eclipse.emf.ecore.EObject visitTypedMultiplicityElement(TypedMultiplicityElement pivotTypedElement)
           
 org.eclipse.emf.ecore.EObject visitTypeTemplateParameter(TypeTemplateParameter pivotTypeTemplateParameter)
           
 
Methods inherited from class org.eclipse.ocl.examples.pivot.util.AbstractExtendingVisitor
visitAnyType, visitAssociationClass, visitAssociationClassCallExp, visitBagType, visitBehavior, visitBooleanLiteralExp, visitCallExp, visitCallOperationAction, visitCollectionItem, visitCollectionLiteralExp, visitCollectionLiteralPart, visitCollectionRange, visitCollectionType, visitComment, visitConnectionPointReference, visitConstructorExp, visitConstructorPart, visitDetail, visitDynamicElement, visitDynamicProperty, visitDynamicType, visitElement, visitElementExtension, visitEnumeration, visitEnumerationLiteral, visitEnumLiteralExp, visitExpressionInOCL, visitFeature, visitFeatureCallExp, visitFinalState, visitIfExp, visitImport, visitIntegerLiteralExp, visitInvalidLiteralExp, visitInvalidType, visitIterateExp, visitIteration, visitIteratorExp, visitLambdaType, visitLetExp, visitLibrary, visitLiteralExp, visitLoopExp, visitMessageExp, visitMessageType, visitMetaclass, visitNamedElement, visitNamespace, visitNavigationCallExp, visitNullLiteralExp, visitNumericLiteralExp, visitOCLExpression, visitOpaqueExpression, visitOperationCallExp, visitOperationTemplateParameter, visitOppositePropertyCallExp, visitOrderedSetType, visitPackageableElement, visitParameter, visitParameterableElement, visitPrecedence, visitPrimitiveLiteralExp, visitPrimitiveType, visitProfile, visitProfileApplication, visitPropertyCallExp, visitPseudostate, visitRealLiteralExp, visitRegion, visitRoot, visitSelfType, visitSendSignalAction, visitSequenceType, visitSetType, visitSignal, visitState, visitStateExp, visitStateMachine, visitStereotype, visitStringLiteralExp, visitTemplateableElement, visitTemplateBinding, visitTemplateParameter, visitTemplateParameterSubstitution, visitTemplateParameterType, visitTemplateSignature, visitTransition, visitTrigger, visitTupleLiteralExp, visitTupleLiteralPart, visitTupleType, visitType, visitTypeExp, visitTypeExtension, visitUnlimitedNaturalLiteralExp, visitUnspecifiedType, visitUnspecifiedValueExp, visitValueSpecification, visitVariable, visitVariableDeclaration, visitVariableExp, visitVertex, visitVoidType
 
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

typeRefVisitor

@NonNull
protected final Pivot2EcoreTypeRefVisitor typeRefVisitor
Constructor Detail

Pivot2EcoreReferenceVisitor

public Pivot2EcoreReferenceVisitor(@NonNull
                                   Pivot2Ecore context)
Method Detail

addPropertyRedefinitionEAnnotations

@Nullable
protected Pivot2EcoreReferenceVisitor.OptionalType addPropertyRedefinitionEAnnotations(@NonNull
                                                                                                org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
                                                                                                @NonNull
                                                                                                Property pivotProperty)

addPropertyRenameEAnnotations

protected boolean addPropertyRenameEAnnotations(@NonNull
                                                org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
                                                @NonNull
                                                Property pivotProperty)

safeVisitAll

public <T extends org.eclipse.emf.ecore.EObject> void safeVisitAll(java.util.List<T> eObjects,
                                                                   java.util.List<? extends Element> pivotObjects)

safeVisitAll

public <T extends org.eclipse.emf.ecore.EClassifier> void safeVisitAll(java.lang.Class<?> javaClass,
                                                                       java.util.List<org.eclipse.emf.ecore.EGenericType> eGenericTypes,
                                                                       java.util.List<T> eTypes,
                                                                       java.util.List<? extends Type> asTypes)

setEType

protected void setEType(@NonNull
                        org.eclipse.emf.ecore.ETypedElement eTypedElement,
                        @NonNull
                        Type pivotType)

setETypeAndMultiplicity

protected void setETypeAndMultiplicity(@NonNull
                                       org.eclipse.emf.ecore.ETypedElement eTypedElement,
                                       @Nullable
                                       Type pivotType,
                                       boolean isRequired)

visiting

public org.eclipse.emf.ecore.EObject visiting(@NonNull
                                              Visitable visitable)
Description copied from interface: Visitor
Return the result of visiting a visitable for which no more specific pivot type method is available.


visitAnnotation

public org.eclipse.emf.ecore.EObject visitAnnotation(@NonNull
                                                     Annotation pivotAnnotation)
Specified by:
visitAnnotation in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitAnnotation in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>

visitClass

public org.eclipse.emf.ecore.EObject visitClass(@NonNull
                                                Class pivotClass)
Specified by:
visitClass in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitClass in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>

visitConstraint

public org.eclipse.emf.ecore.EObject visitConstraint(@NonNull
                                                     Constraint pivotConstraint)
Specified by:
visitConstraint in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitConstraint in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>

visitDataType

public org.eclipse.emf.ecore.EObject visitDataType(@NonNull
                                                   DataType pivotDataType)
Specified by:
visitDataType in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitDataType in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>

visitOperation

public org.eclipse.emf.ecore.EObject visitOperation(@NonNull
                                                    Operation pivotOperation)
Specified by:
visitOperation in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitOperation in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>

visitPackage

public org.eclipse.emf.ecore.EObject visitPackage(@NonNull
                                                  Package pivotPackage)
Specified by:
visitPackage in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitPackage in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>

visitProperty

public org.eclipse.emf.ecore.EObject visitProperty(@NonNull
                                                   Property pivotProperty)
Specified by:
visitProperty in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitProperty in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>

visitTypeTemplateParameter

public org.eclipse.emf.ecore.EObject visitTypeTemplateParameter(@NonNull
                                                                TypeTemplateParameter pivotTypeTemplateParameter)
Specified by:
visitTypeTemplateParameter in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitTypeTemplateParameter in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>

visitTypedElement

public org.eclipse.emf.ecore.EObject visitTypedElement(@NonNull
                                                       TypedElement pivotTypedElement)
Specified by:
visitTypedElement in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitTypedElement in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>

visitTypedMultiplicityElement

public org.eclipse.emf.ecore.EObject visitTypedMultiplicityElement(@NonNull
                                                                   TypedMultiplicityElement pivotTypedElement)
Specified by:
visitTypedMultiplicityElement in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitTypedMultiplicityElement in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>