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

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.Pivot2EcoreTypeRefVisitor
All Implemented Interfaces:
Visitor<org.eclipse.emf.ecore.EObject>

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


Field Summary
protected  MetaModelManager metaModelManager
           
 
Fields inherited from class org.eclipse.ocl.examples.pivot.util.AbstractVisitor
context
 
Constructor Summary
Pivot2EcoreTypeRefVisitor(Pivot2Ecore context)
           
 
Method Summary
 org.eclipse.emf.ecore.EGenericType resolveEGenericType(Type type)
           
 org.eclipse.emf.ecore.EObject safeVisit(Visitable v)
          A null-safe visitation of the specified visitable.
<T extends org.eclipse.emf.ecore.EObject>
void
safeVisitAll(java.util.List<T> eObjects, java.util.List<? extends Element> pivotObjects)
           
 org.eclipse.emf.ecore.EObject visitAnyType(AnyType object)
           
 org.eclipse.emf.ecore.EObject visitCollectionType(CollectionType object)
           
 org.eclipse.emf.ecore.EClassifier 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 visitInvalidType(InvalidType object)
           
 org.eclipse.emf.ecore.EObject visitPrimitiveType(PrimitiveType pivotType)
           
 org.eclipse.emf.ecore.EObject visitTemplateBinding(TemplateBinding object)
           
 org.eclipse.emf.ecore.EObject visitTemplateParameterSubstitution(TemplateParameterSubstitution pivotTemplateParameterSubstitution)
           
 org.eclipse.emf.ecore.EObject visitType(Type pivotType)
           
 org.eclipse.emf.ecore.EObject visitVoidType(VoidType object)
           
 
Methods inherited from class org.eclipse.ocl.examples.pivot.util.AbstractExtendingVisitor
visitAnnotation, visitAssociationClass, visitAssociationClassCallExp, visitBagType, visitBooleanLiteralExp, visitCallExp, visitCallOperationAction, visitClass, visitClassifierType, visitCollectionItem, visitCollectionLiteralExp, visitCollectionLiteralPart, visitCollectionRange, visitComment, visitConstraint, visitConstructorExp, visitConstructorPart, visitDataType, visitDetail, visitElement, visitEnumeration, visitEnumerationLiteral, visitEnumLiteralExp, visitExpressionInOCL, visitFeature, visitFeatureCallExp, visitIfExp, visitIntegerLiteralExp, visitInvalidLiteralExp, visitIterateExp, visitIteration, visitIteratorExp, visitLambdaType, visitLetExp, visitLibrary, visitLiteralExp, visitLoopExp, visitMessageExp, visitMessageType, visitModel, visitMultiplicityElement, visitNamedElement, visitNamespace, visitNavigationCallExp, visitNullLiteralExp, visitNumericLiteralExp, visitOCLExpression, visitOpaqueExpression, visitOperation, visitOperationCallExp, visitOperationTemplateParameter, visitOrderedSetType, visitPackage, visitPackageableElement, visitParameter, visitParameterableElement, visitPrecedence, visitPrimitiveLiteralExp, visitProperty, visitPropertyCallExp, visitRealLiteralExp, visitSelfType, visitSendSignalAction, visitSequenceType, visitSetType, visitSignal, visitState, visitStateExp, visitStringLiteralExp, visitTemplateableElement, visitTemplateParameter, visitTemplateParameterType, visitTemplateSignature, visitTupleLiteralExp, visitTupleLiteralPart, visitTupleType, visitTypedElement, visitTypedMultiplicityElement, visitTypeExp, visitTypeTemplateParameter, visitUnlimitedNaturalLiteralExp, visitUnspecifiedType, visitUnspecifiedValueExp, visitValueSpecification, visitVariable, visitVariableDeclaration, visitVariableExp
 
Methods inherited from class org.eclipse.ocl.examples.pivot.util.AbstractVisitor
getAdapter, 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

metaModelManager

protected final MetaModelManager metaModelManager
Constructor Detail

Pivot2EcoreTypeRefVisitor

public Pivot2EcoreTypeRefVisitor(Pivot2Ecore context)
Method Detail

resolveEGenericType

public org.eclipse.emf.ecore.EGenericType resolveEGenericType(Type type)

safeVisit

public org.eclipse.emf.ecore.EObject safeVisit(Visitable v)
Description copied from class: AbstractVisitor
A null-safe visitation of the specified visitable.

Overrides:
safeVisit in class AbstractVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>
Parameters:
v - a visitable, or null
Returns:
null if the visitable is null; otherwise, the result of visiting it

safeVisitAll

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

visiting

public org.eclipse.emf.ecore.EClassifier 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.


visitAnyType

public org.eclipse.emf.ecore.EObject visitAnyType(AnyType object)
Specified by:
visitAnyType in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitAnyType in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>

visitCollectionType

public org.eclipse.emf.ecore.EObject visitCollectionType(CollectionType object)
Specified by:
visitCollectionType in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitCollectionType in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>

visitInvalidType

public org.eclipse.emf.ecore.EObject visitInvalidType(InvalidType object)
Specified by:
visitInvalidType in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitInvalidType in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>

visitPrimitiveType

public org.eclipse.emf.ecore.EObject visitPrimitiveType(PrimitiveType pivotType)
Specified by:
visitPrimitiveType in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitPrimitiveType in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>

visitTemplateBinding

public org.eclipse.emf.ecore.EObject visitTemplateBinding(TemplateBinding object)
Specified by:
visitTemplateBinding in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitTemplateBinding in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>

visitTemplateParameterSubstitution

public org.eclipse.emf.ecore.EObject visitTemplateParameterSubstitution(TemplateParameterSubstitution pivotTemplateParameterSubstitution)
Specified by:
visitTemplateParameterSubstitution in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitTemplateParameterSubstitution in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>

visitType

public org.eclipse.emf.ecore.EObject visitType(Type pivotType)
Specified by:
visitType in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitType in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>

visitVoidType

public org.eclipse.emf.ecore.EObject visitVoidType(VoidType object)
Specified by:
visitVoidType in interface Visitor<org.eclipse.emf.ecore.EObject>
Overrides:
visitVoidType in class AbstractExtendingVisitor<org.eclipse.emf.ecore.EObject,Pivot2Ecore>