|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecore.util.Switch<T>
org.eclipse.ocl.examples.codegen.cgmodel.util.CGModelSwitch<T>
public class CGModelSwitch<T>
The Switch for the model's inheritance hierarchy.
It supports the call doSwitch(object)
to invoke the caseXXX
method for each class of the model,
starting with the actual class of the object
and proceeding up the inheritance hierarchy
until a non-null result is returned,
which is the result of the switch.
CGModelPackage
Field Summary | |
---|---|
protected static CGModelPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
CGModelSwitch()
Creates an instance of the switch. |
Method Summary | |
---|---|
T |
caseCGAccumulator(CGAccumulator object)
Returns the result of interpreting the object as an instance of 'CG Accumulator'. |
T |
caseCGAssertNonNullExp(CGAssertNonNullExp object)
Returns the result of interpreting the object as an instance of 'CG Assert Non Null Exp'. |
T |
caseCGBoolean(CGBoolean object)
Returns the result of interpreting the object as an instance of 'CG Boolean'. |
T |
caseCGBoxExp(CGBoxExp object)
Returns the result of interpreting the object as an instance of 'CG Box Exp'. |
T |
caseCGBuiltInIterationCallExp(CGBuiltInIterationCallExp object)
Returns the result of interpreting the object as an instance of 'CG Built In Iteration Call Exp'. |
T |
caseCGCallable(CGCallable object)
Returns the result of interpreting the object as an instance of 'CG Callable'. |
T |
caseCGCallExp(CGCallExp object)
Returns the result of interpreting the object as an instance of 'CG Call Exp'. |
T |
caseCGCastExp(CGCastExp object)
Returns the result of interpreting the object as an instance of 'CG Cast Exp'. |
T |
caseCGCatchExp(CGCatchExp object)
Returns the result of interpreting the object as an instance of 'CG Catch Exp'. |
T |
caseCGClass(CGClass object)
Returns the result of interpreting the object as an instance of 'CG Class'. |
T |
caseCGCollectionExp(CGCollectionExp object)
Returns the result of interpreting the object as an instance of 'CG Collection Exp'. |
T |
caseCGCollectionPart(CGCollectionPart object)
Returns the result of interpreting the object as an instance of 'CG Collection Part'. |
T |
caseCGConstant(CGConstant object)
Returns the result of interpreting the object as an instance of 'CG Constant'. |
T |
caseCGConstantExp(CGConstantExp object)
Returns the result of interpreting the object as an instance of 'CG Constant Exp'. |
T |
caseCGConstraint(CGConstraint object)
Returns the result of interpreting the object as an instance of 'CG Constraint'. |
T |
caseCGConstructorExp(CGConstructorExp object)
Returns the result of interpreting the object as an instance of 'CG Constructor Exp'. |
T |
caseCGConstructorPart(CGConstructorPart object)
Returns the result of interpreting the object as an instance of 'CG Constructor Part'. |
T |
caseCGEcoreClassConstructorExp(CGEcoreClassConstructorExp object)
Returns the result of interpreting the object as an instance of 'CG Ecore Class Constructor Exp'. |
T |
caseCGEcoreDataTypeConstructorExp(CGEcoreDataTypeConstructorExp object)
Returns the result of interpreting the object as an instance of 'CG Ecore Data Type Constructor Exp'. |
T |
caseCGEcoreOperation(CGEcoreOperation object)
Returns the result of interpreting the object as an instance of 'CG Ecore Operation'. |
T |
caseCGEcoreOperationCallExp(CGEcoreOperationCallExp object)
Returns the result of interpreting the object as an instance of 'CG Ecore Operation Call Exp'. |
T |
caseCGEcoreOppositePropertyCallExp(CGEcoreOppositePropertyCallExp object)
Returns the result of interpreting the object as an instance of 'CG Ecore Opposite Property Call Exp'. |
T |
caseCGEcorePropertyCallExp(CGEcorePropertyCallExp object)
Returns the result of interpreting the object as an instance of 'CG Ecore Property Call Exp'. |
T |
caseCGElement(CGElement object)
Returns the result of interpreting the object as an instance of 'CG Element'. |
T |
caseCGElementId(CGElementId object)
Returns the result of interpreting the object as an instance of 'CG Element Id'. |
T |
caseCGExecutorCompositionProperty(CGExecutorCompositionProperty object)
Returns the result of interpreting the object as an instance of 'CG Executor Composition Property'. |
T |
caseCGExecutorConstructorPart(CGExecutorConstructorPart object)
Returns the result of interpreting the object as an instance of 'CG Executor Constructor Part'. |
T |
caseCGExecutorNavigationProperty(CGExecutorNavigationProperty object)
Returns the result of interpreting the object as an instance of 'CG Executor Navigation Property'. |
T |
caseCGExecutorOperation(CGExecutorOperation object)
Returns the result of interpreting the object as an instance of 'CG Executor Operation'. |
T |
caseCGExecutorOperationCallExp(CGExecutorOperationCallExp object)
Returns the result of interpreting the object as an instance of 'CG Executor Operation Call Exp'. |
T |
caseCGExecutorOppositeProperty(CGExecutorOppositeProperty object)
Returns the result of interpreting the object as an instance of 'CG Executor Opposite Property'. |
T |
caseCGExecutorOppositePropertyCallExp(CGExecutorOppositePropertyCallExp object)
Returns the result of interpreting the object as an instance of 'CG Executor Opposite Property Call Exp'. |
T |
caseCGExecutorProperty(CGExecutorProperty object)
Returns the result of interpreting the object as an instance of 'CG Executor Property'. |
T |
caseCGExecutorPropertyCallExp(CGExecutorPropertyCallExp object)
Returns the result of interpreting the object as an instance of 'CG Executor Property Call Exp'. |
T |
caseCGExecutorType(CGExecutorType object)
Returns the result of interpreting the object as an instance of 'CG Executor Type'. |
T |
caseCGFinalVariable(CGFinalVariable object)
Returns the result of interpreting the object as an instance of 'CG Final Variable'. |
T |
caseCGGuardExp(CGGuardExp object)
Returns the result of interpreting the object as an instance of 'CG Guard Exp'. |
T |
caseCGIfExp(CGIfExp object)
Returns the result of interpreting the object as an instance of 'CG If Exp'. |
T |
caseCGInteger(CGInteger object)
Returns the result of interpreting the object as an instance of 'CG Integer'. |
T |
caseCGInvalid(CGInvalid object)
Returns the result of interpreting the object as an instance of 'CG Invalid'. |
T |
caseCGIsEqualExp(CGIsEqualExp object)
Returns the result of interpreting the object as an instance of 'CG Is Equal Exp'. |
T |
caseCGIsInvalidExp(CGIsInvalidExp object)
Returns the result of interpreting the object as an instance of 'CG Is Invalid Exp'. |
T |
caseCGIsUndefinedExp(CGIsUndefinedExp object)
Returns the result of interpreting the object as an instance of 'CG Is Undefined Exp'. |
T |
caseCGIterationCallExp(CGIterationCallExp object)
Returns the result of interpreting the object as an instance of 'CG Iteration Call Exp'. |
T |
caseCGIterator(CGIterator object)
Returns the result of interpreting the object as an instance of 'CG Iterator'. |
T |
caseCGLetExp(CGLetExp object)
Returns the result of interpreting the object as an instance of 'CG Let Exp'. |
T |
caseCGLibraryIterateCallExp(CGLibraryIterateCallExp object)
Returns the result of interpreting the object as an instance of 'CG Library Iterate Call Exp'. |
T |
caseCGLibraryIterationCallExp(CGLibraryIterationCallExp object)
Returns the result of interpreting the object as an instance of 'CG Library Iteration Call Exp'. |
T |
caseCGLibraryOperation(CGLibraryOperation object)
Returns the result of interpreting the object as an instance of 'CG Library Operation'. |
T |
caseCGLibraryOperationCallExp(CGLibraryOperationCallExp object)
Returns the result of interpreting the object as an instance of 'CG Library Operation Call Exp'. |
T |
caseCGLibraryPropertyCallExp(CGLibraryPropertyCallExp object)
Returns the result of interpreting the object as an instance of 'CG Library Property Call Exp'. |
T |
caseCGLocalVariable(CGLocalVariable object)
Returns the result of interpreting the object as an instance of 'CG Local Variable'. |
T |
caseCGModel(CGModel object)
Returns the result of interpreting the object as an instance of 'CG Model'. |
T |
caseCGNamedElement(CGNamedElement object)
Returns the result of interpreting the object as an instance of 'CG Named Element'. |
T |
caseCGNavigationCallExp(CGNavigationCallExp object)
Returns the result of interpreting the object as an instance of 'CG Navigation Call Exp'. |
T |
caseCGNull(CGNull object)
Returns the result of interpreting the object as an instance of 'CG Null'. |
T |
caseCGNumber(CGNumber object)
Returns the result of interpreting the object as an instance of 'CG Number'. |
T |
caseCGOperation(CGOperation object)
Returns the result of interpreting the object as an instance of 'CG Operation'. |
T |
caseCGOperationCallExp(CGOperationCallExp object)
Returns the result of interpreting the object as an instance of 'CG Operation Call Exp'. |
T |
caseCGOppositePropertyCallExp(CGOppositePropertyCallExp object)
Returns the result of interpreting the object as an instance of 'CG Opposite Property Call Exp'. |
T |
caseCGPackage(CGPackage object)
Returns the result of interpreting the object as an instance of 'CG Package'. |
T |
caseCGParameter(CGParameter object)
Returns the result of interpreting the object as an instance of 'CG Parameter'. |
T |
caseCGProperty(CGProperty object)
Returns the result of interpreting the object as an instance of 'CG Property'. |
T |
caseCGPropertyCallExp(CGPropertyCallExp object)
Returns the result of interpreting the object as an instance of 'CG Property Call Exp'. |
T |
caseCGReal(CGReal object)
Returns the result of interpreting the object as an instance of 'CG Real'. |
T |
caseCGSettableVariable(CGSettableVariable object)
Returns the result of interpreting the object as an instance of 'CG Settable Variable'. |
T |
caseCGString(CGString object)
Returns the result of interpreting the object as an instance of 'CG String'. |
T |
caseCGText(CGText object)
Returns the result of interpreting the object as an instance of 'CG Text'. |
T |
caseCGTextParameter(CGTextParameter object)
Returns the result of interpreting the object as an instance of 'CG Text Parameter'. |
T |
caseCGThrowExp(CGThrowExp object)
Returns the result of interpreting the object as an instance of 'CG Throw Exp'. |
T |
caseCGTupleExp(CGTupleExp object)
Returns the result of interpreting the object as an instance of 'CG Tuple Exp'. |
T |
caseCGTuplePart(CGTuplePart object)
Returns the result of interpreting the object as an instance of 'CG Tuple Part'. |
T |
caseCGTuplePartCallExp(CGTuplePartCallExp object)
Returns the result of interpreting the object as an instance of 'CG Tuple Part Call Exp'. |
T |
caseCGTypedElement(CGTypedElement object)
Returns the result of interpreting the object as an instance of 'CG Typed Element'. |
T |
caseCGTypeExp(CGTypeExp object)
Returns the result of interpreting the object as an instance of 'CG Type Exp'. |
T |
caseCGTypeId(CGTypeId object)
Returns the result of interpreting the object as an instance of 'CG Type Id'. |
T |
caseCGUnboxExp(CGUnboxExp object)
Returns the result of interpreting the object as an instance of 'CG Unbox Exp'. |
T |
caseCGUnlimited(CGUnlimited object)
Returns the result of interpreting the object as an instance of 'CG Unlimited'. |
T |
caseCGValuedElement(CGValuedElement object)
Returns the result of interpreting the object as an instance of 'CG Valued Element'. |
T |
caseCGVariable(CGVariable object)
Returns the result of interpreting the object as an instance of 'CG Variable'. |
T |
caseCGVariableExp(CGVariableExp object)
Returns the result of interpreting the object as an instance of 'CG Variable Exp'. |
T |
caseNameable(Nameable object)
Returns the result of interpreting the object as an instance of 'Nameable'. |
T |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. |
protected T |
doSwitch(int classifierID,
org.eclipse.emf.ecore.EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result. |
protected boolean |
isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
Checks whether this is a switch for the given package. |
Methods inherited from class org.eclipse.emf.ecore.util.Switch |
---|
doSwitch, doSwitch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static CGModelPackage modelPackage
Constructor Detail |
---|
public CGModelSwitch()
Method Detail |
---|
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
isSwitchFor
in class org.eclipse.emf.ecore.util.Switch<T>
protected T doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
doSwitch
in class org.eclipse.emf.ecore.util.Switch<T>
caseXXX
call.public T caseCGAccumulator(CGAccumulator object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGAssertNonNullExp(CGAssertNonNullExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGBoolean(CGBoolean object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGBoxExp(CGBoxExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGBuiltInIterationCallExp(CGBuiltInIterationCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGCallable(CGCallable object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGClass(CGClass object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGCallExp(CGCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGCastExp(CGCastExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGCatchExp(CGCatchExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGCollectionExp(CGCollectionExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGCollectionPart(CGCollectionPart object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGConstant(CGConstant object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGFinalVariable(CGFinalVariable object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGGuardExp(CGGuardExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGEcoreOperationCallExp(CGEcoreOperationCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGEcoreOppositePropertyCallExp(CGEcoreOppositePropertyCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGEcorePropertyCallExp(CGEcorePropertyCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGInteger(CGInteger object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGInvalid(CGInvalid object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGIsEqualExp(CGIsEqualExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGIsInvalidExp(CGIsInvalidExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGIsUndefinedExp(CGIsUndefinedExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGIterationCallExp(CGIterationCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGIterator(CGIterator object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGLibraryOperationCallExp(CGLibraryOperationCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGLibraryPropertyCallExp(CGLibraryPropertyCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGConstantExp(CGConstantExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGConstraint(CGConstraint object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGConstructorExp(CGConstructorExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGConstructorPart(CGConstructorPart object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGEcoreClassConstructorExp(CGEcoreClassConstructorExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGEcoreDataTypeConstructorExp(CGEcoreDataTypeConstructorExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGEcoreOperation(CGEcoreOperation object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGLetExp(CGLetExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGLibraryIterateCallExp(CGLibraryIterateCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGLibraryIterationCallExp(CGLibraryIterationCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGLibraryOperation(CGLibraryOperation object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGLocalVariable(CGLocalVariable object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGModel(CGModel object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGElement(CGElement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGElementId(CGElementId object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGExecutorCompositionProperty(CGExecutorCompositionProperty object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGExecutorConstructorPart(CGExecutorConstructorPart object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGExecutorNavigationProperty(CGExecutorNavigationProperty object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGExecutorOppositeProperty(CGExecutorOppositeProperty object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGExecutorOperation(CGExecutorOperation object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGExecutorOperationCallExp(CGExecutorOperationCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGExecutorOppositePropertyCallExp(CGExecutorOppositePropertyCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGExecutorProperty(CGExecutorProperty object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGExecutorPropertyCallExp(CGExecutorPropertyCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGExecutorType(CGExecutorType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGIfExp(CGIfExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGNamedElement(CGNamedElement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGNavigationCallExp(CGNavigationCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGNull(CGNull object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGNumber(CGNumber object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGOperation(CGOperation object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGOperationCallExp(CGOperationCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGOppositePropertyCallExp(CGOppositePropertyCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGPackage(CGPackage object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGParameter(CGParameter object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGProperty(CGProperty object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGPropertyCallExp(CGPropertyCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGReal(CGReal object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGSettableVariable(CGSettableVariable object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGString(CGString object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGText(CGText object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGTextParameter(CGTextParameter object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGThrowExp(CGThrowExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGTupleExp(CGTupleExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGTuplePart(CGTuplePart object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGTuplePartCallExp(CGTuplePartCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGTypeId(CGTypeId object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGTypeExp(CGTypeExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGTypedElement(CGTypedElement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGUnboxExp(CGUnboxExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGUnlimited(CGUnlimited object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGValuedElement(CGValuedElement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGVariable(CGVariable object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCGVariableExp(CGVariableExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNameable(Nameable object)
object
- the target of the switch.
doSwitch(EObject)
public T defaultCase(org.eclipse.emf.ecore.EObject object)
defaultCase
in class org.eclipse.emf.ecore.util.Switch<T>
object
- the target of the switch.
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |