Class OCLSwitch<T>
java.lang.Object
org.eclipse.m2m.atl.common.OCL.util.OCLSwitch<T>
The Switch for the model's inheritance hierarchy.
It supports the call
doSwitch(object)
to invoke the caseXXX
method for each class of the model,
starting with the actual class of the object
and proceeding up the inheritance hierarchy
until a non-null result is returned,
which is the result of the switch.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncaseAttribute
(Attribute object) Returns the result of interpreting the object as an instance of 'Attribute'.caseBagExp
(BagExp object) Returns the result of interpreting the object as an instance of 'Bag Exp'.caseBagType
(BagType object) Returns the result of interpreting the object as an instance of 'Bag Type'.caseBooleanExp
(BooleanExp object) Returns the result of interpreting the object as an instance of 'Boolean Exp'.caseBooleanType
(BooleanType object) Returns the result of interpreting the object as an instance of 'Boolean Type'.caseCollectionExp
(CollectionExp object) Returns the result of interpreting the object as an instance of 'Collection Exp'.Returns the result of interpreting the object as an instance of 'Collection Operation Call Exp'.caseCollectionType
(CollectionType object) Returns the result of interpreting the object as an instance of 'Collection Type'.caseEnumLiteralExp
(EnumLiteralExp object) Returns the result of interpreting the object as an instance of 'Enum Literal Exp'.Returns the result of interpreting the object as an instance of 'If Exp'.caseIntegerExp
(IntegerExp object) Returns the result of interpreting the object as an instance of 'Integer Exp'.caseIntegerType
(IntegerType object) Returns the result of interpreting the object as an instance of 'Integer Type'.caseIterateExp
(IterateExp object) Returns the result of interpreting the object as an instance of 'Iterate Exp'.caseIterator
(Iterator object) Returns the result of interpreting the object as an instance of 'Iterator'.caseIteratorExp
(IteratorExp object) Returns the result of interpreting the object as an instance of 'Iterator Exp'.caseLetExp
(LetExp object) Returns the result of interpreting the object as an instance of 'Let Exp'.caseLocatedElement
(LocatedElement object) Returns the result of interpreting the object as an instance of 'Located Element'.caseLoopExp
(LoopExp object) Returns the result of interpreting the object as an instance of 'Loop Exp'.caseMapElement
(MapElement object) Returns the result of interpreting the object as an instance of 'Map Element'.caseMapExp
(MapExp object) Returns the result of interpreting the object as an instance of 'Map Exp'.caseMapType
(MapType object) Returns the result of interpreting the object as an instance of 'Map Type'.Returns the result of interpreting the object as an instance of 'Navigation Or Attribute Call Exp'.caseNumericExp
(NumericExp object) Returns the result of interpreting the object as an instance of 'Numeric Exp'.caseNumericType
(NumericType object) Returns the result of interpreting the object as an instance of 'Numeric Type'.caseOclAnyType
(OclAnyType object) Returns the result of interpreting the object as an instance of 'Ocl Any Type'.Returns the result of interpreting the object as an instance of 'Ocl Context Definition'.caseOclExpression
(OclExpression object) Returns the result of interpreting the object as an instance of 'Ocl Expression'.caseOclFeature
(OclFeature object) Returns the result of interpreting the object as an instance of 'Ocl Feature'.Returns the result of interpreting the object as an instance of 'Ocl Feature Definition'.caseOclModel
(OclModel object) Returns the result of interpreting the object as an instance of 'Ocl Model'.caseOclModelElement
(OclModelElement object) Returns the result of interpreting the object as an instance of 'Ocl Model Element'.caseOclType
(OclType object) Returns the result of interpreting the object as an instance of 'Ocl Type'.caseOclUndefinedExp
(OclUndefinedExp object) Returns the result of interpreting the object as an instance of 'Ocl Undefined Exp'.caseOperation
(Operation object) Returns the result of interpreting the object as an instance of 'Operation'.caseOperationCallExp
(OperationCallExp object) Returns the result of interpreting the object as an instance of 'Operation Call Exp'.caseOperatorCallExp
(OperatorCallExp object) Returns the result of interpreting the object as an instance of 'Operator Call Exp'.caseOrderedSetExp
(OrderedSetExp object) Returns the result of interpreting the object as an instance of 'Ordered Set Exp'.caseOrderedSetType
(OrderedSetType object) Returns the result of interpreting the object as an instance of 'Ordered Set Type'.caseParameter
(Parameter object) Returns the result of interpreting the object as an instance of 'Parameter'.casePrimitive
(Primitive object) Returns the result of interpreting the object as an instance of 'Primitive'.casePrimitiveExp
(PrimitiveExp object) Returns the result of interpreting the object as an instance of 'Primitive Exp'.casePropertyCallExp
(PropertyCallExp object) Returns the result of interpreting the object as an instance of 'Property Call Exp'.caseRealExp
(RealExp object) Returns the result of interpreting the object as an instance of 'Real Exp'.caseRealType
(RealType object) Returns the result of interpreting the object as an instance of 'Real Type'.caseSequenceExp
(SequenceExp object) Returns the result of interpreting the object as an instance of 'Sequence Exp'.caseSequenceType
(SequenceType object) Returns the result of interpreting the object as an instance of 'Sequence Type'.caseSetExp
(SetExp object) Returns the result of interpreting the object as an instance of 'Set Exp'.caseSetType
(SetType object) Returns the result of interpreting the object as an instance of 'Set Type'.caseStringExp
(StringExp object) Returns the result of interpreting the object as an instance of 'String Exp'.caseStringType
(StringType object) Returns the result of interpreting the object as an instance of 'String Type'.caseSuperExp
(SuperExp object) Returns the result of interpreting the object as an instance of 'Super Exp'.caseTupleExp
(TupleExp object) Returns the result of interpreting the object as an instance of 'Tuple Exp'.caseTuplePart
(TuplePart object) Returns the result of interpreting the object as an instance of 'Tuple Part'.caseTupleType
(TupleType object) Returns the result of interpreting the object as an instance of 'Tuple Type'.Returns the result of interpreting the object as an instance of 'Tuple Type Attribute'.Returns the result of interpreting the object as an instance of 'Variable Declaration'.caseVariableExp
(VariableExp object) Returns the result of interpreting the object as an instance of 'Variable Exp'.defaultCase
(org.eclipse.emf.ecore.EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected T
doSwitch
(int classifierID, org.eclipse.emf.ecore.EObject theEObject) CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.protected T
doSwitch
(org.eclipse.emf.ecore.EClass theEClass, org.eclipse.emf.ecore.EObject theEObject) CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.doSwitch
(org.eclipse.emf.ecore.EObject theEObject) CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.
-
Field Details
-
modelPackage
The cached model package
-
-
Constructor Details
-
OCLSwitch
public OCLSwitch()Creates an instance of the switch.
-
-
Method Details
-
doSwitch
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.- Returns:
- the first non-null result returned by a
caseXXX
call.
-
doSwitch
protected T doSwitch(org.eclipse.emf.ecore.EClass theEClass, org.eclipse.emf.ecore.EObject theEObject) CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.- Returns:
- the first non-null result returned by a
caseXXX
call.
-
doSwitch
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.- Returns:
- the first non-null result returned by a
caseXXX
call.
-
caseOclExpression
Returns the result of interpreting the object as an instance of 'Ocl Expression'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Ocl Expression'.
- See Also:
-
caseVariableExp
Returns the result of interpreting the object as an instance of 'Variable Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Variable Exp'.
- See Also:
-
caseSuperExp
Returns the result of interpreting the object as an instance of 'Super Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Super Exp'.
- See Also:
-
casePrimitiveExp
Returns the result of interpreting the object as an instance of 'Primitive Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Primitive Exp'.
- See Also:
-
caseStringExp
Returns the result of interpreting the object as an instance of 'String Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'String Exp'.
- See Also:
-
caseBooleanExp
Returns the result of interpreting the object as an instance of 'Boolean Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Boolean Exp'.
- See Also:
-
caseNumericExp
Returns the result of interpreting the object as an instance of 'Numeric Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Numeric Exp'.
- See Also:
-
caseRealExp
Returns the result of interpreting the object as an instance of 'Real Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Real Exp'.
- See Also:
-
caseIntegerExp
Returns the result of interpreting the object as an instance of 'Integer Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Integer Exp'.
- See Also:
-
caseCollectionExp
Returns the result of interpreting the object as an instance of 'Collection Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Collection Exp'.
- See Also:
-
caseBagExp
Returns the result of interpreting the object as an instance of 'Bag Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Bag Exp'.
- See Also:
-
caseOrderedSetExp
Returns the result of interpreting the object as an instance of 'Ordered Set Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Ordered Set Exp'.
- See Also:
-
caseSequenceExp
Returns the result of interpreting the object as an instance of 'Sequence Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Sequence Exp'.
- See Also:
-
caseSetExp
Returns the result of interpreting the object as an instance of 'Set Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Set Exp'.
- See Also:
-
caseTupleExp
Returns the result of interpreting the object as an instance of 'Tuple Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Tuple Exp'.
- See Also:
-
caseTuplePart
Returns the result of interpreting the object as an instance of 'Tuple Part'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Tuple Part'.
- See Also:
-
caseMapExp
Returns the result of interpreting the object as an instance of 'Map Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Map Exp'.
- See Also:
-
caseMapElement
Returns the result of interpreting the object as an instance of 'Map Element'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Map Element'.
- See Also:
-
caseEnumLiteralExp
Returns the result of interpreting the object as an instance of 'Enum Literal Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Enum Literal Exp'.
- See Also:
-
caseOclUndefinedExp
Returns the result of interpreting the object as an instance of 'Ocl Undefined Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Ocl Undefined Exp'.
- See Also:
-
casePropertyCallExp
Returns the result of interpreting the object as an instance of 'Property Call Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Property Call Exp'.
- See Also:
-
caseOperationCallExp
Returns the result of interpreting the object as an instance of 'Operation Call Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Operation Call Exp'.
- See Also:
-
caseOperatorCallExp
Returns the result of interpreting the object as an instance of 'Operator Call Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Operator Call Exp'.
- See Also:
-
caseCollectionOperationCallExp
Returns the result of interpreting the object as an instance of 'Collection Operation Call Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Collection Operation Call Exp'.
- See Also:
-
caseLoopExp
Returns the result of interpreting the object as an instance of 'Loop Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Loop Exp'.
- See Also:
-
caseIterateExp
Returns the result of interpreting the object as an instance of 'Iterate Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Iterate Exp'.
- See Also:
-
caseIteratorExp
Returns the result of interpreting the object as an instance of 'Iterator Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Iterator Exp'.
- See Also:
-
caseLetExp
Returns the result of interpreting the object as an instance of 'Let Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Let Exp'.
- See Also:
-
caseIfExp
Returns the result of interpreting the object as an instance of 'If Exp'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'If Exp'.
- See Also:
-
caseVariableDeclaration
Returns the result of interpreting the object as an instance of 'Variable Declaration'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Variable Declaration'.
- See Also:
-
caseIterator
Returns the result of interpreting the object as an instance of 'Iterator'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Iterator'.
- See Also:
-
caseParameter
Returns the result of interpreting the object as an instance of 'Parameter'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Parameter'.
- See Also:
-
caseCollectionType
Returns the result of interpreting the object as an instance of 'Collection Type'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Collection Type'.
- See Also:
-
caseOclType
Returns the result of interpreting the object as an instance of 'Ocl Type'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Ocl Type'.
- See Also:
-
casePrimitive
Returns the result of interpreting the object as an instance of 'Primitive'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Primitive'.
- See Also:
-
caseStringType
Returns the result of interpreting the object as an instance of 'String Type'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'String Type'.
- See Also:
-
caseBooleanType
Returns the result of interpreting the object as an instance of 'Boolean Type'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Boolean Type'.
- See Also:
-
caseNumericType
Returns the result of interpreting the object as an instance of 'Numeric Type'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Numeric Type'.
- See Also:
-
caseIntegerType
Returns the result of interpreting the object as an instance of 'Integer Type'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Integer Type'.
- See Also:
-
caseRealType
Returns the result of interpreting the object as an instance of 'Real Type'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Real Type'.
- See Also:
-
caseBagType
Returns the result of interpreting the object as an instance of 'Bag Type'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Bag Type'.
- See Also:
-
caseOrderedSetType
Returns the result of interpreting the object as an instance of 'Ordered Set Type'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Ordered Set Type'.
- See Also:
-
caseSequenceType
Returns the result of interpreting the object as an instance of 'Sequence Type'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Sequence Type'.
- See Also:
-
caseSetType
Returns the result of interpreting the object as an instance of 'Set Type'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Set Type'.
- See Also:
-
caseOclAnyType
Returns the result of interpreting the object as an instance of 'Ocl Any Type'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Ocl Any Type'.
- See Also:
-
caseTupleType
Returns the result of interpreting the object as an instance of 'Tuple Type'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Tuple Type'.
- See Also:
-
caseTupleTypeAttribute
Returns the result of interpreting the object as an instance of 'Tuple Type Attribute'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Tuple Type Attribute'.
- See Also:
-
caseOclModelElement
Returns the result of interpreting the object as an instance of 'Ocl Model Element'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Ocl Model Element'.
- See Also:
-
caseMapType
Returns the result of interpreting the object as an instance of 'Map Type'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Map Type'.
- See Also:
-
caseOclFeatureDefinition
Returns the result of interpreting the object as an instance of 'Ocl Feature Definition'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Ocl Feature Definition'.
- See Also:
-
caseOclContextDefinition
Returns the result of interpreting the object as an instance of 'Ocl Context Definition'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Ocl Context Definition'.
- See Also:
-
caseOclFeature
Returns the result of interpreting the object as an instance of 'Ocl Feature'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Ocl Feature'.
- See Also:
-
caseAttribute
Returns the result of interpreting the object as an instance of 'Attribute'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Attribute'.
- See Also:
-
caseOperation
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.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Operation'.
- See Also:
-
caseOclModel
Returns the result of interpreting the object as an instance of 'Ocl Model'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Ocl Model'.
- See Also:
-
caseLocatedElement
Returns the result of interpreting the object as an instance of 'Located Element'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Located Element'.
- See Also:
-
defaultCase
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.- Parameters:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
-