public class EMFPatternLanguageSwitch<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.
EMFPatternLanguagePackage
Modifier and Type | Field and Description |
---|---|
protected static EMFPatternLanguagePackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
EMFPatternLanguageSwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
T |
caseClassType(ClassType object)
Returns the result of interpreting the object as an instance of 'Class Type'.
|
T |
caseConstraint(Constraint object)
Returns the result of interpreting the object as an instance of 'Constraint'.
|
T |
caseEClassifierConstraint(EClassifierConstraint object)
Returns the result of interpreting the object as an instance of 'EClassifier Constraint'.
|
T |
caseEntityType(EntityType object)
Returns the result of interpreting the object as an instance of 'Entity Type'.
|
T |
caseEnumValue(EnumValue object)
Returns the result of interpreting the object as an instance of 'Enum Value'.
|
T |
caseExpression(Expression object)
Returns the result of interpreting the object as an instance of 'Expression'.
|
T |
casePackageImport(PackageImport object)
Returns the result of interpreting the object as an instance of 'Package Import'.
|
T |
casePatternImport(PatternImport object)
Returns the result of interpreting the object as an instance of 'Pattern Import'.
|
T |
casePatternLanguage_PatternModel(PatternModel object)
Returns the result of interpreting the object as an instance of 'Pattern Model'.
|
T |
casePatternModel(PatternModel object)
Returns the result of interpreting the object as an instance of 'Pattern Model'.
|
T |
caseReferenceType(ReferenceType object)
Returns the result of interpreting the object as an instance of 'Reference Type'.
|
T |
caseRelationType(RelationType object)
Returns the result of interpreting the object as an instance of 'Relation Type'.
|
T |
caseType(Type object)
Returns the result of interpreting the object as an instance of 'Type'.
|
T |
caseValueReference(ValueReference object)
Returns the result of interpreting the object as an instance of 'Value Reference'.
|
T |
caseXImportSection(XImportSection object)
Returns the result of interpreting the object as an instance of 'XImport Section'.
|
T |
caseXtype_XImportSection(org.eclipse.xtext.xtype.XImportSection object)
Returns the result of interpreting the object as an instance of 'XImport Section'.
|
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 EMFPatternLanguagePackage modelPackage
public EMFPatternLanguageSwitch()
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 caseXImportSection(XImportSection object)
object
- the target of the switch.doSwitch(EObject)
public T casePackageImport(PackageImport object)
object
- the target of the switch.doSwitch(EObject)
public T casePatternImport(PatternImport object)
object
- the target of the switch.doSwitch(EObject)
public T caseEClassifierConstraint(EClassifierConstraint object)
object
- the target of the switch.doSwitch(EObject)
public T caseEnumValue(EnumValue object)
object
- the target of the switch.doSwitch(EObject)
public T casePatternModel(PatternModel object)
object
- the target of the switch.doSwitch(EObject)
public T caseClassType(ClassType object)
object
- the target of the switch.doSwitch(EObject)
public T caseReferenceType(ReferenceType object)
object
- the target of the switch.doSwitch(EObject)
public T caseXtype_XImportSection(org.eclipse.xtext.xtype.XImportSection object)
object
- the target of the switch.doSwitch(EObject)
public T caseConstraint(Constraint object)
object
- the target of the switch.doSwitch(EObject)
public T caseExpression(Expression object)
object
- the target of the switch.doSwitch(EObject)
public T caseValueReference(ValueReference object)
object
- the target of the switch.doSwitch(EObject)
public T casePatternLanguage_PatternModel(PatternModel object)
object
- the target of the switch.doSwitch(EObject)
public T caseType(Type object)
object
- the target of the switch.doSwitch(EObject)
public T caseEntityType(EntityType object)
object
- the target of the switch.doSwitch(EObject)
public T caseRelationType(RelationType 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)