public class CSTSwitch<T>
extends <any>
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.
CSTPackage| Modifier and Type | Field and Description |
|---|---|
protected static CSTPackage |
modelPackage
The cached model package
|
| Constructor and Description |
|---|
CSTSwitch()
Creates an instance of the switch.
|
| Modifier and Type | Method and Description |
|---|---|
T |
caseBooleanLiteralExpCS(BooleanLiteralExpCS object)
Returns the result of interpreting the object as an instance of 'Boolean Literal Exp CS'.
|
T |
caseCallExpCS(CallExpCS object)
Returns the result of interpreting the object as an instance of 'Call Exp CS'.
|
T |
caseClassifierContextDeclCS(ClassifierContextDeclCS object)
Returns the result of interpreting the object as an instance of 'Classifier Context Decl CS'.
|
T |
caseCollectionLiteralExpCS(CollectionLiteralExpCS object)
Returns the result of interpreting the object as an instance of 'Collection Literal Exp CS'.
|
T |
caseCollectionLiteralPartCS(CollectionLiteralPartCS object)
Returns the result of interpreting the object as an instance of 'Collection Literal Part CS'.
|
T |
caseCollectionRangeCS(CollectionRangeCS object)
Returns the result of interpreting the object as an instance of 'Collection Range CS'.
|
T |
caseCollectionTypeCS(CollectionTypeCS object)
Returns the result of interpreting the object as an instance of 'Collection Type CS'.
|
T |
caseContextDeclCS(ContextDeclCS object)
Returns the result of interpreting the object as an instance of 'Context Decl CS'.
|
T |
caseCSTNode(CSTNode object)
Returns the result of interpreting the object as an instance of 'Node'.
|
T |
caseDefCS(DefCS object)
Returns the result of interpreting the object as an instance of 'Def CS'.
|
T |
caseDefExpressionCS(DefExpressionCS object)
Returns the result of interpreting the object as an instance of 'Def Expression CS'.
|
T |
caseDerValueCS(DerValueCS object)
Returns the result of interpreting the object as an instance of 'Der Value CS'.
|
T |
caseFeatureCallExpCS(FeatureCallExpCS object)
Returns the result of interpreting the object as an instance of 'Feature Call Exp CS'.
|
T |
caseIfExpCS(IfExpCS object)
Returns the result of interpreting the object as an instance of 'If Exp CS'.
|
T |
caseInitOrDerValueCS(InitOrDerValueCS object)
Returns the result of interpreting the object as an instance of 'Init Or Der Value CS'.
|
T |
caseInitValueCS(InitValueCS object)
Returns the result of interpreting the object as an instance of 'Init Value CS'.
|
T |
caseIntegerLiteralExpCS(IntegerLiteralExpCS object)
Returns the result of interpreting the object as an instance of 'Integer Literal Exp CS'.
|
T |
caseInvalidLiteralExpCS(InvalidLiteralExpCS object)
Returns the result of interpreting the object as an instance of 'Invalid Literal Exp CS'.
|
T |
caseInvCS(InvCS object)
Returns the result of interpreting the object as an instance of 'Inv CS'.
|
T |
caseInvOrDefCS(InvOrDefCS object)
Returns the result of interpreting the object as an instance of 'Inv Or Def CS'.
|
T |
caseIsMarkedPreCS(IsMarkedPreCS object)
Returns the result of interpreting the object as an instance of 'Is Marked Pre CS'.
|
T |
caseIterateExpCS(IterateExpCS object)
Returns the result of interpreting the object as an instance of 'Iterate Exp CS'.
|
T |
caseIteratorExpCS(IteratorExpCS object)
Returns the result of interpreting the object as an instance of 'Iterator Exp CS'.
|
T |
caseLetExpCS(LetExpCS object)
Returns the result of interpreting the object as an instance of 'Let Exp CS'.
|
T |
caseLiteralExpCS(LiteralExpCS object)
Returns the result of interpreting the object as an instance of 'Literal Exp CS'.
|
T |
caseLoopExpCS(LoopExpCS object)
Returns the result of interpreting the object as an instance of 'Loop Exp CS'.
|
T |
caseMessageExpCS(MessageExpCS object)
Returns the result of interpreting the object as an instance of 'Message Exp CS'.
|
T |
caseNullLiteralExpCS(NullLiteralExpCS object)
Returns the result of interpreting the object as an instance of 'Null Literal Exp CS'.
|
T |
caseOCLDocumentCS(OCLDocumentCS object)
Returns the result of interpreting the object as an instance of 'OCL Document CS'.
|
T |
caseOCLExpressionCS(OCLExpressionCS object)
Returns the result of interpreting the object as an instance of 'OCL Expression CS'.
|
T |
caseOCLMessageArgCS(OCLMessageArgCS object)
Returns the result of interpreting the object as an instance of 'OCL Message Arg CS'.
|
T |
caseOperationCallExpCS(OperationCallExpCS object)
Returns the result of interpreting the object as an instance of 'Operation Call Exp CS'.
|
T |
caseOperationContextDeclCS(OperationContextDeclCS object)
Returns the result of interpreting the object as an instance of 'Operation Context Decl CS'.
|
T |
caseOperationCS(OperationCS object)
Returns the result of interpreting the object as an instance of 'Operation CS'.
|
T |
casePackageDeclarationCS(PackageDeclarationCS object)
Returns the result of interpreting the object as an instance of 'Package Declaration CS'.
|
T |
casePathNameCS(PathNameCS object)
Returns the result of interpreting the object as an instance of 'Path Name CS'.
|
T |
casePrePostOrBodyDeclCS(PrePostOrBodyDeclCS object)
Returns the result of interpreting the object as an instance of 'Pre Post Or Body Decl CS'.
|
T |
casePrimitiveLiteralExpCS(PrimitiveLiteralExpCS object)
Returns the result of interpreting the object as an instance of 'Primitive Literal Exp CS'.
|
T |
casePrimitiveTypeCS(PrimitiveTypeCS object)
Returns the result of interpreting the object as an instance of 'Primitive Type CS'.
|
T |
casePropertyContextCS(PropertyContextCS object)
Returns the result of interpreting the object as an instance of 'Property Context CS'.
|
T |
caseRealLiteralExpCS(RealLiteralExpCS object)
Returns the result of interpreting the object as an instance of 'Real Literal Exp CS'.
|
T |
caseSimpleNameCS(SimpleNameCS object)
Returns the result of interpreting the object as an instance of 'Simple Name CS'.
|
T |
caseStringLiteralExpCS(StringLiteralExpCS object)
Returns the result of interpreting the object as an instance of 'String Literal Exp CS'.
|
T |
caseTupleLiteralExpCS(TupleLiteralExpCS object)
Returns the result of interpreting the object as an instance of 'Tuple Literal Exp CS'.
|
T |
caseTupleTypeCS(TupleTypeCS object)
Returns the result of interpreting the object as an instance of 'Tuple Type CS'.
|
T |
caseTypeCS(TypeCS object)
Returns the result of interpreting the object as an instance of 'Type CS'.
|
T |
caseUnlimitedNaturalLiteralExpCS(UnlimitedNaturalLiteralExpCS object)
Returns the result of interpreting the object as an instance of 'Unlimited Natural Literal Exp CS'.
|
T |
caseVariableCS(VariableCS object)
Returns the result of interpreting the object as an instance of 'Variable CS'.
|
T |
caseVariableExpCS(VariableExpCS object)
Returns the result of interpreting the object as an instance of 'Variable Exp CS'.
|
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
protected T |
doSwitch(int classifierID,
EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result. |
protected boolean |
isSwitchFor(EPackage ePackage)
Checks whether this is a switch for the given package.
|
protected static CSTPackage modelPackage
protected boolean isSwitchFor(EPackage ePackage)
protected T doSwitch(int classifierID, EObject theEObject)
caseXXX for each class of the model until one returns a non null result; it yields that result.
caseXXX call.public T caseCSTNode(CSTNode object)
object - the target of the switch.doSwitch(EObject)public T casePackageDeclarationCS(PackageDeclarationCS object)
object - the target of the switch.doSwitch(EObject)public T caseContextDeclCS(ContextDeclCS object)
object - the target of the switch.doSwitch(EObject)public T casePropertyContextCS(PropertyContextCS object)
object - the target of the switch.doSwitch(EObject)public T caseClassifierContextDeclCS(ClassifierContextDeclCS object)
object - the target of the switch.doSwitch(EObject)public T caseOperationContextDeclCS(OperationContextDeclCS object)
object - the target of the switch.doSwitch(EObject)public T casePrePostOrBodyDeclCS(PrePostOrBodyDeclCS object)
object - the target of the switch.doSwitch(EObject)public T caseOperationCS(OperationCS object)
object - the target of the switch.doSwitch(EObject)public T caseInitOrDerValueCS(InitOrDerValueCS object)
object - the target of the switch.doSwitch(EObject)public T caseDerValueCS(DerValueCS object)
object - the target of the switch.doSwitch(EObject)public T caseInitValueCS(InitValueCS object)
object - the target of the switch.doSwitch(EObject)public T caseInvOrDefCS(InvOrDefCS object)
object - the target of the switch.doSwitch(EObject)public T caseInvCS(InvCS object)
object - the target of the switch.doSwitch(EObject)public T caseDefCS(DefCS object)
object - the target of the switch.doSwitch(EObject)public T caseDefExpressionCS(DefExpressionCS object)
object - the target of the switch.doSwitch(EObject)public T casePathNameCS(PathNameCS object)
object - the target of the switch.doSwitch(EObject)public T caseVariableExpCS(VariableExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseSimpleNameCS(SimpleNameCS object)
object - the target of the switch.doSwitch(EObject)public T caseTypeCS(TypeCS object)
object - the target of the switch.doSwitch(EObject)public T casePrimitiveTypeCS(PrimitiveTypeCS object)
object - the target of the switch.doSwitch(EObject)public T caseTupleTypeCS(TupleTypeCS object)
object - the target of the switch.doSwitch(EObject)public T caseCollectionTypeCS(CollectionTypeCS object)
object - the target of the switch.doSwitch(EObject)public T caseOCLExpressionCS(OCLExpressionCS object)
object - the target of the switch.doSwitch(EObject)public T caseLetExpCS(LetExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseIfExpCS(IfExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseMessageExpCS(MessageExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseOCLMessageArgCS(OCLMessageArgCS object)
object - the target of the switch.doSwitch(EObject)public T caseVariableCS(VariableCS object)
object - the target of the switch.doSwitch(EObject)public T caseLiteralExpCS(LiteralExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseCollectionLiteralExpCS(CollectionLiteralExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseTupleLiteralExpCS(TupleLiteralExpCS object)
object - the target of the switch.doSwitch(EObject)public T casePrimitiveLiteralExpCS(PrimitiveLiteralExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseIntegerLiteralExpCS(IntegerLiteralExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseUnlimitedNaturalLiteralExpCS(UnlimitedNaturalLiteralExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseRealLiteralExpCS(RealLiteralExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseStringLiteralExpCS(StringLiteralExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseBooleanLiteralExpCS(BooleanLiteralExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseCollectionLiteralPartCS(CollectionLiteralPartCS object)
object - the target of the switch.doSwitch(EObject)public T caseCollectionRangeCS(CollectionRangeCS object)
object - the target of the switch.doSwitch(EObject)public T caseCallExpCS(CallExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseLoopExpCS(LoopExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseIteratorExpCS(IteratorExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseIterateExpCS(IterateExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseFeatureCallExpCS(FeatureCallExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseOperationCallExpCS(OperationCallExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseIsMarkedPreCS(IsMarkedPreCS object)
object - the target of the switch.doSwitch(EObject)public T caseOCLDocumentCS(OCLDocumentCS object)
object - the target of the switch.doSwitch(EObject)public T caseNullLiteralExpCS(NullLiteralExpCS object)
object - the target of the switch.doSwitch(EObject)public T caseInvalidLiteralExpCS(InvalidLiteralExpCS 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 © 2015 Open eHealth Foundation. All rights reserved.