Public Member Functions | Protected Member Functions | Static Protected Attributes
org.best.of.robotics.smachDSL.util.SmachDSLSwitch< T > Class Reference
Inheritance diagram for org.best.of.robotics.smachDSL.util.SmachDSLSwitch< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

caseActionClient (ActionClient object)
caseActionState (ActionState object)
casePrimitivePackage (PrimitivePackage object)
caseServiceClient (ServiceClient object)
caseStateMachine (StateMachine object)
caseTest (Test object)
caseTransition (Transition object)
defaultCase (EObject object)
 SmachDSLSwitch ()

Protected Member Functions

doSwitch (int classifierID, EObject theEObject)
boolean isSwitchFor (EPackage ePackage)

Static Protected Attributes

static SmachDSLPackage modelPackage

Detailed Description

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.

See also:
org.best.of.robotics.smachDSL.SmachDSLPackage

Definition at line 25 of file SmachDSLSwitch.java.


Constructor & Destructor Documentation

org.best.of.robotics.smachDSL.util.SmachDSLSwitch< T >.SmachDSLSwitch ( ) [inline]

Creates an instance of the switch.

Definition at line 41 of file SmachDSLSwitch.java.


Member Function Documentation

T org.best.of.robotics.smachDSL.util.SmachDSLSwitch< T >.caseActionClient ( ActionClient  object) [inline]

Returns the result of interpreting the object as an instance of 'Action Client'.

This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
objectthe target of the switch.
Returns:
the result of interpreting the object as an instance of 'Action Client'.
See also:
doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)

Definition at line 187 of file SmachDSLSwitch.java.

T org.best.of.robotics.smachDSL.util.SmachDSLSwitch< T >.caseActionState ( ActionState  object) [inline]

Returns the result of interpreting the object as an instance of 'Action State'.

This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
objectthe target of the switch.
Returns:
the result of interpreting the object as an instance of 'Action State'.
See also:
doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)

Definition at line 219 of file SmachDSLSwitch.java.

T org.best.of.robotics.smachDSL.util.SmachDSLSwitch< T >.casePrimitivePackage ( PrimitivePackage  object) [inline]

Returns the result of interpreting the object as an instance of 'Primitive Package'.

This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
objectthe target of the switch.
Returns:
the result of interpreting the object as an instance of 'Primitive Package'.
See also:
doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)

Definition at line 139 of file SmachDSLSwitch.java.

T org.best.of.robotics.smachDSL.util.SmachDSLSwitch< T >.caseServiceClient ( ServiceClient  object) [inline]

Returns the result of interpreting the object as an instance of 'Service Client'.

This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
objectthe target of the switch.
Returns:
the result of interpreting the object as an instance of 'Service Client'.
See also:
doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)

Definition at line 203 of file SmachDSLSwitch.java.

T org.best.of.robotics.smachDSL.util.SmachDSLSwitch< T >.caseStateMachine ( StateMachine  object) [inline]

Returns the result of interpreting the object as an instance of 'State Machine'.

This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
objectthe target of the switch.
Returns:
the result of interpreting the object as an instance of 'State Machine'.
See also:
doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)

Definition at line 171 of file SmachDSLSwitch.java.

T org.best.of.robotics.smachDSL.util.SmachDSLSwitch< T >.caseTest ( Test  object) [inline]

Returns the result of interpreting the object as an instance of 'Test'.

This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
objectthe target of the switch.
Returns:
the result of interpreting the object as an instance of 'Test'.
See also:
doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)

Definition at line 155 of file SmachDSLSwitch.java.

T org.best.of.robotics.smachDSL.util.SmachDSLSwitch< T >.caseTransition ( Transition  object) [inline]

Returns the result of interpreting the object as an instance of 'Transition'.

This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
objectthe target of the switch.
Returns:
the result of interpreting the object as an instance of 'Transition'.
See also:
doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)

Definition at line 235 of file SmachDSLSwitch.java.

T org.best.of.robotics.smachDSL.util.SmachDSLSwitch< T >.defaultCase ( EObject  object) [inline]

Returns the result of interpreting the object as an instance of 'EObject'.

This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.

Parameters:
objectthe target of the switch.
Returns:
the result of interpreting the object as an instance of 'EObject'.
See also:
doSwitch(org.eclipse.emf.ecore.EObject)

Definition at line 252 of file SmachDSLSwitch.java.

T org.best.of.robotics.smachDSL.util.SmachDSLSwitch< T >.doSwitch ( int  classifierID,
EObject  theEObject 
) [inline, protected]

Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Returns:
the first non-null result returned by a caseXXX call.

Definition at line 71 of file SmachDSLSwitch.java.

boolean org.best.of.robotics.smachDSL.util.SmachDSLSwitch< T >.isSwitchFor ( EPackage  ePackage) [inline, protected]

Checks whether this is a switch for the given package.

ePackage the package in question.

Returns:
whether this is a switch for the given package.

Definition at line 58 of file SmachDSLSwitch.java.


Member Data Documentation

SmachDSLPackage org.best.of.robotics.smachDSL.util.SmachDSLSwitch< T >.modelPackage [static, protected]

The cached model package

Definition at line 33 of file SmachDSLSwitch.java.


The documentation for this class was generated from the following file:


bride_plugin_source
Author(s): Alexander Bubeck
autogenerated on Sun Oct 5 2014 22:38:34