de.cau.cs.kieler.synccharts.util
Class SyncchartsSwitch<T>

java.lang.Object
  extended by org.eclipse.emf.ecore.util.Switch<T>
      extended by de.cau.cs.kieler.synccharts.util.SyncchartsSwitch<T>

public class SyncchartsSwitch<T>
extends Switch<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.

See Also:
SyncchartsPackage
Rating red
Generated:
This code was automatically generated.

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

copyright

public static final String copyright

See Also:
Constant Field Values
Generated:
This code was automatically generated.

modelPackage

protected static SyncchartsPackage modelPackage
The cached model package

Generated:
This code was automatically generated.
Constructor Detail

SyncchartsSwitch

public SyncchartsSwitch()
Creates an instance of the switch.

Generated:
This code was automatically generated.
Method Detail

isSwitchFor

protected boolean isSwitchFor(EPackage ePackage)
Checks whether this is a switch for the given package.

Specified by:
isSwitchFor in class Switch<T>
Returns:
whether this is a switch for the given package.
Generated:
This code was automatically generated.

doSwitch

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.

Overrides:
doSwitch in class Switch<T>
Returns:
the first non-null result returned by a caseXXX call.
Generated:
This code was automatically generated.

caseAction

public T caseAction(Action object)
Returns the result of interpreting the object as an instance of 'Action'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Action'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseAssignment

public T caseAssignment(Assignment object)
Returns the result of interpreting the object as an instance of 'Assignment'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Assignment'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseEffect

public T caseEffect(Effect object)
Returns the result of interpreting the object as an instance of 'Effect'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Effect'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseEmission

public T caseEmission(Emission object)
Returns the result of interpreting the object as an instance of 'Emission'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Emission'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseRegion

public T caseRegion(Region object)
Returns the result of interpreting the object as an instance of 'Region'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Region'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseSubstitution

public T caseSubstitution(Substitution object)
Returns the result of interpreting the object as an instance of 'Substitution'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Substitution'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseState

public T caseState(State object)
Returns the result of interpreting the object as an instance of 'State'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'State'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseTransition

public T caseTransition(Transition object)
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:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Transition'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseScope

public T caseScope(Scope object)
Returns the result of interpreting the object as an instance of 'Scope'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Scope'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseTextEffect

public T caseTextEffect(TextEffect object)
Returns the result of interpreting the object as an instance of 'Text Effect'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Text Effect'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseAnnotatable

public T caseAnnotatable(Annotatable object)
Returns the result of interpreting the object as an instance of 'Annotatable'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Annotatable'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

caseTextualCode

public T caseTextualCode(TextualCode object)
Returns the result of interpreting the object as an instance of 'Textual Code'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Textual Code'.
See Also:
doSwitch(EObject)
Generated:
This code was automatically generated.

defaultCase

public T defaultCase(EObject object)
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.

Overrides:
defaultCase in class Switch<T>
Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'EObject'.
See Also:
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
Generated:
This code was automatically generated.