|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ujf.verimag.bip.cmodel.util.CmodelSwitch
public class CmodelSwitch
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.
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 |
---|
protected static CmodelPackage modelPackage
Constructor Detail |
---|
public CmodelSwitch()
Method Detail |
---|
public java.lang.Object doSwitch(EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected java.lang.Object doSwitch(EClass theEClass, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.protected java.lang.Object doSwitch(int classifierID, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.public java.lang.Object caseCStm(CStm object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCBlock(CBlock object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCConditionalStm(CConditionalStm object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCSwitchStm(CSwitchStm object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCWhileStm(CWhileStm object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCIfStm(CIfStm object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCExpression(CExpression object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCCaseItem(CCaseItem object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCJump(CJump object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCCall(CCall object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCAssignStm(CAssignStm object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCFunctionCall(CFunctionCall object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCCreator(CCreator object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCTypedElement(CTypedElement object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCOperation(COperation object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCTypeConvertion(CTypeConvertion object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCHierarchy(CHierarchy object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCSimpleName(CSimpleName object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCIndexed(CIndexed object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCStructured(CStructured object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCPointed(CPointed object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCLiteral(CLiteral object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCModule(CModule object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCInclude(CInclude object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCEnumType(CEnumType object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCClass(CClass object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCCallable(CCallable object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCData(CData object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCArgument(CArgument object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCInitParameter(CInitParameter object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCFunction(CFunction object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCConstructor(CConstructor object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCItem(CItem object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCText(CText object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCBodyItem(CBodyItem object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCBlockStm(CBlockStm object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCNavigation(CNavigation object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCReturn(CReturn object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCInitialization(CInitialization object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCFor(CFor object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCConditionalExpression(CConditionalExpression object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object caseCHeaderText(CHeaderText object)
object
- the target of the switch.
doSwitch(EObject)
public java.lang.Object defaultCase(EObject object)
object
- the target of the switch.
#doSwitch(org.eclipse.emf.ecore.EObject)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |