org.eclipse.emf.ocl.expressions.util
Class ExpressionsSwitch

java.lang.Object
  extended byorg.eclipse.emf.ocl.expressions.util.ExpressionsSwitch

public class ExpressionsSwitch
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:
ExpressionsPackage

Field Summary
static java.lang.String copyright
           
protected static ExpressionsPackage modelPackage
          The cached model package
 
Constructor Summary
ExpressionsSwitch()
          Creates an instance of the switch
 
Method Summary
 java.lang.Object caseAssociationClassCallExp(AssociationClassCallExp object)
          Returns the result of interpretting the object as an instance of 'Association Class Call Exp'
 java.lang.Object caseASTNode(ASTNode object)
          Returns the result of interpretting the object as an instance of 'AST Node'
 java.lang.Object caseBooleanLiteralExp(BooleanLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Boolean Literal Exp'
 java.lang.Object caseCallExp(CallExp object)
          Returns the result of interpretting the object as an instance of 'Call Exp'
 java.lang.Object caseCallingASTNode(CallingASTNode object)
          Returns the result of interpretting the object as an instance of 'Calling AST Node'
 java.lang.Object caseCollectionItem(CollectionItem object)
          Returns the result of interpretting the object as an instance of 'Collection Item'
 java.lang.Object caseCollectionLiteralExp(CollectionLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Collection Literal Exp'
 java.lang.Object caseCollectionLiteralPart(CollectionLiteralPart object)
          Returns the result of interpretting the object as an instance of 'Collection Literal Part'
 java.lang.Object caseCollectionRange(CollectionRange object)
          Returns the result of interpretting the object as an instance of 'Collection Range'
 java.lang.Object caseEModelElement(org.eclipse.emf.ecore.EModelElement object)
          Returns the result of interpretting the object as an instance of 'EModel Element'
 java.lang.Object caseENamedElement(org.eclipse.emf.ecore.ENamedElement object)
          Returns the result of interpretting the object as an instance of 'ENamed Element'
 java.lang.Object caseEnumLiteralExp(EnumLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Enum Literal Exp'
 java.lang.Object caseFeatureCallExp(FeatureCallExp object)
          Returns the result of interpretting the object as an instance of 'Feature Call Exp'
 java.lang.Object caseIfExp(IfExp object)
          Returns the result of interpretting the object as an instance of 'If Exp'
 java.lang.Object caseIntegerLiteralExp(IntegerLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Integer Literal Exp'
 java.lang.Object caseInvalidLiteralExp(InvalidLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Invalid Literal Exp'
 java.lang.Object caseIterateExp(IterateExp object)
          Returns the result of interpretting the object as an instance of 'Iterate Exp'
 java.lang.Object caseIteratorExp(IteratorExp object)
          Returns the result of interpretting the object as an instance of 'Iterator Exp'
 java.lang.Object caseLetExp(LetExp object)
          Returns the result of interpretting the object as an instance of 'Let Exp'
 java.lang.Object caseLiteralExp(LiteralExp object)
          Returns the result of interpretting the object as an instance of 'Literal Exp'
 java.lang.Object caseLoopExp(LoopExp object)
          Returns the result of interpretting the object as an instance of 'Loop Exp'
 java.lang.Object caseMessageExp(MessageExp object)
          Returns the result of interpretting the object as an instance of 'Message Exp'
 java.lang.Object caseNavigationCallExp(NavigationCallExp object)
          Returns the result of interpretting the object as an instance of 'Navigation Call Exp'
 java.lang.Object caseNullLiteralExp(NullLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Null Literal Exp'
 java.lang.Object caseNumericLiteralExp(NumericLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Numeric Literal Exp'
 java.lang.Object caseOCLExpression(OCLExpression object)
          Returns the result of interpretting the object as an instance of 'OCL Expression'
 java.lang.Object caseOperationCallExp(OperationCallExp object)
          Returns the result of interpretting the object as an instance of 'Operation Call Exp'
 java.lang.Object casePrimitiveLiteralExp(PrimitiveLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Primitive Literal Exp'
 java.lang.Object casePropertyCallExp(PropertyCallExp object)
          Returns the result of interpretting the object as an instance of 'Property Call Exp'
 java.lang.Object caseRealLiteralExp(RealLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Real Literal Exp'
 java.lang.Object caseStateExp(StateExp object)
          Returns the result of interpretting the object as an instance of 'State Exp'
 java.lang.Object caseStringLiteralExp(StringLiteralExp object)
          Returns the result of interpretting the object as an instance of 'String Literal Exp'
 java.lang.Object caseTupleLiteralExp(TupleLiteralExp object)
          Returns the result of interpretting the object as an instance of 'Tuple Literal Exp'
 java.lang.Object caseTupleLiteralPart(TupleLiteralPart object)
          Returns the result of interpretting the object as an instance of 'Tuple Literal Part'
 java.lang.Object caseTypedASTNode(TypedASTNode object)
          Returns the result of interpretting the object as an instance of 'Typed AST Node'
 java.lang.Object caseTypedElement(TypedElement object)
          Returns the result of interpretting the object as an instance of 'Typed Element'
 java.lang.Object caseTypeExp(TypeExp object)
          Returns the result of interpretting the object as an instance of 'Type Exp'
 java.lang.Object caseUnspecifiedValueExp(UnspecifiedValueExp object)
          Returns the result of interpretting the object as an instance of 'Unspecified Value Exp'
 java.lang.Object caseVariable(Variable object)
          Returns the result of interpretting the object as an instance of 'Variable'
 java.lang.Object caseVariableExp(VariableExp object)
          Returns the result of interpretting the object as an instance of 'Variable Exp'
 java.lang.Object caseVisitable(Visitable object)
          Returns the result of interpretting the object as an instance of 'Visitable'
 java.lang.Object defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpretting the object as an instance of 'EObject'
protected  java.lang.Object doSwitch(org.eclipse.emf.ecore.EClass theEClass, 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
 java.lang.Object 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
protected  java.lang.Object doSwitch(int classifierID, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values

modelPackage

protected static ExpressionsPackage modelPackage
The cached model package

Constructor Detail

ExpressionsSwitch

public ExpressionsSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public java.lang.Object 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.

doSwitch

protected java.lang.Object doSwitch(org.eclipse.emf.ecore.EClass theEClass,
                                    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.

doSwitch

protected java.lang.Object doSwitch(int classifierID,
                                    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.

casePropertyCallExp

public java.lang.Object 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)

caseBooleanLiteralExp

public java.lang.Object 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)

caseCollectionItem

public java.lang.Object 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)

caseCollectionLiteralExp

public java.lang.Object 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 java.lang.Object 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)

caseCollectionRange

public java.lang.Object 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)

caseIfExp

public java.lang.Object 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)

caseIntegerLiteralExp

public java.lang.Object 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)

caseIterateExp

public java.lang.Object 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)

caseIteratorExp

public java.lang.Object 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)

caseLetExp

public java.lang.Object 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)

caseLiteralExp

public java.lang.Object 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)

caseLoopExp

public java.lang.Object 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)

caseFeatureCallExp

public java.lang.Object caseFeatureCallExp(FeatureCallExp object)
Returns the result of interpretting the object as an instance of 'Feature 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 'Feature Call Exp'.
See Also:
doSwitch(EObject)

caseNavigationCallExp

public java.lang.Object caseNavigationCallExp(NavigationCallExp object)
Returns the result of interpretting the object as an instance of 'Navigation 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 'Navigation Call Exp'.
See Also:
doSwitch(EObject)

caseNumericLiteralExp

public java.lang.Object 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)

