|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.etrice.generator.etricegen.util.ETriceGenSwitch<T>
public class ETriceGenSwitch<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.
ETriceGenPackage
Field Summary | |
---|---|
protected static ETriceGenPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
ETriceGenSwitch()
Creates an instance of the switch. |
Method Summary | |
---|---|
T |
caseActiveTrigger(ActiveTrigger object)
Returns the result of interpreting the object as an instance of 'Active Trigger'. |
T |
caseActorClass(ActorClass object)
Returns the result of interpreting the object as an instance of 'Actor Class'. |
T |
caseActorContainerClass(ActorContainerClass object)
Returns the result of interpreting the object as an instance of 'Actor Container Class'. |
T |
caseActorInstance(ActorInstance object)
Returns the result of interpreting the object as an instance of 'Actor Instance'. |
T |
caseBindingInstance(BindingInstance object)
Returns the result of interpreting the object as an instance of 'Binding Instance'. |
T |
caseConnectionInstance(ConnectionInstance object)
Returns the result of interpreting the object as an instance of 'Connection Instance'. |
T |
caseExpandedActorClass(ExpandedActorClass object)
Returns the result of interpreting the object as an instance of 'Expanded Actor Class'. |
T |
caseIDiagnostician(IDiagnostician object)
Returns the result of interpreting the object as an instance of 'IDiagnostician'. |
T |
caseInstanceBase(InstanceBase object)
Returns the result of interpreting the object as an instance of 'Instance Base'. |
T |
caseInterfaceItemInstance(InterfaceItemInstance object)
Returns the result of interpreting the object as an instance of 'Interface Item Instance'. |
T |
caseITransitionChainVisitor(ITransitionChainVisitor object)
Returns the result of interpreting the object as an instance of 'ITransition Chain Visitor'. |
T |
casePortInstance(PortInstance object)
Returns the result of interpreting the object as an instance of 'Port Instance'. |
T |
caseRoomClass(RoomClass object)
Returns the result of interpreting the object as an instance of 'Class'. |
T |
caseRoot(Root object)
Returns the result of interpreting the object as an instance of 'Root'. |
T |
caseSAPInstance(SAPInstance object)
Returns the result of interpreting the object as an instance of 'SAP Instance'. |
T |
caseServiceImplInstance(ServiceImplInstance object)
Returns the result of interpreting the object as an instance of 'Service Impl Instance'. |
T |
caseSPPInstance(SPPInstance object)
Returns the result of interpreting the object as an instance of 'SPP Instance'. |
T |
caseStructureClass(StructureClass object)
Returns the result of interpreting the object as an instance of 'Structure Class'. |
T |
caseStructureInstance(StructureInstance object)
Returns the result of interpreting the object as an instance of 'Structure Instance'. |
T |
caseSubSystemInstance(SubSystemInstance object)
Returns the result of interpreting the object as an instance of 'Sub System Instance'. |
T |
caseTransitionChain(TransitionChain object)
Returns the result of interpreting the object as an instance of 'Transition Chain'. |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static ETriceGenPackage modelPackage
Constructor Detail |
---|
public ETriceGenSwitch()
Method Detail |
---|
protected boolean isSwitchFor(EPackage ePackage)
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.
caseXXX
call.public T caseRoot(Root object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInstanceBase(InstanceBase object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStructureInstance(StructureInstance object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSubSystemInstance(SubSystemInstance object)
object
- the target of the switch.
doSwitch(EObject)
public T caseActorInstance(ActorInstance object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInterfaceItemInstance(InterfaceItemInstance object)
object
- the target of the switch.
doSwitch(EObject)
public T casePortInstance(PortInstance object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBindingInstance(BindingInstance object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSAPInstance(SAPInstance object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSPPInstance(SPPInstance object)
object
- the target of the switch.
doSwitch(EObject)
public T caseServiceImplInstance(ServiceImplInstance object)
object
- the target of the switch.
doSwitch(EObject)
public T caseConnectionInstance(ConnectionInstance object)
object
- the target of the switch.
doSwitch(EObject)
public T caseActiveTrigger(ActiveTrigger object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTransitionChain(TransitionChain object)
object
- the target of the switch.
doSwitch(EObject)
public T caseITransitionChainVisitor(ITransitionChainVisitor object)
object
- the target of the switch.
doSwitch(EObject)
public T caseIDiagnostician(IDiagnostician object)
object
- the target of the switch.
doSwitch(EObject)
public T caseExpandedActorClass(ExpandedActorClass object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRoomClass(RoomClass object)
object
- the target of the switch.
doSwitch(EObject)
public T caseStructureClass(StructureClass object)
object
- the target of the switch.
doSwitch(EObject)
public T caseActorContainerClass(ActorContainerClass object)
object
- the target of the switch.
doSwitch(EObject)
public T caseActorClass(ActorClass object)
object
- the target of the switch.
doSwitch(EObject)
public T defaultCase(EObject object)
object
- the target of the switch.
#doSwitch(org.eclipse.emf.ecore.EObject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |