public class GenModelSwitch<T>
extends org.eclipse.emf.ecore.util.Switch<T>
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.
GenModelPackage
Modifier and Type | Field and Description |
---|---|
protected static GenModelPackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
GenModelSwitch()
Creates an instance of the switch
|
Modifier and Type | Method and Description |
---|---|
T |
caseGenBase(GenBase object)
Returns the result of interpreting the object as an instance of 'Gen Base'
|
T |
caseGenClass(GenClass object)
Returns the result of interpreting the object as an instance of 'Gen Class'
|
T |
caseGenClassifier(GenClassifier object)
Returns the result of interpreting the object as an instance of 'Gen Classifier'
|
T |
caseGenDataType(GenDataType object)
Returns the result of interpreting the object as an instance of 'Gen Data Type'
|
T |
caseGenEnum(GenEnum object)
Returns the result of interpreting the object as an instance of 'Gen Enum'
|
T |
caseGenEnumLiteral(GenEnumLiteral object)
Returns the result of interpreting the object as an instance of 'Gen Enum Literal'
|
T |
caseGenFeature(GenFeature object)
Returns the result of interpreting the object as an instance of 'Gen Feature'
|
T |
caseGenModel_GenBase(org.eclipse.emf.codegen.ecore.genmodel.GenBase object)
Returns the result of interpreting the object as an instance of 'Gen Base'
|
T |
caseGenModel_GenClass(org.eclipse.emf.codegen.ecore.genmodel.GenClass object)
Returns the result of interpreting the object as an instance of 'Gen Class'
|
T |
caseGenModel_GenClassifier(org.eclipse.emf.codegen.ecore.genmodel.GenClassifier object)
Returns the result of interpreting the object as an instance of 'Gen Classifier'
|
T |
caseGenModel_GenDataType(org.eclipse.emf.codegen.ecore.genmodel.GenDataType object)
Returns the result of interpreting the object as an instance of 'Gen Data Type'
|
T |
caseGenModel_GenEnum(org.eclipse.emf.codegen.ecore.genmodel.GenEnum object)
Returns the result of interpreting the object as an instance of 'Gen Enum'
|
T |
caseGenModel_GenEnumLiteral(org.eclipse.emf.codegen.ecore.genmodel.GenEnumLiteral object)
Returns the result of interpreting the object as an instance of 'Gen Enum Literal'
|
T |
caseGenModel_GenFeature(org.eclipse.emf.codegen.ecore.genmodel.GenFeature object)
Returns the result of interpreting the object as an instance of 'Gen Feature'
|
T |
caseGenModel_GenModel(org.eclipse.emf.codegen.ecore.genmodel.GenModel object)
Returns the result of interpreting the object as an instance of 'Gen Model'
|
T |
caseGenModel_GenOperation(org.eclipse.emf.codegen.ecore.genmodel.GenOperation object)
Returns the result of interpreting the object as an instance of 'Gen Operation'
|
T |
caseGenModel_GenPackage(org.eclipse.emf.codegen.ecore.genmodel.GenPackage object)
Returns the result of interpreting the object as an instance of 'Gen Package'
|
T |
caseGenModel_GenParameter(org.eclipse.emf.codegen.ecore.genmodel.GenParameter object)
Returns the result of interpreting the object as an instance of 'Gen Parameter'
|
T |
caseGenModel_GenTypedElement(org.eclipse.emf.codegen.ecore.genmodel.GenTypedElement object)
Returns the result of interpreting the object as an instance of 'Gen Typed Element'
|
T |
caseGenModel(GenModel object)
Returns the result of interpreting the object as an instance of 'Gen Model'
|
T |
caseGenOperation(GenOperation object)
Returns the result of interpreting the object as an instance of 'Gen Operation'
|
T |
caseGenPackage(GenPackage object)
Returns the result of interpreting the object as an instance of 'Gen Package'
|
T |
caseGenParameter(GenParameter object)
Returns the result of interpreting the object as an instance of 'Gen Parameter'
|
T |
caseGenTypedElement(GenTypedElement object)
Returns the result of interpreting the object as an instance of 'Gen Typed Element'
|
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
|
protected static GenModelPackage modelPackage
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
isSwitchFor
in class org.eclipse.emf.ecore.util.Switch<T>
ePackage
- the package in question.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 caseGenBase(GenBase object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenClass(GenClass object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenClassifier(GenClassifier object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenDataType(GenDataType object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenEnum(GenEnum object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenEnumLiteral(GenEnumLiteral object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenFeature(GenFeature object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenModel(GenModel object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenOperation(GenOperation object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenPackage(GenPackage object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenParameter(GenParameter object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenTypedElement(GenTypedElement object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenModel_GenBase(org.eclipse.emf.codegen.ecore.genmodel.GenBase object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenModel_GenClassifier(org.eclipse.emf.codegen.ecore.genmodel.GenClassifier object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenModel_GenClass(org.eclipse.emf.codegen.ecore.genmodel.GenClass object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenModel_GenDataType(org.eclipse.emf.codegen.ecore.genmodel.GenDataType object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenModel_GenEnum(org.eclipse.emf.codegen.ecore.genmodel.GenEnum object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenModel_GenEnumLiteral(org.eclipse.emf.codegen.ecore.genmodel.GenEnumLiteral object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenModel_GenTypedElement(org.eclipse.emf.codegen.ecore.genmodel.GenTypedElement object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenModel_GenFeature(org.eclipse.emf.codegen.ecore.genmodel.GenFeature object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenModel_GenModel(org.eclipse.emf.codegen.ecore.genmodel.GenModel object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenModel_GenOperation(org.eclipse.emf.codegen.ecore.genmodel.GenOperation object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenModel_GenPackage(org.eclipse.emf.codegen.ecore.genmodel.GenPackage object)
object
- the target of the switch.doSwitch(EObject)
public T caseGenModel_GenParameter(org.eclipse.emf.codegen.ecore.genmodel.GenParameter 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)