caseOperationCallExp

public java.lang.Object 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)

casePrimitiveLiteralExp

public java.lang.Object 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)

caseCallExp

public java.lang.Object 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)

caseRealLiteralExp

public java.lang.Object 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)

caseStringLiteralExp

public java.lang.Object 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)

caseTupleLiteralExp

public java.lang.Object 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)

caseTupleLiteralPart

public java.lang.Object 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)

caseUnspecifiedValueExp

public java.lang.Object caseUnspecifiedValueExp(UnspecifiedValueExp object)
Returns the result of interpretting the object as an instance of 'Unspecified Value 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 'Unspecified Value Exp'.
See Also:
doSwitch(EObject)

caseVariable

public java.lang.Object 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)

caseVariableExp

public java.lang.Object 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)

caseAssociationClassCallExp

public java.lang.Object caseAssociationClassCallExp(AssociationClassCallExp object)
Returns the result of interpretting the object as an instance of 'Association Class 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 'Association Class Call Exp'.
See Also:
doSwitch(EObject)

caseNullLiteralExp

public java.lang.Object 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)

caseInvalidLiteralExp

public java.lang.Object 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)

caseTypeExp

public java.lang.Object 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)

caseStateExp

public java.lang.Object caseStateExp(StateExp object)
Returns the result of interpretting the object as an instance of 'State 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 'State Exp'.
See Also:
doSwitch(EObject)

caseOCLExpression

public java.lang.Object 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)

caseMessageExp

public java.lang.Object caseMessageExp(MessageExp object)
Returns the result of interpretting the object as an instance of 'Message 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 'Message Exp'.
See Also:
doSwitch(EObject)

caseEnumLiteralExp

public java.lang.Object 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)

caseEModelElement

public java.lang.Object caseEModelElement(org.eclipse.emf.ecore.EModelElement object)
Returns the result of interpretting the object as an instance of 'EModel 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 'EModel Element'.
See Also:
doSwitch(EObject)

caseENamedElement

public java.lang.Object caseENamedElement(org.eclipse.emf.ecore.ENamedElement object)
Returns the result of interpretting the object as an instance of 'ENamed 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 'ENamed Element'.
See Also:
doSwitch(EObject)

caseVisitable

public java.lang.Object caseVisitable(Visitable object)
Returns the result of interpretting the object as an instance of 'Visitable'. 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 'Visitable'.
See Also:
doSwitch(EObject)

caseASTNode

public java.lang.Object caseASTNode(ASTNode object)
Returns the result of interpretting the object as an instance of 'AST Node'. 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 'AST Node'.
See Also:
doSwitch(EObject)

caseCallingASTNode

public java.lang.Object caseCallingASTNode(CallingASTNode object)
Returns the result of interpretting the object as an instance of 'Calling AST Node'. 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 'Calling AST Node'.
See Also:
doSwitch(EObject)

caseTypedElement

public java.lang.Object 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)

caseTypedASTNode

public java.lang.Object caseTypedASTNode(TypedASTNode object)
Returns the result of interpretting the object as an instance of 'Typed AST Node'. 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 AST Node'.
See Also:
doSwitch(EObject)

defaultCase

public java.lang.Object 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:
ExpressionsSwitch.doSwitch(org.eclipse.emf.ecore.EObject)

Copyright 2002, 2006 IBM Corporation and others.
All Rights Reserved.