Class HutnSwitch<T1>
java.lang.Object
org.eclipse.epsilon.hutn.model.hutn.util.HutnSwitch<T1>
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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaseAttributeSlot
(AttributeSlot object) Returns the result of interpreting the object as an instance of 'Attribute Slot'.caseClassObject
(ClassObject object) Returns the result of interpreting the object as an instance of 'Class Object'.<T> T1
caseClassObjectSlot
(ClassObjectSlot<T> object) Returns the result of interpreting the object as an instance of 'Class Object Slot'.caseContainmentSlot
(ContainmentSlot object) Returns the result of interpreting the object as an instance of 'Containment Slot'.caseModelElement
(ModelElement object) Returns the result of interpreting the object as an instance of 'Model Element'.Returns the result of interpreting the object as an instance of 'Ns Uri'.caseObject
(Object object) Returns the result of interpreting the object as an instance of 'Object'.casePackageObject
(PackageObject object) Returns the result of interpreting the object as an instance of 'Package Object'.caseReferenceSlot
(ReferenceSlot object) Returns the result of interpreting the object as an instance of 'Reference Slot'.<T> T1
Returns the result of interpreting the object as an instance of 'Slot'.Returns the result of interpreting the object as an instance of 'Spec'.defaultCase
(org.eclipse.emf.ecore.EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected T1
doSwitch
(int classifierID, org.eclipse.emf.ecore.EObject theEObject) CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.protected T1
doSwitch
(org.eclipse.emf.ecore.EClass theEClass, org.eclipse.emf.ecore.EObject theEObject) CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.doSwitch
(org.eclipse.emf.ecore.EObject theEObject) CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.
-
Field Details
-
modelPackage
The cached model package
-
-
Constructor Details
-
HutnSwitch
public HutnSwitch()Creates an instance of the switch.
-
-
Method Details
-
doSwitch
CallscaseXXX
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.
-
doSwitch
protected T1 doSwitch(org.eclipse.emf.ecore.EClass theEClass, org.eclipse.emf.ecore.EObject theEObject) CallscaseXXX
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.
-
doSwitch
CallscaseXXX
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.
-
caseSpec
Returns the result of interpreting the object as an instance of 'Spec'. 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 'Spec'.
- See Also:
-
caseNsUri
Returns the result of interpreting the object as an instance of 'Ns Uri'. 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 'Ns Uri'.
- See Also:
-
caseModelElement
Returns the result of interpreting the object as an instance of 'Model Element'. 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 'Model Element'.
- See Also:
-
caseObject
Returns the result of interpreting the object as an instance of 'Object'. 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 'Object'.
- See Also:
-
casePackageObject
Returns the result of interpreting the object as an instance of 'Package Object'. 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 'Package Object'.
- See Also:
-
caseClassObject
Returns the result of interpreting the object as an instance of 'Class Object'. 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 'Class Object'.
- See Also:
-
caseSlot
Returns the result of interpreting the object as an instance of 'Slot'. 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 'Slot'.
- See Also:
-
caseAttributeSlot
Returns the result of interpreting the object as an instance of 'Attribute Slot'. 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 'Attribute Slot'.
- See Also:
-
caseClassObjectSlot
Returns the result of interpreting the object as an instance of 'Class Object Slot'. 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 'Class Object Slot'.
- See Also:
-
caseContainmentSlot
Returns the result of interpreting the object as an instance of 'Containment Slot'. 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 'Containment Slot'.
- See Also:
-
caseReferenceSlot
Returns the result of interpreting the object as an instance of 'Reference Slot'. 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 'Reference Slot'.
- See Also:
-
defaultCase
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:
object
- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
-