public class ExpressionsSwitch<T>
extends org.eclipse.emf.ecore.util.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.
ExpressionsPackage
Modifier and Type | Field and Description |
---|---|
protected static ExpressionsPackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
ExpressionsSwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
<C,P> T |
caseAssociationClassCallExp(AssociationClassCallExp<C,P> object)
Returns the result of interpreting the object as an instance of 'Association Class Call Exp'.
|
T |
caseASTNode(ASTNode object)
Returns the result of interpreting the object as an instance of 'AST Node'.
|
<C> T |
caseBooleanLiteralExp(BooleanLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Boolean Literal 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'.
|
<C> T |
caseCollectionItem(CollectionItem<C> object)
Returns the result of interpreting the object as an instance of 'Collection Item'.
|
<C> T |
caseCollectionLiteralExp(CollectionLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Collection Literal Exp'.
|
<C> T |
caseCollectionLiteralPart(CollectionLiteralPart<C> object)
Returns the result of interpreting the object as an instance of 'Collection Literal Part'.
|
<C> T |
caseCollectionRange(CollectionRange<C> object)
Returns the result of interpreting the object as an instance of 'Collection Range'.
|
<C,EL> T |
caseEnumLiteralExp(EnumLiteralExp<C,EL> object)
Returns the result of interpreting the object as an instance of 'Enum Literal Exp'.
|
<C> T |
caseFeatureCallExp(FeatureCallExp<C> object)
Returns the result of interpreting the object as an instance of 'Feature Call Exp'.
|
<C> T |
caseIfExp(IfExp<C> object)
Returns the result of interpreting the object as an instance of 'If Exp'.
|
<C> T |
caseIntegerLiteralExp(IntegerLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Integer Literal Exp'.
|
<C> T |
caseInvalidLiteralExp(InvalidLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Invalid Literal Exp'.
|
<C,PM> T |
caseIterateExp(IterateExp<C,PM> object)
Returns the result of interpreting the object as an instance of 'Iterate Exp'.
|
<C,PM> T |
caseIteratorExp(IteratorExp<C,PM> object)
Returns the result of interpreting the object as an instance of 'Iterator Exp'.
|
<C,PM> T |
caseLetExp(LetExp<C,PM> object)
Returns the result of interpreting the object as an instance of 'Let Exp'.
|
<C> T |
caseLiteralExp(LiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Literal Exp'.
|
<C,PM> T |
caseLoopExp(LoopExp<C,PM> object)
Returns the result of interpreting the object as an instance of 'Loop Exp'.
|
<C,COA,SSA> |
caseMessageExp(MessageExp<C,COA,SSA> object)
Returns the result of interpreting the object as an instance of 'Message Exp'.
|
<C,P> T |
caseNavigationCallExp(NavigationCallExp<C,P> object)
Returns the result of interpreting the object as an instance of 'Navigation Call Exp'.
|
<C> T |
caseNullLiteralExp(NullLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Null Literal Exp'.
|
<C> T |
caseNumericLiteralExp(NumericLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Numeric Literal 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'.
|
<C> T |
casePrimitiveLiteralExp(PrimitiveLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Primitive Literal Exp'.
|
<C,P> T |
casePropertyCallExp(PropertyCallExp<C,P> object)
Returns the result of interpreting the object as an instance of 'Property Call Exp'.
|
<C> T |
caseRealLiteralExp(RealLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Real Literal Exp'.
|
<C,S> T |
caseStateExp(StateExp<C,S> object)
Returns the result of interpreting the object as an instance of 'State Exp'.
|
<C> T |
caseStringLiteralExp(StringLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'String Literal Exp'.
|
<C,P> T |
caseTupleLiteralExp(TupleLiteralExp<C,P> object)
Returns the result of interpreting the object as an instance of 'Tuple Literal Exp'.
|
<C,P> T |
caseTupleLiteralPart(TupleLiteralPart<C,P> object)
Returns the result of interpreting the object as an instance of 'Tuple Literal Part'.
|
T |
caseTypedASTNode(TypedASTNode object)
Returns the result of interpreting the object as an instance of 'Typed AST Node'.
|
<C> T |
caseTypedElement(TypedElement<C> object)
Returns the result of interpreting the object as an instance of 'Typed Element'.
|
<C> T |
caseTypeExp(TypeExp<C> object)
Returns the result of interpreting the object as an instance of 'Type Exp'.
|
<C> T |
caseUnlimitedNaturalLiteralExp(UnlimitedNaturalLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Unlimited Natural Literal Exp'.
|
<C> T |
caseUnspecifiedValueExp(UnspecifiedValueExp<C> object)
Returns the result of interpreting the object as an instance of 'Unspecified Value Exp'.
|
<C,PM> T |
caseVariable(Variable<C,PM> object)
Returns the result of interpreting the object as an instance of 'Variable'.
|
<C,PM> T |
caseVariableExp(VariableExp<C,PM> object)
Returns the result of interpreting the object as an instance of 'Variable Exp'.
|
T |
caseVisitable(Visitable object)
Returns the result of interpreting the object as an instance of 'Visitable'.
|
T |
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
protected T |
doSwitch(int classifierID,
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. |
protected boolean |
isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
Checks whether this is a switch for the given package.
|
protected static ExpressionsPackage modelPackage
public ExpressionsSwitch()
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)
isSwitchFor
in class org.eclipse.emf.ecore.util.Switch<T>
ePackage
- the package in question.protected T doSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
doSwitch
in class org.eclipse.emf.ecore.util.Switch<T>
caseXXX
call.public <C,P> T caseAssociationClassCallExp(AssociationClassCallExp<C,P> object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseBooleanLiteralExp(BooleanLiteralExp<C> 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 <C> T caseCollectionItem(CollectionItem<C> object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseCollectionLiteralExp(CollectionLiteralExp<C> object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseCollectionLiteralPart(CollectionLiteralPart<C> object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseCollectionRange(CollectionRange<C> object)
object
- the target of the switch.doSwitch(EObject)
public <C,EL> T caseEnumLiteralExp(EnumLiteralExp<C,EL> 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 <C> T caseIfExp(IfExp<C> object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseIntegerLiteralExp(IntegerLiteralExp<C> object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseUnlimitedNaturalLiteralExp(UnlimitedNaturalLiteralExp<C> object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseInvalidLiteralExp(InvalidLiteralExp<C> object)
object
- the target of the switch.doSwitch(EObject)
public <C,PM> T caseIterateExp(IterateExp<C,PM> object)
object
- the target of the switch.doSwitch(EObject)
public <C,PM> T caseIteratorExp(IteratorExp<C,PM> object)
object
- the target of the switch.doSwitch(EObject)
public <C,PM> T caseLetExp(LetExp<C,PM> 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 <C,PM> T caseLoopExp(LoopExp<C,PM> object)
object
- the target of the switch.doSwitch(EObject)
public <C,COA,SSA> T caseMessageExp(MessageExp<C,COA,SSA> object)
object
- the target of the switch.doSwitch(EObject)
public <C,P> T caseNavigationCallExp(NavigationCallExp<C,P> object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseNullLiteralExp(NullLiteralExp<C> object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseNumericLiteralExp(NumericLiteralExp<C> 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 <C,O> T caseOperationCallExp(OperationCallExp<C,O> object)
object
- the target of the switch.doSwitch(EObject)
public <C> T casePrimitiveLiteralExp(PrimitiveLiteralExp<C> object)
object
- the target of the switch.doSwitch(EObject)
public <C,P> T casePropertyCallExp(PropertyCallExp<C,P> object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseRealLiteralExp(RealLiteralExp<C> object)
object
- the target of the switch.doSwitch(EObject)
public <C,S> T caseStateExp(StateExp<C,S> object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseStringLiteralExp(StringLiteralExp<C> object)
object
- the target of the switch.doSwitch(EObject)
public <C,P> T caseTupleLiteralExp(TupleLiteralExp<C,P> object)
object
- the target of the switch.doSwitch(EObject)
public <C,P> T caseTupleLiteralPart(TupleLiteralPart<C,P> object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseTypeExp(TypeExp<C> object)
object
- the target of the switch.doSwitch(EObject)
public <C> T caseUnspecifiedValueExp(UnspecifiedValueExp<C> object)
object
- the target of the switch.doSwitch(EObject)
public <C,PM> T caseVariable(Variable<C,PM> object)
object
- the target of the switch.doSwitch(EObject)
public <C,PM> T caseVariableExp(VariableExp<C,PM> 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 T caseCallingASTNode(CallingASTNode object)
object
- the target of the switch.doSwitch(EObject)
public T caseTypedASTNode(TypedASTNode object)
object
- the target of the switch.doSwitch(EObject)
public T defaultCase(org.eclipse.emf.ecore.EObject object)
defaultCase
in class org.eclipse.emf.ecore.util.Switch<T>
object
- the target of the switch.Switch.doSwitch(org.eclipse.emf.ecore.EObject)