public class ImperativeOCLSwitch<T> extends Object
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 and Description |
---|
ImperativeOCLSwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
T |
caseAltExp(AltExp object)
Returns the result of interpreting the object as an instance of 'Alt Exp'.
|
T |
caseAssertExp(AssertExp object)
Returns the result of interpreting the object as an instance of 'Assert Exp'.
|
T |
caseAssignExp(AssignExp object)
Returns the result of interpreting the object as an instance of 'Assign Exp'.
|
T |
caseASTNode(ASTNode object)
Returns the result of interpreting the object as an instance of 'AST Node'.
|
T |
caseBlockExp(BlockExp object)
Returns the result of interpreting the object as an instance of 'Block Exp'.
|
T |
caseBreakExp(BreakExp object)
Returns the result of interpreting the object as an instance of 'Break Exp'.
|
<C> T |
caseCallExp(CallExp<C> object)
Returns the result of interpreting the object as an instance of 'Call Exp'.
|
T |
caseCallingASTNode(CallingASTNode object)
Returns the result of interpreting the object as an instance of 'Calling AST Node'.
|
T |
caseCatchExp(CatchExp object)
Returns the result of interpreting the object as an instance of 'Catch Exp'.
|
<C,O> T |
caseCollectionType(CollectionType<C,O> object)
Returns the result of interpreting the object as an instance of 'Collection Type'.
|
T |
caseComputeExp(ComputeExp object)
Returns the result of interpreting the object as an instance of 'Compute Exp'.
|
T |
caseContinueExp(ContinueExp object)
Returns the result of interpreting the object as an instance of 'Continue Exp'.
|
T |
caseDictionaryType(DictionaryType object)
Returns the result of interpreting the object as an instance of 'Dictionary Type'.
|
T |
caseDictLiteralExp(DictLiteralExp object)
Returns the result of interpreting the object as an instance of 'Dict Literal Exp'.
|
T |
caseDictLiteralPart(DictLiteralPart object)
Returns the result of interpreting the object as an instance of 'Dict Literal Part'.
|
T |
caseEClass(EClass object)
Returns the result of interpreting the object as an instance of 'EClass'.
|
T |
caseEClassifier(EClassifier object)
Returns the result of interpreting the object as an instance of 'EClassifier'.
|
T |
caseEcore_CallExp(CallExp object)
Returns the result of interpreting the object as an instance of 'Call Exp'.
|
T |
caseEcore_CollectionType(CollectionType object)
Returns the result of interpreting the object as an instance of 'Collection Type'.
|
T |
caseEcore_FeatureCallExp(FeatureCallExp object)
Returns the result of interpreting the object as an instance of 'Feature Call Exp'.
|
T |
caseEcore_LiteralExp(LiteralExp object)
Returns the result of interpreting the object as an instance of 'Literal Exp'.
|
T |
caseEcore_LoopExp(LoopExp object)
Returns the result of interpreting the object as an instance of 'Loop Exp'.
|
T |
caseEcore_OCLExpression(OCLExpression object)
Returns the result of interpreting the object as an instance of 'OCL Expression'.
|
T |
caseEcore_OperationCallExp(OperationCallExp object)
Returns the result of interpreting the object as an instance of 'Operation Call Exp'.
|
T |
caseEDataType(EDataType object)
Returns the result of interpreting the object as an instance of 'EData Type'.
|
T |
caseEModelElement(EModelElement object)
Returns the result of interpreting the object as an instance of 'EModel Element'.
|
T |
caseENamedElement(ENamedElement object)
Returns the result of interpreting the object as an instance of 'ENamed Element'.
|
T |
caseETypedElement(ETypedElement object)
Returns the result of interpreting the object as an instance of 'ETyped Element'.
|
<C> T |
caseFeatureCallExp(FeatureCallExp<C> object)
Returns the result of interpreting the object as an instance of 'Feature Call Exp'.
|
T |
caseForExp(ForExp object)
Returns the result of interpreting the object as an instance of 'For Exp'.
|
T |
caseImperativeExpression(ImperativeExpression object)
Returns the result of interpreting the object as an instance of 'Imperative Expression'.
|
T |
caseImperativeIterateExp(ImperativeIterateExp object)
Returns the result of interpreting the object as an instance of 'Imperative Iterate Exp'.
|
T |
caseImperativeLoopExp(ImperativeLoopExp object)
Returns the result of interpreting the object as an instance of 'Imperative Loop Exp'.
|
T |
caseInstantiationExp(InstantiationExp object)
Returns the result of interpreting the object as an instance of 'Instantiation Exp'.
|
T |
caseListLiteralExp(ListLiteralExp object)
Returns the result of interpreting the object as an instance of 'List Literal Exp'.
|
T |
caseListType(ListType object)
Returns the result of interpreting the object as an instance of 'List Type'.
|
<C> T |
caseLiteralExp(LiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Literal Exp'.
|
T |
caseLogExp(LogExp object)
Returns the result of interpreting the object as an instance of 'Log Exp'.
|
<C,PM> T |
caseLoopExp(LoopExp<C,PM> object)
Returns the result of interpreting the object as an instance of 'Loop Exp'.
|
<C> T |
caseOCLExpression(OCLExpression<C> object)
Returns the result of interpreting the object as an instance of 'OCL Expression'.
|
<C,O> T |
caseOperationCallExp(OperationCallExp<C,O> object)
Returns the result of interpreting the object as an instance of 'Operation Call Exp'.
|
T |
caseOrderedTupleLiteralExp(OrderedTupleLiteralExp object)
Returns the result of interpreting the object as an instance of 'Ordered Tuple Literal Exp'.
|
T |
caseOrderedTupleLiteralPart(OrderedTupleLiteralPart object)
Returns the result of interpreting the object as an instance of 'Ordered Tuple Literal Part'.
|
T |
caseOrderedTupleType(OrderedTupleType object)
Returns the result of interpreting the object as an instance of 'Ordered Tuple Type'.
|
<O> T |
casePredefinedType(PredefinedType<O> object)
Returns the result of interpreting the object as an instance of 'Predefined Type'.
|
T |
caseRaiseExp(RaiseExp object)
Returns the result of interpreting the object as an instance of 'Raise Exp'.
|
T |
caseReturnExp(ReturnExp object)
Returns the result of interpreting the object as an instance of 'Return Exp'.
|
T |
caseSwitchExp(SwitchExp object)
Returns the result of interpreting the object as an instance of 'Switch Exp'.
|
T |
caseTryExp(TryExp object)
Returns the result of interpreting the object as an instance of 'Try Exp'.
|
T |
caseTypedASTNode(TypedASTNode object)
Returns the result of interpreting the object as an instance of 'Typed AST Node'.
|
T |
caseTypedef(Typedef object)
Returns the result of interpreting the object as an instance of 'Typedef'.
|
<C> T |
caseTypedElement(TypedElement<C> object)
Returns the result of interpreting the object as an instance of 'Typed Element'.
|
T |
caseUnlinkExp(UnlinkExp object)
Returns the result of interpreting the object as an instance of 'Unlink Exp'.
|
T |
caseUnpackExp(UnpackExp object)
Returns the result of interpreting the object as an instance of 'Unpack Exp'.
|
T |
caseVariableInitExp(VariableInitExp object)
Returns the result of interpreting the object as an instance of 'Variable Init Exp'.
|
T |
caseVisitable(Visitable object)
Returns the result of interpreting the object as an instance of 'Visitable'.
|
T |
caseWhileExp(WhileExp object)
Returns the result of interpreting the object as an instance of 'While Exp'.
|
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
T |
doSwitch(EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result. |
public ImperativeOCLSwitch()
public T doSwitch(EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.public T caseAltExp(AltExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseAssertExp(AssertExp object)
object
- the target of the switch.doSwitch(EObject)
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 caseBreakExp(BreakExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseCatchExp(CatchExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseComputeExp(ComputeExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseContinueExp(ContinueExp 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 caseDictionaryType(DictionaryType object)
object
- the target of the switch.doSwitch(EObject)
public T caseForExp(ForExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseImperativeExpression(ImperativeExpression object)
object
- the target of the switch.doSwitch(EObject)
public T caseImperativeIterateExp(ImperativeIterateExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseImperativeLoopExp(ImperativeLoopExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseInstantiationExp(InstantiationExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseListLiteralExp(ListLiteralExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseListType(ListType object)
object
- the target of the switch.doSwitch(EObject)
public T caseLogExp(LogExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseOrderedTupleLiteralExp(OrderedTupleLiteralExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseOrderedTupleLiteralPart(OrderedTupleLiteralPart object)
object
- the target of the switch.doSwitch(EObject)
public T caseOrderedTupleType(OrderedTupleType object)
object
- the target of the switch.doSwitch(EObject)
public T caseRaiseExp(RaiseExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseReturnExp(ReturnExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseSwitchExp(SwitchExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseTryExp(TryExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseTypedef(Typedef object)
object
- the target of the switch.doSwitch(EObject)
public T caseUnlinkExp(UnlinkExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseUnpackExp(UnpackExp 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 caseEModelElement(EModelElement object)
object
- the target of the switch.doSwitch(EObject)
public T caseENamedElement(ENamedElement object)
object
- the target of the switch.doSwitch(EObject)
public T caseETypedElement(ETypedElement object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseTypedElement(TypedElement<C> object)
object
- the target of the switch.doSwitch(EObject)
public T caseVisitable(Visitable object)
object
- the target of the switch.doSwitch(EObject)
public T caseASTNode(ASTNode object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseOCLExpression(OCLExpression<C> object)
object
- the target of the switch.doSwitch(EObject)
public T caseEcore_OCLExpression(OCLExpression object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseLiteralExp(LiteralExp<C> object)
object
- the target of the switch.doSwitch(EObject)
public T caseEcore_LiteralExp(LiteralExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseEClassifier(EClassifier object)
object
- the target of the switch.doSwitch(EObject)
public T caseEDataType(EDataType object)
object
- the target of the switch.doSwitch(EObject)
public <O> T casePredefinedType(PredefinedType<O> object)
object
- the target of the switch.doSwitch(EObject)
public T caseTypedASTNode(TypedASTNode object)
object
- the target of the switch.doSwitch(EObject)
public <C,O> T caseCollectionType(CollectionType<C,O> object)
object
- the target of the switch.doSwitch(EObject)
public T caseEcore_CollectionType(CollectionType object)
object
- the target of the switch.doSwitch(EObject)
public T caseCallingASTNode(CallingASTNode object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseCallExp(CallExp<C> object)
object
- the target of the switch.doSwitch(EObject)
public T caseEcore_CallExp(CallExp object)
object
- the target of the switch.doSwitch(EObject)
public <C,PM> T caseLoopExp(LoopExp<C,PM> object)
object
- the target of the switch.doSwitch(EObject)
public T caseEcore_LoopExp(LoopExp object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseFeatureCallExp(FeatureCallExp<C> object)
object
- the target of the switch.doSwitch(EObject)
public T caseEcore_FeatureCallExp(FeatureCallExp object)
object
- the target of the switch.doSwitch(EObject)
public <C,O> T caseOperationCallExp(OperationCallExp<C,O> object)
object
- the target of the switch.doSwitch(EObject)
public T caseEcore_OperationCallExp(OperationCallExp object)
object
- the target of the switch.doSwitch(EObject)
public T caseEClass(EClass 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)
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.