org.eclipse.ocl.examples.xtext.completeocl.pivot2cs
Class CompleteOCLSplitter.Separator
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.eclipse.ocl.examples.pivot.util.PivotSwitch<org.eclipse.emf.ecore.EObject>
org.eclipse.ocl.examples.xtext.completeocl.pivot2cs.CompleteOCLSplitter.Separator
- Enclosing class:
- CompleteOCLSplitter
public static class CompleteOCLSplitter.Separator
- extends PivotSwitch<org.eclipse.emf.ecore.EObject>
Method Summary |
org.eclipse.emf.ecore.EObject |
caseConstraint(Constraint object)
Returns the result of interpreting the object as an instance of 'Constraint'. |
org.eclipse.emf.ecore.EObject |
caseOperation(Operation object)
Returns the result of interpreting the object as an instance of 'Operation'. |
org.eclipse.emf.ecore.EObject |
casePackage(Package object)
Returns the result of interpreting the object as an instance of 'Package'. |
org.eclipse.emf.ecore.EObject |
caseProperty(Property object)
Returns the result of interpreting the object as an instance of 'Property'. |
org.eclipse.emf.ecore.EObject |
caseType(Type object)
Returns the result of interpreting the object as an instance of 'Type'. |
protected
|
cloneNamedElement(java.util.List<T> separateSiblings,
T object)
|
NamedElement |
getElementByName(java.lang.Iterable<? extends org.eclipse.emf.ecore.EObject> elements,
java.lang.String name)
|
protected
|
getSeparate(T element)
|
protected Package |
getSeparatePackage(Package element)
|
Methods inherited from class org.eclipse.ocl.examples.pivot.util.PivotSwitch |
caseAnnotation, caseAnyType, caseAssociationClass, caseAssociationClassCallExp, caseBagType, caseBooleanLiteralExp, caseCallExp, caseCallOperationAction, caseClass, caseClassifierType, caseCollectionItem, caseCollectionLiteralExp, caseCollectionLiteralPart, caseCollectionRange, caseCollectionType, caseComment, caseConstructorExp, caseConstructorPart, caseDataType, caseDetail, caseElement, caseEnumeration, caseEnumerationLiteral, caseEnumLiteralExp, caseExpressionInOCL, caseFeature, caseFeatureCallExp, caseIfExp, caseIntegerLiteralExp, caseInvalidLiteralExp, caseInvalidType, caseIterateExp, caseIteration, caseIteratorExp, caseLambdaType, caseLetExp, caseLibrary, caseLiteralExp, caseLoopExp, caseMessageExp, caseMessageType, caseModel, caseMorePivotable, caseMultiplicityElement, caseNameable, caseNamedElement, caseNamespace, caseNavigationCallExp, caseNullLiteralExp, caseNumericLiteralExp, caseOCLExpression, caseOpaqueExpression, caseOperationCallExp, caseOperationTemplateParameter, caseOrderedSetType, casePackageableElement, caseParameter, caseParameterableElement, casePivotable, casePrecedence, casePrimitiveLiteralExp, casePrimitiveType, casePropertyCallExp, caseRealLiteralExp, caseSelfType, caseSendSignalAction, caseSequenceType, caseSetType, caseSignal, caseState, caseStateExp, caseStringLiteralExp, caseTemplateableElement, caseTemplateBinding, caseTemplateParameter, caseTemplateParameterSubstitution, caseTemplateParameterType, caseTemplateSignature, caseTupleLiteralExp, caseTupleLiteralPart, caseTupleType, caseTypedElement, caseTypedMultiplicityElement, caseTypeExp, caseTypeTemplateParameter, caseUnlimitedNaturalLiteralExp, caseUnspecifiedType, caseUnspecifiedValueExp, caseValueSpecification, caseVariable, caseVariableDeclaration, caseVariableExp, caseVisitable, caseVisitor, caseVoidType, defaultCase, doSwitch, isSwitchFor |
Methods inherited from class org.eclipse.emf.ecore.util.Switch |
doSwitch, doSwitch |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
metaModelManager
protected final MetaModelManager metaModelManager
separateResource
protected final org.eclipse.emf.ecore.resource.Resource separateResource
CompleteOCLSplitter.Separator
public CompleteOCLSplitter.Separator(MetaModelManager metaModelManager,
org.eclipse.emf.ecore.resource.Resource separateResource)
caseConstraint
public org.eclipse.emf.ecore.EObject caseConstraint(Constraint object)
- Description copied from class:
PivotSwitch
- Returns the result of interpreting the object as an instance of 'Constraint'.
This implementation returns null;
returning a non-null result will terminate the switch.
- Overrides:
caseConstraint
in class PivotSwitch<org.eclipse.emf.ecore.EObject>
- Parameters:
object
- the target of the switch.
- Returns:
- the result of interpreting the object as an instance of 'Constraint'.
- See Also:
doSwitch(EObject)
caseOperation
public org.eclipse.emf.ecore.EObject caseOperation(Operation object)
- Description copied from class:
PivotSwitch
- Returns the result of interpreting the object as an instance of 'Operation'.
This implementation returns null;
returning a non-null result will terminate the switch.
- Overrides:
caseOperation
in class PivotSwitch<org.eclipse.emf.ecore.EObject>
- Parameters:
object
- the target of the switch.
- Returns:
- the result of interpreting the object as an instance of 'Operation'.
- See Also:
doSwitch(EObject)
casePackage
public org.eclipse.emf.ecore.EObject casePackage(Package object)
- Description copied from class:
PivotSwitch
- Returns the result of interpreting the object as an instance of 'Package'.
This implementation returns null;
returning a non-null result will terminate the switch.
- Overrides:
casePackage
in class PivotSwitch<org.eclipse.emf.ecore.EObject>
- Parameters:
object
- the target of the switch.
- Returns:
- the result of interpreting the object as an instance of 'Package'.
- See Also:
doSwitch(EObject)
getSeparatePackage
protected Package getSeparatePackage(Package element)
caseProperty
public org.eclipse.emf.ecore.EObject caseProperty(Property object)
- Description copied from class:
PivotSwitch
- Returns the result of interpreting the object as an instance of 'Property'.
This implementation returns null;
returning a non-null result will terminate the switch.
- Overrides:
caseProperty
in class PivotSwitch<org.eclipse.emf.ecore.EObject>
- Parameters:
object
- the target of the switch.
- Returns:
- the result of interpreting the object as an instance of 'Property'.
- See Also:
doSwitch(EObject)
caseType
public org.eclipse.emf.ecore.EObject caseType(Type object)
- Description copied from class:
PivotSwitch
- Returns the result of interpreting the object as an instance of 'Type'.
This implementation returns null;
returning a non-null result will terminate the switch.
- Overrides:
caseType
in class PivotSwitch<org.eclipse.emf.ecore.EObject>
- Parameters:
object
- the target of the switch.
- Returns:
- the result of interpreting the object as an instance of 'Type'.
- See Also:
doSwitch(EObject)
cloneNamedElement
protected <T extends NamedElement> T cloneNamedElement(java.util.List<T> separateSiblings,
T object)
getElementByName
public NamedElement getElementByName(java.lang.Iterable<? extends org.eclipse.emf.ecore.EObject> elements,
java.lang.String name)
getSeparate
protected <T extends NamedElement> T getSeparate(T element)