java.lang.Objectorg.eclipse.gmt.umlx.imperativeocl.util.ImperativeoclSwitch<T>
public class ImperativeoclSwitch<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.
ImperativeoclPackage
Constructor Summary | |
---|---|
ImperativeoclSwitch()
Creates an instance of the switch. |
Method Summary | |
---|---|
T |
caseAltExp(AltExp object)
Returns the result of interpretting the object as an instance of 'Alt Exp'. |
T |
caseAnonymousTupleLiteralExp(AnonymousTupleLiteralExp object)
Returns the result of interpretting the object as an instance of 'Anonymous Tuple Literal Exp'. |
T |
caseAnonymousTupleLiteralPart(AnonymousTupleLiteralPart object)
Returns the result of interpretting the object as an instance of 'Anonymous Tuple Literal Part'. |
T |
caseAnonymousTupleType(AnonymousTupleType object)
Returns the result of interpretting the object as an instance of 'Anonymous Tuple Type'. |
T |
caseAssertExp(AssertExp object)
Returns the result of interpretting the object as an instance of 'Assert Exp'. |
T |
caseAssignExp(AssignExp object)
Returns the result of interpretting the object as an instance of 'Assign Exp'. |
T |
caseBlockExp(BlockExp object)
Returns the result of interpretting the object as an instance of 'Block Exp'. |
T |
caseBreakExp(BreakExp object)
Returns the result of interpretting the object as an instance of 'Break Exp'. |
T |
caseCallExp(CallExp object)
Returns the result of interpretting the object as an instance of 'Call Exp'. |
T |
caseClass(Class object)
Returns the result of interpretting the object as an instance of 'Class'. |
T |
caseCollectionType(CollectionType object)
Returns the result of interpretting the object as an instance of 'Collection Type'. |
T |
caseComputeExp(ComputeExp object)
Returns the result of interpretting the object as an instance of 'Compute Exp'. |
T |
caseContinueExp(ContinueExp object)
Returns the result of interpretting the object as an instance of 'Continue Exp'. |
T |
caseDataType(DataType object)
Returns the result of interpretting the object as an instance of 'Data Type'. |
T |
caseDictionaryType(DictionaryType object)
Returns the result of interpretting the object as an instance of 'Dictionary Type'. |
T |
caseDictLiteralExp(DictLiteralExp object)
Returns the result of interpretting the object as an instance of 'Dict Literal Exp'. |
T |
caseDictLiteralPart(DictLiteralPart object)
Returns the result of interpretting the object as an instance of 'Dict Literal Part'. |
T |
caseElement(Element object)
Returns the result of interpretting the object as an instance of 'Element'. |
T |
caseFeaturePropertyCall(FeaturePropertyCall object)
Returns the result of interpretting the object as an instance of 'Feature Property Call'. |
T |
caseForExp(ForExp object)
Returns the result of interpretting the object as an instance of 'For Exp'. |
T |
caseImperativeExpression(ImperativeExpression object)
Returns the result of interpretting the object as an instance of 'Imperative Expression'. |
T |
caseImperativeIterateExp(ImperativeIterateExp object)
Returns the result of interpretting the object as an instance of 'Imperative Iterate Exp'. |
T |
caseImperativeLoopExp(ImperativeLoopExp object)
Returns the result of interpretting the object as an instance of 'Imperative Loop Exp'. |
T |
caseInstantiationExp(InstantiationExp object)
Returns the result of interpretting the object as an instance of 'Instantiation Exp'. |
T |
caseListType(ListType object)
Returns the result of interpretting the object as an instance of 'List Type'. |
T |
caseLiteralExp(LiteralExp object)
Returns the result of interpretting the object as an instance of 'Literal Exp'. |
T |
caseLogExp(LogExp object)
Returns the result of interpretting the object as an instance of 'Log Exp'. |
T |
caseLoopExp(LoopExp object)
Returns the result of interpretting the object as an instance of 'Loop Exp'. |
T |
caseNamedElement(NamedElement object)
Returns the result of interpretting the object as an instance of 'Named Element'. |
T |
caseObject(Object object)
Returns the result of interpretting the object as an instance of 'Object'. |
T |
caseOclExpression(OclExpression object)
Returns the result of interpretting the object as an instance of 'Ocl Expression'. |
T |
caseOperationCallExp(OperationCallExp object)
Returns the result of interpretting the object as an instance of 'Operation Call Exp'. |
T |
caseRaiseExp(RaiseExp object)
Returns the result of interpretting the object as an instance of 'Raise Exp'. |
T |
caseReturnExp(ReturnExp object)
Returns the result of interpretting the object as an instance of 'Return Exp'. |
T |
caseSwitchExp(SwitchExp object)
Returns the result of interpretting the object as an instance of 'Switch Exp'. |
T |
caseTemplateParameterType(TemplateParameterType object)
Returns the result of interpretting the object as an instance of 'Template Parameter Type'. |
T |
caseTryExp(TryExp object)
Returns the result of interpretting the object as an instance of 'Try Exp'. |
T |
caseTupleExp(TupleExp object)
Returns the result of interpretting the object as an instance of 'Tuple Exp'. |
T |
caseType(Type object)
Returns the result of interpretting the object as an instance of 'Type'. |
T |
caseTypedef(Typedef object)
Returns the result of interpretting the object as an instance of 'Typedef'. |
T |
caseTypedElement(TypedElement object)
Returns the result of interpretting the object as an instance of 'Typed Element'. |
T |
caseUnlinkExp(UnlinkExp object)
Returns the result of interpretting the object as an instance of 'Unlink Exp'. |
T |
caseUnpackExp(UnpackExp object)
Returns the result of interpretting the object as an instance of 'Unpack Exp'. |
T |
caseVariableInitExp(VariableInitExp object)
Returns the result of interpretting the object as an instance of 'Variable Init Exp'. |
T |
caseWhileExp(WhileExp object)
Returns the result of interpretting the object as an instance of 'While Exp'. |
T |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpretting the object as an instance of 'EObject'. |
T |
doSwitch(org.eclipse.emf.ecore.EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImperativeoclSwitch()
Method Detail |
---|
public T doSwitch(org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.public T caseAssignExp(AssignExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBlockExp(BlockExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseSwitchExp(SwitchExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseVariableInitExp(VariableInitExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseWhileExp(WhileExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseComputeExp(ComputeExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAltExp(AltExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseUnlinkExp(UnlinkExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseReturnExp(ReturnExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseBreakExp(BreakExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTryExp(TryExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseRaiseExp(RaiseExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseContinueExp(ContinueExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseForExp(ForExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTupleExp(TupleExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTypedef(Typedef object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInstantiationExp(InstantiationExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDictionaryType(DictionaryType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDictLiteralExp(DictLiteralExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDictLiteralPart(DictLiteralPart object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTemplateParameterType(TemplateParameterType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLogExp(LogExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAssertExp(AssertExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseImperativeLoopExp(ImperativeLoopExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseImperativeIterateExp(ImperativeIterateExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseImperativeExpression(ImperativeExpression object)
object
- the target of the switch.
doSwitch(EObject)
public T caseUnpackExp(UnpackExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAnonymousTupleType(AnonymousTupleType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAnonymousTupleLiteralExp(AnonymousTupleLiteralExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAnonymousTupleLiteralPart(AnonymousTupleLiteralPart object)
object
- the target of the switch.
doSwitch(EObject)
public T caseListType(ListType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseObject(Object object)
object
- the target of the switch.
doSwitch(EObject)
public T caseElement(Element object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNamedElement(NamedElement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTypedElement(TypedElement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseOclExpression(OclExpression object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCallExp(CallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLoopExp(LoopExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseType(Type object)
object
- the target of the switch.
doSwitch(EObject)
public T caseClass(Class object)
object
- the target of the switch.
doSwitch(EObject)
public T caseDataType(DataType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseCollectionType(CollectionType object)
object
- the target of the switch.
doSwitch(EObject)
public T caseLiteralExp(LiteralExp object)
object
- the target of the switch.
doSwitch(EObject)
public T caseFeaturePropertyCall(FeaturePropertyCall object)
object
- the target of the switch.
doSwitch(EObject)
public T caseOperationCallExp(OperationCallExp object)
object
- the target of the switch.
doSwitch(EObject)
public T defaultCase(org.eclipse.emf.ecore.EObject object)
object
- the target of the switch.
doSwitch(org.eclipse.emf.ecore.EObject)