public class UiSwitch<T1>
extends <any>
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.
UiPackageImpl| Modifier and Type | Field and Description |
|---|---|
protected static UiPackageImpl |
modelPackage
The cached model package
|
| Constructor and Description |
|---|
UiSwitch()
Creates an instance of the switch
|
| Modifier and Type | Method and Description |
|---|---|
T1 |
caseApplicationElement(MApplicationElement object)
Returns the result of interpreting the object as an instance of 'Element'
|
T1 |
caseContext(MContext object)
Returns the result of interpreting the object as an instance of 'Context'
|
T1 |
caseContribution(MContribution object)
Returns the result of interpreting the object as an instance of 'Contribution'
|
T1 |
caseCoreExpression(MCoreExpression object)
Returns the result of interpreting the object as an instance of 'Core Expression'
|
T1 |
caseDirtyable(MDirtyable object)
Returns the result of interpreting the object as an instance of 'Dirtyable'
|
<T extends MUIElement> |
caseElementContainer(MElementContainer<T> object)
Returns the result of interpreting the object as an instance of 'Element Container'
|
T1 |
caseExpression(MExpression object)
Returns the result of interpreting the object as an instance of 'Expression'
|
<T extends MUIElement> |
caseGenericStack(MGenericStack<T> object)
Returns the result of interpreting the object as an instance of 'Generic Stack'
|
<T extends MUIElement> |
caseGenericTile(MGenericTile<T> object)
Returns the result of interpreting the object as an instance of 'Generic Tile'
|
<T extends MUIElement> |
caseGenericTrimContainer(MGenericTrimContainer<T> object)
Returns the result of interpreting the object as an instance of 'Generic Trim Container'
|
T1 |
caseImperativeExpression(MImperativeExpression object)
Returns the result of interpreting the object as an instance of 'Imperative Expression'
|
T1 |
caseLocalizable(MLocalizable object)
Returns the result of interpreting the object as an instance of 'Localizable'
|
T1 |
caseSnippetContainer(MSnippetContainer object)
Returns the result of interpreting the object as an instance of 'Snippet Container'
|
T1 |
caseUIElement(MUIElement object)
Returns the result of interpreting the object as an instance of 'UI Element'
|
T1 |
caseUILabel(MUILabel object)
Returns the result of interpreting the object as an instance of 'UI Label'
|
T1 |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'
|
protected T1 |
doSwitch(int classifierID,
EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result |
protected boolean |
isSwitchFor(EPackage ePackage)
Checks whether this is a switch for the given package
|
protected static UiPackageImpl modelPackage
protected boolean isSwitchFor(EPackage ePackage)
ePackage - the package in question.protected T1 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 T1 caseContext(MContext object)
object - the target of the switch.doSwitch(EObject)public T1 caseDirtyable(MDirtyable object)
object - the target of the switch.doSwitch(EObject)public T1 caseUIElement(MUIElement object)
object - the target of the switch.doSwitch(EObject)public <T extends MUIElement> T1 caseElementContainer(MElementContainer<T> object)
object - the target of the switch.doSwitch(EObject)public T1 caseUILabel(MUILabel object)
object - the target of the switch.doSwitch(EObject)public <T extends MUIElement> T1 caseGenericStack(MGenericStack<T> object)
object - the target of the switch.doSwitch(EObject)public <T extends MUIElement> T1 caseGenericTile(MGenericTile<T> object)
object - the target of the switch.doSwitch(EObject)public <T extends MUIElement> T1 caseGenericTrimContainer(MGenericTrimContainer<T> object)
object - the target of the switch.doSwitch(EObject)public T1 caseExpression(MExpression object)
object - the target of the switch.doSwitch(EObject)public T1 caseCoreExpression(MCoreExpression object)
object - the target of the switch.doSwitch(EObject)public T1 caseImperativeExpression(MImperativeExpression object)
object - the target of the switch.doSwitch(EObject)public T1 caseSnippetContainer(MSnippetContainer object)
object - the target of the switch.doSwitch(EObject)public T1 caseLocalizable(MLocalizable object)
object - the target of the switch.doSwitch(EObject)public T1 caseApplicationElement(MApplicationElement object)
object - the target of the switch.doSwitch(EObject)public T1 caseContribution(MContribution object)
object - the target of the switch.doSwitch(EObject)public T1 defaultCase(EObject object)
object - the target of the switch.#doSwitch(org.eclipse.emf.ecore.EObject)