|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.expressions.util.ExpressionsSwitch<T>
public class ExpressionsSwitch<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.
ExpressionsPackage
Field Summary | |
---|---|
protected static ExpressionsPackage |
modelPackage
The cached model package |
Constructor Summary | |
---|---|
ExpressionsSwitch()
Creates an instance of the switch |
Method Summary | ||
---|---|---|
|
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' |
|
|
caseBooleanLiteralExp(BooleanLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Boolean Literal Exp' |
|
|
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' |
|
|
caseCollectionItem(CollectionItem<C> object)
Returns the result of interpreting the object as an instance of 'Collection Item' |
|
|
caseCollectionLiteralExp(CollectionLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Collection Literal Exp' |
|
|
caseCollectionLiteralPart(CollectionLiteralPart<C> object)
Returns the result of interpreting the object as an instance of 'Collection Literal Part' |
|
|
caseCollectionRange(CollectionRange<C> object)
Returns the result of interpreting the object as an instance of 'Collection Range' |
|
|
caseEnumLiteralExp(EnumLiteralExp<C,EL> object)
Returns the result of interpreting the object as an instance of 'Enum Literal Exp' |
|
|
caseFeatureCallExp(FeatureCallExp<C> object)
Returns the result of interpreting the object as an instance of 'Feature Call Exp' |
|
|
caseIfExp(IfExp<C> object)
Returns the result of interpreting the object as an instance of 'If Exp' |
|
|
caseIntegerLiteralExp(IntegerLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Integer Literal Exp' |
|
|
caseInvalidLiteralExp(InvalidLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Invalid Literal Exp' |
|
|
caseIterateExp(IterateExp<C,PM> object)
Returns the result of interpreting the object as an instance of 'Iterate Exp' |
|
|
caseIteratorExp(IteratorExp<C,PM> object)
Returns the result of interpreting the object as an instance of 'Iterator Exp' |
|
|
caseLetExp(LetExp<C,PM> object)
Returns the result of interpreting the object as an instance of 'Let Exp' |
|
|
caseLiteralExp(LiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Literal Exp' |
|
|
caseLoopExp(LoopExp<C,PM> object)
Returns the result of interpreting the object as an instance of 'Loop Exp' |
|
|
caseMessageExp(MessageExp<C,COA,SSA> object)
Returns the result of interpreting the object as an instance of 'Message Exp' |
|
|
caseNavigationCallExp(NavigationCallExp<C,P> object)
Returns the result of interpreting the object as an instance of 'Navigation Call Exp' |
|
|
caseNullLiteralExp(NullLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Null Literal Exp' |
|
|
caseNumericLiteralExp(NumericLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Numeric Literal Exp' |
|
|
caseOCLExpression(OCLExpression<C> object)
Returns the result of interpreting the object as an instance of 'OCL Expression' |
|
|
caseOperationCallExp(OperationCallExp<C,O> object)
Returns the result of interpreting the object as an instance of 'Operation Call Exp' |
|
|
casePrimitiveLiteralExp(PrimitiveLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Primitive Literal Exp' |
|
|
casePropertyCallExp(PropertyCallExp<C,P> object)
Returns the result of interpreting the object as an instance of 'Property Call Exp' |
|
|
caseRealLiteralExp(RealLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Real Literal Exp' |
|
|
caseStateExp(StateExp<C,S> object)
Returns the result of interpreting the object as an instance of 'State Exp' |
|
|
caseStringLiteralExp(StringLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'String Literal Exp' |
|
|
caseTupleLiteralExp(TupleLiteralExp<C,P> object)
Returns the result of interpreting the object as an instance of 'Tuple Literal Exp' |
|
|
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' |
|
|
caseTypedElement(TypedElement<C> object)
Returns the result of interpreting the object as an instance of 'Typed Element' |
|
|
caseTypeExp(TypeExp<C> object)
Returns the result of interpreting the object as an instance of 'Type Exp' |
|
|
caseUnlimitedNaturalLiteralExp(UnlimitedNaturalLiteralExp<C> object)
Returns the result of interpreting the object as an instance of 'Unlimited Natural Literal Exp' |
|
|
caseUnspecifiedValueExp(UnspecifiedValueExp<C> object)
Returns the result of interpreting the object as an instance of 'Unspecified Value Exp' |
|
|
caseVariable(Variable<C,PM> object)
Returns the result of interpreting the object as an instance of 'Variable' |
|
|
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(EObject object)
Returns the result of interpreting the object as an instance of 'EObject' |
|
protected T |
doSwitch(EClass theEClass,
EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result |
|
T |
doSwitch(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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static ExpressionsPackage modelPackage
Constructor Detail |
---|
public ExpressionsSwitch()
Method Detail |
---|
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.protected T doSwitch(EClass theEClass, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
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(EObject object)
object
- the target of the switch.
#doSwitch(org.eclipse.emf.ecore.EObject)
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |