|
||||||||||
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>
de.cau.cs.kieler.synccharts.util.SyncchartsSwitch<T>
public class SyncchartsSwitch<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.
SyncchartsPackage
Field Summary | |
---|---|
static String |
copyright
|
protected static SyncchartsPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
SyncchartsSwitch()
Creates an instance of the switch. |
Method Summary | |
---|---|
T |
caseAction(Action object)
Returns the result of interpreting the object as an instance of 'Action'. |
T |
caseAnnotatable(Annotatable object)
Returns the result of interpreting the object as an instance of 'Annotatable'. |
T |
caseAssignment(Assignment object)
Returns the result of interpreting the object as an instance of 'Assignment'. |
T |
caseEffect(Effect object)
Returns the result of interpreting the object as an instance of 'Effect'. |
T |
caseEmission(Emission object)
Returns the result of interpreting the object as an instance of 'Emission'. |
T |
caseRegion(Region object)
Returns the result of interpreting the object as an instance of 'Region'. |
T |
caseScope(Scope object)
Returns the result of interpreting the object as an instance of 'Scope'. |
T |
caseState(State object)
Returns the result of interpreting the object as an instance of 'State'. |
T |
caseSubstitution(Substitution object)
Returns the result of interpreting the object as an instance of 'Substitution'. |
T |
caseTextEffect(TextEffect object)
Returns the result of interpreting the object as an instance of 'Text Effect'. |
T |
caseTextualCode(TextualCode object)
Returns the result of interpreting the object as an instance of 'Textual Code'. |
T |
caseTransition(Transition object)
Returns the result of interpreting the object as an instance of 'Transition'. |
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. |
protected T |
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. |
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 |
---|
public static final String copyright
protected static SyncchartsPackage modelPackage
Constructor Detail |
---|
public SyncchartsSwitch()
Method Detail |
---|
protected boolean isSwitchFor(EPackage ePackage)
isSwitchFor
in class Switch<T>
protected T doSwitch(int classifierID, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
doSwitch
in class Switch<T>
caseXXX
call.public T caseAction(Action object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAssignment(Assignment object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEffect(Effect object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEmission(Emission object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRegion(Region object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSubstitution(Substitution object)
object
- the target of the switch.
doSwitch(EObject)
public T caseState(State object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTransition(Transition object)
object
- the target of the switch.
doSwitch(EObject)
public T caseScope(Scope object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTextEffect(TextEffect object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAnnotatable(Annotatable object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTextualCode(TextualCode object)
object
- the target of the switch.
doSwitch(EObject)
public T defaultCase(EObject object)
defaultCase
in class 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 |