public class TypesSwitch<T>
extends <any>
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.
TypesPackage
Modifier and Type | Field and Description |
---|---|
protected static TypesPackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
TypesSwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
T |
caseArgumentType(ArgumentType object)
Returns the result of interpreting the object as an instance of 'Argument Type'.
|
T |
caseArrayType(ArrayType object)
Returns the result of interpreting the object as an instance of 'Array Type'.
|
T |
caseCompositeType(CompositeType object)
Returns the result of interpreting the object as an instance of 'Composite Type'.
|
T |
caseCompositeVisualType(CompositeVisualType object)
Returns the result of interpreting the object as an instance of 'Composite Visual Type'.
|
T |
caseConnectionType(ConnectionType object)
Returns the result of interpreting the object as an instance of 'Connection Type'.
|
T |
caseDynamicsType(DynamicsType object)
Returns the result of interpreting the object as an instance of 'Dynamics Type'.
|
T |
caseExpressionType(ExpressionType object)
Returns the result of interpreting the object as an instance of 'Expression Type'.
|
T |
caseHTMLType(HTMLType object)
Returns the result of interpreting the object as an instance of 'HTML Type'.
|
T |
caseImageType(ImageType object)
Returns the result of interpreting the object as an instance of 'Image Type'.
|
T |
caseImportType(ImportType object)
Returns the result of interpreting the object as an instance of 'Import Type'.
|
T |
caseISynchable(ISynchable object)
Returns the result of interpreting the object as an instance of 'ISynchable'.
|
T |
caseNode(Node object)
Returns the result of interpreting the object as an instance of 'Node'.
|
T |
caseParameterType(ParameterType object)
Returns the result of interpreting the object as an instance of 'Parameter Type'.
|
T |
casePointerType(PointerType object)
Returns the result of interpreting the object as an instance of 'Pointer Type'.
|
T |
casePointType(PointType object)
Returns the result of interpreting the object as an instance of 'Point Type'.
|
T |
caseQuantityType(QuantityType object)
Returns the result of interpreting the object as an instance of 'Quantity Type'.
|
T |
caseSimpleType(SimpleType object)
Returns the result of interpreting the object as an instance of 'Simple Type'.
|
T |
caseStateVariableType(StateVariableType object)
Returns the result of interpreting the object as an instance of 'State Variable Type'.
|
T |
caseTextType(TextType object)
Returns the result of interpreting the object as an instance of 'Text Type'.
|
T |
caseType(Type object)
Returns the result of interpreting the object as an instance of 'Type'.
|
T |
caseURLType(URLType object)
Returns the result of interpreting the object as an instance of 'URL Type'.
|
T |
caseVisualType(VisualType object)
Returns the result of interpreting the object as an instance of 'Visual Type'.
|
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.
|
protected static TypesPackage modelPackage
protected boolean isSwitchFor(EPackage ePackage)
ePackage
- the package in question.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 caseType(Type object)
object
- the target of the switch.doSwitch(EObject)
public T caseVisualType(VisualType object)
object
- the target of the switch.doSwitch(EObject)
public T caseImportType(ImportType object)
object
- the target of the switch.doSwitch(EObject)
public T caseCompositeType(CompositeType object)
object
- the target of the switch.doSwitch(EObject)
public T casePointerType(PointerType object)
object
- the target of the switch.doSwitch(EObject)
public T caseQuantityType(QuantityType object)
object
- the target of the switch.doSwitch(EObject)
public T caseParameterType(ParameterType object)
object
- the target of the switch.doSwitch(EObject)
public T caseStateVariableType(StateVariableType object)
object
- the target of the switch.doSwitch(EObject)
public T caseDynamicsType(DynamicsType object)
object
- the target of the switch.doSwitch(EObject)
public T caseArgumentType(ArgumentType object)
object
- the target of the switch.doSwitch(EObject)
public T caseExpressionType(ExpressionType object)
object
- the target of the switch.doSwitch(EObject)
public T caseHTMLType(HTMLType object)
object
- the target of the switch.doSwitch(EObject)
public T caseTextType(TextType object)
object
- the target of the switch.doSwitch(EObject)
public T caseURLType(URLType object)
object
- the target of the switch.doSwitch(EObject)
public T casePointType(PointType object)
object
- the target of the switch.doSwitch(EObject)
public T caseArrayType(ArrayType object)
object
- the target of the switch.doSwitch(EObject)
public T caseCompositeVisualType(CompositeVisualType object)
object
- the target of the switch.doSwitch(EObject)
public T caseConnectionType(ConnectionType object)
object
- the target of the switch.doSwitch(EObject)
public T caseSimpleType(SimpleType object)
object
- the target of the switch.doSwitch(EObject)
public T caseImageType(ImageType object)
object
- the target of the switch.doSwitch(EObject)
public T caseISynchable(ISynchable object)
object
- the target of the switch.doSwitch(EObject)
public T caseNode(Node 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)