ujf.verimag.bip.cmodel.util
Class CmodelSwitch

java.lang.Object
  extended by ujf.verimag.bip.cmodel.util.CmodelSwitch

public class CmodelSwitch
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:
CmodelPackage

Field Summary
protected static CmodelPackage modelPackage
          The cached model package
 
Constructor Summary
CmodelSwitch()
          Creates an instance of the switch.
 
Method Summary
 java.lang.Object caseCArgument(CArgument object)
          Returns the result of interpreting the object as an instance of 'CArgument'.
 java.lang.Object caseCAssignStm(CAssignStm object)
          Returns the result of interpreting the object as an instance of 'CAssign Stm'.
 java.lang.Object caseCBlock(CBlock object)
          Returns the result of interpreting the object as an instance of 'CBlock'.
 java.lang.Object caseCBlockStm(CBlockStm object)
          Returns the result of interpreting the object as an instance of 'CBlock Stm'.
 java.lang.Object caseCBodyItem(CBodyItem object)
          Returns the result of interpreting the object as an instance of 'CBody Item'.
 java.lang.Object caseCCall(CCall object)
          Returns the result of interpreting the object as an instance of 'CCall'.
 java.lang.Object caseCCallable(CCallable object)
          Returns the result of interpreting the object as an instance of 'CCallable'.
 java.lang.Object caseCCaseItem(CCaseItem object)
          Returns the result of interpreting the object as an instance of 'CCase Item'.
 java.lang.Object caseCClass(CClass object)
          Returns the result of interpreting the object as an instance of 'CClass'.
 java.lang.Object caseCConditionalExpression(CConditionalExpression object)
          Returns the result of interpreting the object as an instance of 'CConditional Expression'.
 java.lang.Object caseCConditionalStm(CConditionalStm object)
          Returns the result of interpreting the object as an instance of 'CConditional Stm'.
 java.lang.Object caseCConstructor(CConstructor object)
          Returns the result of interpreting the object as an instance of 'CConstructor'.
 java.lang.Object caseCCreator(CCreator object)
          Returns the result of interpreting the object as an instance of 'CCreator'.
 java.lang.Object caseCData(CData object)
          Returns the result of interpreting the object as an instance of 'CData'.
 java.lang.Object caseCEnumType(CEnumType object)
          Returns the result of interpreting the object as an instance of 'CEnum Type'.
 java.lang.Object caseCExpression(CExpression object)
          Returns the result of interpreting the object as an instance of 'CExpression'.
 java.lang.Object caseCFor(CFor object)
          Returns the result of interpreting the object as an instance of 'CFor'.
 java.lang.Object caseCFunction(CFunction object)
          Returns the result of interpreting the object as an instance of 'CFunction'.
 java.lang.Object caseCFunctionCall(CFunctionCall object)
          Returns the result of interpreting the object as an instance of 'CFunction Call'.
 java.lang.Object caseCHeaderText(CHeaderText object)
          Returns the result of interpreting the object as an instance of 'CHeader Text'.
 java.lang.Object caseCHierarchy(CHierarchy object)
          Returns the result of interpreting the object as an instance of 'CHierarchy'.
 java.lang.Object caseCIfStm(CIfStm object)
          Returns the result of interpreting the object as an instance of 'CIf Stm'.
 java.lang.Object caseCInclude(CInclude object)
          Returns the result of interpreting the object as an instance of 'CInclude'.
 java.lang.Object caseCIndexed(CIndexed object)
          Returns the result of interpreting the object as an instance of 'CIndexed'.
 java.lang.Object caseCInitialization(CInitialization object)
          Returns the result of interpreting the object as an instance of 'CInitialization'.
 java.lang.Object caseCInitParameter(CInitParameter object)
          Returns the result of interpreting the object as an instance of 'CInit Parameter'.
 java.lang.Object caseCItem(CItem object)
          Returns the result of interpreting the object as an instance of 'CItem'.
 java.lang.Object caseCJump(CJump object)
          Returns the result of interpreting the object as an instance of 'CJump'.
 java.lang.Object caseCLiteral(CLiteral object)
          Returns the result of interpreting the object as an instance of 'CLiteral'.
 java.lang.Object caseCModule(CModule object)
          Returns the result of interpreting the object as an instance of 'CModule'.
 java.lang.Object caseCNavigation(CNavigation object)
          Returns the result of interpreting the object as an instance of 'CNavigation'.
 java.lang.Object caseCOperation(COperation object)
          Returns the result of interpreting the object as an instance of 'COperation'.
 java.lang.Object caseCPointed(CPointed object)
          Returns the result of interpreting the object as an instance of 'CPointed'.
 java.lang.Object caseCReturn(CReturn object)
          Returns the result of interpreting the object as an instance of 'CReturn'.
 java.lang.Object caseCSimpleName(CSimpleName object)
          Returns the result of interpreting the object as an instance of 'CSimple Name'.
 java.lang.Object caseCStm(CStm object)
          Returns the result of interpreting the object as an instance of 'CStm'.
 java.lang.Object caseCStructured(CStructured object)
          Returns the result of interpreting the object as an instance of 'CStructured'.
 java.lang.Object caseCSwitchStm(CSwitchStm object)
          Returns the result of interpreting the object as an instance of 'CSwitch Stm'.
 java.lang.Object caseCText(CText object)
          Returns the result of interpreting the object as an instance of 'CText'.
 java.lang.Object caseCTypeConvertion(CTypeConvertion object)
          Returns the result of interpreting the object as an instance of 'CType Convertion'.
 java.lang.Object caseCTypedElement(CTypedElement object)
          Returns the result of interpreting the object as an instance of 'CTyped Element'.
 java.lang.Object caseCWhileStm(CWhileStm object)
          Returns the result of interpreting the object as an instance of 'CWhile Stm'.
 java.lang.Object defaultCase(EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'.
protected  java.lang.Object doSwitch(EClass theEClass, 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(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, 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

modelPackage

protected static CmodelPackage modelPackage
The cached model package

Constructor Detail

CmodelSwitch

public CmodelSwitch()
Creates an instance of the switch.

Method Detail

doSwitch

public java.lang.Object doSwitch(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(EClass theEClass,
                                    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,
                                    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.

caseCStm

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

caseCBlock

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

caseCConditionalStm

public java.lang.Object caseCConditionalStm(CConditionalStm object)
Returns the result of interpreting the object as an instance of 'CConditional Stm'. 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 'CConditional Stm'.
See Also:
doSwitch(EObject)

caseCSwitchStm

public java.lang.Object caseCSwitchStm(CSwitchStm object)
Returns the result of interpreting the object as an instance of 'CSwitch Stm'. 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 'CSwitch Stm'.
See Also:
doSwitch(EObject)

caseCWhileStm

public java.lang.Object caseCWhileStm(CWhileStm object)
Returns the result of interpreting the object as an instance of 'CWhile Stm'. 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 'CWhile Stm'.
See Also:
doSwitch(EObject)

caseCIfStm

public java.lang.Object caseCIfStm(CIfStm object)
Returns the result of interpreting the object as an instance of 'CIf Stm'. 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 'CIf Stm'.
See Also:
doSwitch(EObject)

caseCExpression

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

caseCCaseItem

public java.lang.Object caseCCaseItem(CCaseItem object)
Returns the result of interpreting the object as an instance of 'CCase 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 interpreting the object as an instance of 'CCase Item'.
See Also:
doSwitch(EObject)

caseCJump

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

caseCCall

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

caseCAssignStm

public java.lang.Object caseCAssignStm(CAssignStm object)
Returns the result of interpreting the object as an instance of 'CAssign Stm'. 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 'CAssign Stm'.
See Also:
doSwitch(EObject)

caseCFunctionCall

public java.lang.Object caseCFunctionCall(CFunctionCall object)
Returns the result of interpreting the object as an instance of 'CFunction 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 interpreting the object as an instance of 'CFunction Call'.
See Also:
doSwitch(EObject)

caseCCreator

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

caseCTypedElement

public java.lang.Object caseCTypedElement(CTypedElement object)
Returns the result of interpreting the object as an instance of 'CTyped 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 'CTyped Element'.
See Also:
doSwitch(EObject)

caseCOperation

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

caseCTypeConvertion

public java.lang.Object caseCTypeConvertion(CTypeConvertion object)
Returns the result of interpreting the object as an instance of 'CType Convertion'. 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 'CType Convertion'.
See Also:
doSwitch(EObject)

caseCHierarchy

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

caseCSimpleName

public java.lang.Object caseCSimpleName(CSimpleName object)
Returns the result of interpreting the object as an instance of 'CSimple Name'. 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 'CSimple Name'.
See Also:
doSwitch(EObject)

caseCIndexed

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

caseCStructured

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

caseCPointed

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

caseCLiteral

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

caseCModule

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

caseCInclude

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

caseCEnumType

public java.lang.Object caseCEnumType(CEnumType object)
Returns the result of interpreting the object as an instance of 'CEnum 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 'CEnum Type'.
See Also:
doSwitch(EObject)

caseCClass

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

caseCCallable

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

caseCData

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

caseCArgument

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

caseCInitParameter

public java.lang.Object caseCInitParameter(CInitParameter object)
Returns the result of interpreting the object as an instance of 'CInit 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 'CInit Parameter'.
See Also:
doSwitch(EObject)

caseCFunction

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

caseCConstructor

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

caseCItem

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

caseCText

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

caseCBodyItem

public java.lang.Object caseCBodyItem(CBodyItem object)
Returns the result of interpreting the object as an instance of 'CBody 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 interpreting the object as an instance of 'CBody Item'.
See Also:
doSwitch(EObject)

caseCBlockStm

public java.lang.Object caseCBlockStm(CBlockStm object)
Returns the result of interpreting the object as an instance of 'CBlock Stm'. 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 'CBlock Stm'.
See Also:
doSwitch(EObject)

caseCNavigation

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

caseCReturn

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

caseCInitialization

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

caseCFor

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

caseCConditionalExpression

public java.lang.Object caseCConditionalExpression(CConditionalExpression object)
Returns the result of interpreting the object as an instance of 'CConditional 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 'CConditional Expression'.
See Also:
doSwitch(EObject)

caseCHeaderText

public java.lang.Object caseCHeaderText(CHeaderText object)
Returns the result of interpreting the object as an instance of 'CHeader Text'. 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 'CHeader Text'.
See Also:
doSwitch(EObject)

defaultCase

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