public class AutomatonSwitch<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.
AutomatonPackage| Modifier and Type | Field and Description |
|---|---|
protected static AutomatonPackage |
modelPackage
The cached model package
|
| Constructor and Description |
|---|
AutomatonSwitch()
Creates an instance of the switch.
|
| Modifier and Type | Method and Description |
|---|---|
T |
caseAutomaton(Automaton object)
Returns the result of interpreting the object as an instance of 'Automaton'.
|
T |
caseEpsilonTransition(EpsilonTransition object)
Returns the result of interpreting the object as an instance of 'Epsilon Transition'.
|
T |
caseEventToken(EventToken object)
Returns the result of interpreting the object as an instance of 'Event Token'.
|
T |
caseFinalState(FinalState object)
Returns the result of interpreting the object as an instance of 'Final State'.
|
T |
caseGuard(Guard object)
Returns the result of interpreting the object as an instance of 'Guard'.
|
T |
caseHoldsFor(HoldsFor object)
Returns the result of interpreting the object as an instance of 'Holds For'.
|
T |
caseInitState(InitState object)
Returns the result of interpreting the object as an instance of 'Init State'.
|
T |
caseInternalModel(InternalModel object)
Returns the result of interpreting the object as an instance of 'Internal Model'.
|
T |
caseNegativeTransition(NegativeTransition object)
Returns the result of interpreting the object as an instance of 'Negative Transition'.
|
T |
caseParameter(Parameter object)
Returns the result of interpreting the object as an instance of 'Parameter'.
|
T |
caseParameterBinding(ParameterBinding object)
Returns the result of interpreting the object as an instance of 'Parameter Binding'.
|
T |
caseParameterTable(ParameterTable object)
Returns the result of interpreting the object as an instance of 'Parameter Table'.
|
T |
caseState(State object)
Returns the result of interpreting the object as an instance of 'State'.
|
T |
caseTimedZone(TimedZone object)
Returns the result of interpreting the object as an instance of 'Timed Zone'.
|
T |
caseTransition(Transition object)
Returns the result of interpreting the object as an instance of 'Transition'.
|
T |
caseTrapState(TrapState object)
Returns the result of interpreting the object as an instance of 'Trap State'.
|
T |
caseTypedTransition(TypedTransition object)
Returns the result of interpreting the object as an instance of 'Typed Transition'.
|
T |
caseWithin(Within object)
Returns the result of interpreting the object as an instance of 'Within'.
|
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 AutomatonPackage modelPackage
public AutomatonSwitch()
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 caseInternalModel(InternalModel object)
object - the target of the switch.doSwitch(EObject)public T caseAutomaton(Automaton object)
object - the target of the switch.doSwitch(EObject)public T caseEventToken(EventToken object)
object - the target of the switch.doSwitch(EObject)public T caseState(State object)
object - the target of the switch.doSwitch(EObject)public T caseInitState(InitState object)
object - the target of the switch.doSwitch(EObject)public T caseFinalState(FinalState object)
object - the target of the switch.doSwitch(EObject)public T caseTrapState(TrapState object)
object - the target of the switch.doSwitch(EObject)public T caseTransition(Transition object)
object - the target of the switch.doSwitch(EObject)public T caseTypedTransition(TypedTransition object)
object - the target of the switch.doSwitch(EObject)public T caseNegativeTransition(NegativeTransition object)
object - the target of the switch.doSwitch(EObject)public T caseEpsilonTransition(EpsilonTransition object)
object - the target of the switch.doSwitch(EObject)public T caseGuard(Guard object)
object - the target of the switch.doSwitch(EObject)public T caseTimedZone(TimedZone object)
object - the target of the switch.doSwitch(EObject)public T caseWithin(Within object)
object - the target of the switch.doSwitch(EObject)public T caseHoldsFor(HoldsFor object)
object - the target of the switch.doSwitch(EObject)public T caseParameter(Parameter object)
object - the target of the switch.doSwitch(EObject)public T caseParameterTable(ParameterTable object)
object - the target of the switch.doSwitch(EObject)public T caseParameterBinding(ParameterBinding 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)