public class OopSwitch<T> extends Switch<T>
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.
OopPackage
Constructor and Description |
---|
OopSwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
T |
caseANY_DERIVED(ANY_DERIVED object)
Returns the result of interpreting the object as an instance of 'ANY DERIVED'.
|
T |
caseANY(ANY object)
Returns the result of interpreting the object as an instance of 'ANY'.
|
T |
caseGetAccessor(GetAccessor object)
Returns the result of interpreting the object as an instance of 'Get Accessor'.
|
T |
caseInheritance(Inheritance object)
Returns the result of interpreting the object as an instance of 'Inheritance'.
|
T |
caseInterface(Interface object)
Returns the result of interpreting the object as an instance of 'Interface'.
|
T |
caseMethod(Method object)
Returns the result of interpreting the object as an instance of 'Method'.
|
T |
caseMethodSignature(MethodSignature object)
Returns the result of interpreting the object as an instance of 'Method Signature'.
|
T |
caseProperty(Property object)
Returns the result of interpreting the object as an instance of 'Property'.
|
T |
casePropertySignature(PropertySignature object)
Returns the result of interpreting the object as an instance of 'Property Signature'.
|
T |
caseSetAccessor(SetAccessor object)
Returns the result of interpreting the object as an instance of 'Set Accessor'.
|
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
public OopSwitch()
public T caseInterface(Interface object)
object
- the target of the switch.doSwitch(EObject)
public T caseInheritance(Inheritance object)
object
- the target of the switch.doSwitch(EObject)
public T caseProperty(Property object)
object
- the target of the switch.doSwitch(EObject)
public T casePropertySignature(PropertySignature object)
object
- the target of the switch.doSwitch(EObject)
public T caseSetAccessor(SetAccessor object)
object
- the target of the switch.doSwitch(EObject)
public T caseGetAccessor(GetAccessor object)
object
- the target of the switch.doSwitch(EObject)
public T caseMethod(Method object)
object
- the target of the switch.doSwitch(EObject)
public T caseMethodSignature(MethodSignature object)
object
- the target of the switch.doSwitch(EObject)
public T caseANY(ANY object)
object
- the target of the switch.doSwitch(EObject)
public T caseANY_DERIVED(ANY_DERIVED object)
object
- the target of the switch.doSwitch(EObject)
public T defaultCase(EObject object)
defaultCase
in class Switch<T>
object
- the target of the switch.Switch.doSwitch(org.eclipse.emf.ecore.EObject)