org.eclipse.gmt.umlx.essentialocl.util
Class EssentialoclSwitch<T>

java.lang.Object
  extended by org.eclipse.gmt.umlx.essentialocl.util.EssentialoclSwitch<T>

public class EssentialoclSwitch<T>
extends java.lang.Object

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:
EssentialoclPackage

Constructor Summary
EssentialoclSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAnyType(AnyType object)
          Returns the result of interpretting the object as an instance of 'Any Type'.
 T caseBagType(BagType object)
          Returns the result of interpretting the object as an instance of 'Bag Type'.
 T caseBooleanLiteralExp(BooleanLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Boolean Literal Exp'.
 T caseCallExp(CallExp object)
          Returns the result of interpretting the object as an instance of 'Call Exp'.
 T caseClass(Class object)
          Returns the result of interpretting the object as an instance of 'Class'.
 T caseCollectionItem(CollectionItem object)
          Returns the result of interpretting the object as an instance of 'Collection Item'.
 T caseCollectionLiteralExp(CollectionLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Collection Literal Exp'.
 T caseCollectionLiteralPart(CollectionLiteralPart object)
          Returns the result of interpretting the object as an instance of 'Collection Literal Part'.
 T caseCollectionRange(CollectionRange object)
          Returns the result of interpretting the object as an instance of 'Collection Range'.
 T caseCollectionType(CollectionType object)
          Returns the result of interpretting the object as an instance of 'Collection Type'.
 T caseDataType(DataType object)
          Returns the result of interpretting the object as an instance of 'Data Type'.
 T caseElement(Element object)
          Returns the result of interpretting the object as an instance of 'Element'.
 T caseEnumLiteralExp(EnumLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Enum Literal Exp'.
 T caseExpressionInOcl(ExpressionInOcl object)
          Returns the result of interpretting the object as an instance of 'Expression In Ocl'.
 T caseFeaturePropertyCall(FeaturePropertyCall object)
          Returns the result of interpretting the object as an instance of 'Feature Property Call'.
 T caseIfExp(IfExp object)
          Returns the result of interpretting the object as an instance of 'If Exp'.
 T caseIntegerLiteralExp(IntegerLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Integer Literal Exp'.
 T caseInvalidLiteralExp(InvalidLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Invalid Literal Exp'.
 T caseInvalidType(InvalidType object)
          Returns the result of interpretting the object as an instance of 'Invalid Type'.
 T caseIterateExp(IterateExp object)
          Returns the result of interpretting the object as an instance of 'Iterate Exp'.
 T caseIteratorExp(IteratorExp object)
          Returns the result of interpretting the object as an instance of 'Iterator Exp'.
 T caseLetExp(LetExp object)
          Returns the result of interpretting the object as an instance of 'Let Exp'.
 T caseLiteralExp(LiteralExp object)
          Returns the result of interpretting the object as an instance of 'Literal Exp'.
 T caseLoopExp(LoopExp object)
          Returns the result of interpretting the object as an instance of 'Loop Exp'.
 T caseNamedElement(NamedElement object)
          Returns the result of interpretting the object as an instance of 'Named Element'.
 T caseNullLiteralExp(NullLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Null Literal Exp'.
 T caseNumericLiteralExp(NumericLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Numeric Literal Exp'.
 T caseObject(Object object)
          Returns the result of interpretting the object as an instance of 'Object'.
 T caseOclExpression(OclExpression object)
          Returns the result of interpretting the object as an instance of 'Ocl Expression'.
 T caseOpaqueExpression(OpaqueExpression object)
          Returns the result of interpretting the object as an instance of 'Opaque Expression'.
 T caseOperationCallExp(OperationCallExp object)
          Returns the result of interpretting the object as an instance of 'Operation Call Exp'.
 T caseOrderedSetType(OrderedSetType object)
          Returns the result of interpretting the object as an instance of 'Ordered Set Type'.
 T casePrimitiveLiteralExp(PrimitiveLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Primitive Literal Exp'.
 T casePropertyCallExp(PropertyCallExp object)
          Returns the result of interpretting the object as an instance of 'Property Call Exp'.
 T caseRealLiteralExp(RealLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Real Literal Exp'.
 T caseSequenceType(SequenceType object)
          Returns the result of interpretting the object as an instance of 'Sequence Type'.
 T caseSetType(SetType object)
          Returns the result of interpretting the object as an instance of 'Set Type'.
 T caseStringLiteralExp(StringLiteralExp object)
          Returns the result of interpretting the object as an instance of 'String Literal Exp'.
 T caseTupleLiteralExp(TupleLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Tuple Literal Exp'.
 T caseTupleLiteralPart(TupleLiteralPart object)
          Returns the result of interpretting the object as an instance of 'Tuple Literal Part'.
 T caseTupleType(TupleType object)
          Returns the result of interpretting the object as an instance of 'Tuple Type'.
 T caseType(Type object)
          Returns the result of interpretting the object as an instance of 'Type'.
 T caseTypedElement(TypedElement object)
          Returns the result of interpretting the object as an instance of 'Typed Element'.
 T caseTypeExp(TypeExp object)
          Returns the result of interpretting the object as an instance of 'Type Exp'.
 T caseUnlimitedNaturalExp(UnlimitedNaturalExp object)
          Returns the result of interpretting the object as an instance of 'Unlimited Natural Exp'.
 T caseVariable(Variable object)
          Returns the result of interpretting the object as an instance of 'Variable'.
 T caseVariableExp(VariableExp object)
          Returns the result of interpretting the object as an instance of 'Variable Exp'.
 T caseVoidType(VoidType object)
          Returns the result of interpretting the object as an instance of 'Void Type'.
 T defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpretting the object as an instance of 'EObject'.
 T doSwitch(org.eclipse.emf.ecore.EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EssentialoclSwitch

public EssentialoclSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public T doSwitch(org.eclipse.emf.ecore.EObject theEObject)
Calls caseXXX 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.

caseBooleanLiteralExp

public T caseBooleanLiteralExp(BooleanLiteralExp object)
Returns the result of interpretting the object as an instance of 'Boolean 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 interpretting the object as an instance of 'Boolean Literal Exp'.
See Also:
doSwitch(EObject)

caseCallExp

public T caseCallExp(CallExp object)
Returns the result of interpretting the object as an instance of '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 interpretting the object as an instance of 'Call Exp'.
See Also:
doSwitch(EObject)

caseOclExpression

public T caseOclExpression(OclExpression object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Ocl Expression'.
See Also:
doSwitch(EObject)

caseUnlimitedNaturalExp

public T caseUnlimitedNaturalExp(UnlimitedNaturalExp object)
Returns the result of interpretting the object as an instance of 'Unlimited Natural 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 interpretting the object as an instance of 'Unlimited Natural Exp'.
See Also:
doSwitch(EObject)

caseIfExp

public T caseIfExp(IfExp object)
Returns the result of interpretting 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 interpretting the object as an instance of 'If Exp'.
See Also:
doSwitch(EObject)

caseLetExp

public T caseLetExp(LetExp object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Let Exp'.
See Also:
doSwitch(EObject)

caseVariable

public T caseVariable(Variable object)
Returns the result of interpretting the object as an instance of 'Variable'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Variable'.
See Also:
doSwitch(EObject)

casePropertyCallExp

public T casePropertyCallExp(PropertyCallExp object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Property Call Exp'.
See Also:
doSwitch(EObject)

caseVariableExp

public T caseVariableExp(VariableExp object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Variable Exp'.
See Also:
doSwitch(EObject)

caseTypeExp

public T caseTypeExp(TypeExp object)
Returns the result of interpretting the object as an instance of 'Type 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 interpretting the object as an instance of 'Type Exp'.
See Also:
doSwitch(EObject)

caseLoopExp

public T caseLoopExp(LoopExp object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Loop Exp'.
See Also:
doSwitch(EObject)

caseIteratorExp

public T caseIteratorExp(IteratorExp object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Iterator Exp'.
See Also:
doSwitch(EObject)

caseStringLiteralExp

public T caseStringLiteralExp(StringLiteralExp object)
Returns the result of interpretting the object as an instance of 'String 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 interpretting the object as an instance of 'String Literal Exp'.
See Also:
doSwitch(EObject)

caseIntegerLiteralExp

public T caseIntegerLiteralExp(IntegerLiteralExp object)
Returns the result of interpretting the object as an instance of 'Integer 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 interpretting the object as an instance of 'Integer Literal Exp'.
See Also:
doSwitch(EObject)

caseOperationCallExp

public T caseOperationCallExp(OperationCallExp object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Operation Call Exp'.
See Also:
doSwitch(EObject)

caseRealLiteralExp

public T caseRealLiteralExp(RealLiteralExp object)
Returns the result of interpretting the object as an instance of 'Real 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 interpretting the object as an instance of 'Real Literal Exp'.
See Also:
doSwitch(EObject)

caseLiteralExp

public T caseLiteralExp(LiteralExp object)
Returns the result of interpretting the object as an instance of '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 interpretting the object as an instance of 'Literal Exp'.
See Also:
doSwitch(EObject)

caseIterateExp

public T caseIterateExp(IterateExp object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Iterate Exp'.
See Also:
doSwitch(EObject)

casePrimitiveLiteralExp

public T casePrimitiveLiteralExp(PrimitiveLiteralExp object)
Returns the result of interpretting the object as an instance of 'Primitive 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 interpretting the object as an instance of 'Primitive Literal Exp'.
See Also:
doSwitch(EObject)

caseNumericLiteralExp

public T caseNumericLiteralExp(NumericLiteralExp object)
Returns the result of interpretting the object as an instance of 'Numeric 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 interpretting the object as an instance of 'Numeric Literal Exp'.
See Also:
doSwitch(EObject)

caseCollectionLiteralExp

public T caseCollectionLiteralExp(CollectionLiteralExp object)
Returns the result of interpretting the object as an instance of 'Collection 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 interpretting the object as an instance of 'Collection Literal Exp'.
See Also:
doSwitch(EObject)

caseCollectionLiteralPart

public T caseCollectionLiteralPart(CollectionLiteralPart object)
Returns the result of interpretting the object as an instance of 'Collection Literal 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 interpretting the object as an instance of 'Collection Literal Part'.
See Also:
doSwitch(EObject)

caseCollectionItem

public T caseCollectionItem(CollectionItem object)
Returns the result of interpretting the object as an instance of 'Collection Item'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Collection Item'.
See Also:
doSwitch(EObject)

caseCollectionRange

public T caseCollectionRange(CollectionRange object)
Returns the result of interpretting the object as an instance of 'Collection Range'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Collection Range'.
See Also:
doSwitch(EObject)

caseTupleLiteralExp

public T caseTupleLiteralExp(TupleLiteralExp object)
Returns the result of interpretting the object as an instance of 'Tuple 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 interpretting the object as an instance of 'Tuple Literal Exp'.
See Also:
doSwitch(EObject)

caseNullLiteralExp

public T caseNullLiteralExp(NullLiteralExp object)
Returns the result of interpretting the object as an instance of 'Null 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 interpretting the object as an instance of 'Null Literal Exp'.
See Also:
doSwitch(EObject)

caseExpressionInOcl

public T caseExpressionInOcl(ExpressionInOcl object)
Returns the result of interpretting the object as an instance of 'Expression In Ocl'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Expression In Ocl'.
See Also:
doSwitch(EObject)

caseOpaqueExpression

public T caseOpaqueExpression(OpaqueExpression object)
Returns the result of interpretting the object as an instance of 'Opaque 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 interpretting the object as an instance of 'Opaque Expression'.
See Also:
doSwitch(EObject)

caseInvalidLiteralExp

public T caseInvalidLiteralExp(InvalidLiteralExp object)
Returns the result of interpretting the object as an instance of 'Invalid 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 interpretting the object as an instance of 'Invalid Literal Exp'.
See Also:
doSwitch(EObject)

caseFeaturePropertyCall

public T caseFeaturePropertyCall(FeaturePropertyCall object)
Returns the result of interpretting the object as an instance of 'Feature Property Call'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Feature Property Call'.
See Also:
doSwitch(EObject)

caseTupleLiteralPart

public T caseTupleLiteralPart(TupleLiteralPart object)
Returns the result of interpretting the object as an instance of 'Tuple Literal 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 interpretting the object as an instance of 'Tuple Literal Part'.
See Also:
doSwitch(EObject)

caseBagType

public T caseBagType(BagType object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Bag Type'.
See Also:
doSwitch(EObject)

caseCollectionType

public T caseCollectionType(CollectionType object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Collection Type'.
See Also:
doSwitch(EObject)

caseEnumLiteralExp

public T caseEnumLiteralExp(EnumLiteralExp object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Enum Literal Exp'.
See Also:
doSwitch(EObject)

caseInvalidType

public T caseInvalidType(InvalidType object)
Returns the result of interpretting the object as an instance of 'Invalid 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 interpretting the object as an instance of 'Invalid Type'.
See Also:
doSwitch(EObject)

caseOrderedSetType

public T caseOrderedSetType(OrderedSetType object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Ordered Set Type'.
See Also:
doSwitch(EObject)

caseSequenceType

public T caseSequenceType(SequenceType object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Sequence Type'.
See Also:
doSwitch(EObject)

caseSetType

public T caseSetType(SetType object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Set Type'.
See Also:
doSwitch(EObject)

caseTupleType

public T caseTupleType(TupleType object)
Returns the result of interpretting 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 interpretting the object as an instance of 'Tuple Type'.
See Also:
doSwitch(EObject)

caseVoidType

public T caseVoidType(VoidType object)
Returns the result of interpretting the object as an instance of 'Void 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 interpretting the object as an instance of 'Void Type'.
See Also:
doSwitch(EObject)

caseAnyType

public T caseAnyType(AnyType object)
Returns the result of interpretting the object as an instance of '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 interpretting the object as an instance of 'Any Type'.
See Also:
doSwitch(EObject)

caseObject

public T caseObject(Object object)
Returns the result of interpretting the object as an instance of 'Object'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Object'.
See Also:
doSwitch(EObject)

caseElement

public T caseElement(Element object)
Returns the result of interpretting the object as an instance of '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 interpretting the object as an instance of 'Element'.
See Also:
doSwitch(EObject)

caseNamedElement

public T caseNamedElement(NamedElement object)
Returns the result of interpretting the object as an instance of 'Named 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 interpretting the object as an instance of 'Named Element'.
See Also:
doSwitch(EObject)

caseTypedElement

public T caseTypedElement(TypedElement object)
Returns the result of interpretting the object as an instance of 'Typed 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 interpretting the object as an instance of 'Typed Element'.
See Also:
doSwitch(EObject)

caseType

public T caseType(Type object)
Returns the result of interpretting the object as an instance of '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 interpretting the object as an instance of 'Type'.
See Also:
doSwitch(EObject)

caseDataType

public T caseDataType(DataType object)
Returns the result of interpretting the object as an instance of 'Data 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 interpretting the object as an instance of 'Data Type'.
See Also:
doSwitch(EObject)

caseClass

public T caseClass(Class object)
Returns the result of interpretting the object as an instance of 'Class'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpretting the object as an instance of 'Class'.
See Also:
doSwitch(EObject)

defaultCase

public T defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpretting 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 interpretting the object as an instance of 'EObject'.
See Also:
doSwitch(org.eclipse.emf.ecore.EObject)