Class ExpressionDslSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
de.uni_hildesheim.sse.vil.expressions.expressionDsl.util.ExpressionDslSwitch<T>
public class ExpressionDslSwitch<T>
extends org.eclipse.emf.ecore.util.Switch<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.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the result of interpreting the object as an instance of 'Additive Expression'.Returns the result of interpreting the object as an instance of 'Additive Expression Part'.caseAdvice(Advice object) Returns the result of interpreting the object as an instance of 'Advice'.Returns the result of interpreting the object as an instance of 'Annotation Declarations'.caseArgumentList(ArgumentList object) Returns the result of interpreting the object as an instance of 'Argument List'.Returns the result of interpreting the object as an instance of 'Call'.caseCompound(Compound object) Returns the result of interpreting the object as an instance of 'Compound'.caseConstant(Constant object) Returns the result of interpreting the object as an instance of 'Constant'.Returns the result of interpreting the object as an instance of 'Constructor Execution'.Returns the result of interpreting the object as an instance of 'Container Initializer'.Returns the result of interpreting the object as an instance of 'Container Initializer Expression'.caseDeclaration(Declaration object) Returns the result of interpreting the object as an instance of 'Declaration'.caseDeclarationUnit(DeclarationUnit object) Returns the result of interpreting the object as an instance of 'Declaration Unit'.caseDeclarator(Declarator object) Returns the result of interpreting the object as an instance of 'Declarator'.Returns the result of interpreting the object as an instance of 'Equality Expression'.Returns the result of interpreting the object as an instance of 'Equality Expression Part'.caseExpression(Expression object) Returns the result of interpreting the object as an instance of 'Expression'.Returns the result of interpreting the object as an instance of 'Expression Or Qualified Execution'.Returns the result of interpreting the object as an instance of 'Expression Statement'.caseImport(Import object) Returns the result of interpreting the object as an instance of 'Import'.caseLanguageUnit(LanguageUnit object) Returns the result of interpreting the object as an instance of 'Language Unit'.Returns the result of interpreting the object as an instance of 'Logical Expression'.Returns the result of interpreting the object as an instance of 'Logical Expression Part'.Returns the result of interpreting the object as an instance of 'Multiplicative Expression'.Returns the result of interpreting the object as an instance of 'Multiplicative Expression Part'.caseNamedArgument(NamedArgument object) Returns the result of interpreting the object as an instance of 'Named Argument'.caseNumValue(NumValue object) Returns the result of interpreting the object as an instance of 'Num Value'.caseParameter(Parameter object) Returns the result of interpreting the object as an instance of 'Parameter'.caseParameterList(ParameterList object) Returns the result of interpreting the object as an instance of 'Parameter List'.Returns the result of interpreting the object as an instance of 'Postfix Expression'.Returns the result of interpreting the object as an instance of 'Primary Expression'.caseQualifiedName(QualifiedName object) Returns the result of interpreting the object as an instance of 'Qualified Name'.caseQualifiedPrefix(QualifiedPrefix object) Returns the result of interpreting the object as an instance of 'Qualified Prefix'.Returns the result of interpreting the object as an instance of 'Relational Expression'.Returns the result of interpreting the object as an instance of 'Relational Expression Part'.caseSubCall(SubCall object) Returns the result of interpreting the object as an instance of 'Sub Call'.caseSuperExecution(SuperExecution object) Returns the result of interpreting the object as an instance of 'Super Execution'.Returns the result of interpreting the object as an instance of 'Type'.caseTypeDef(TypeDef object) Returns the result of interpreting the object as an instance of 'Type Def'.caseTypeParameters(TypeParameters object) Returns the result of interpreting the object as an instance of 'Type Parameters'.caseUnaryExpression(UnaryExpression object) Returns the result of interpreting the object as an instance of 'Unary Expression'.Returns the result of interpreting the object as an instance of 'Unqualified Execution'.Returns the result of interpreting the object as an instance of 'Variable Declaration'.caseVersionSpec(VersionSpec object) Returns the result of interpreting the object as an instance of 'Version Spec'.caseVersionStmt(VersionStmt object) Returns the result of interpreting the object as an instance of 'Version Stmt'.defaultCase(org.eclipse.emf.ecore.EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected TdoSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject) CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.protected booleanisSwitchFor(org.eclipse.emf.ecore.EPackage ePackage) Checks whether this is a switch for the given package.Methods inherited from class org.eclipse.emf.ecore.util.Switch
doSwitch, doSwitch
-
Field Details
-
modelPackage
The cached model package
-
-
Constructor Details
-
ExpressionDslSwitch
public ExpressionDslSwitch()Creates an instance of the switch.
-
-
Method Details
-
isSwitchFor
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage) Checks whether this is a switch for the given package.- Specified by:
isSwitchForin classorg.eclipse.emf.ecore.util.Switch<T>- Parameters:
ePackage- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.- Overrides:
doSwitchin classorg.eclipse.emf.ecore.util.Switch<T>- Returns:
- the first non-null result returned by a
caseXXXcall.
-
caseLanguageUnit
Returns the result of interpreting the object as an instance of 'Language Unit'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Language Unit'.
- See Also:
-
caseVariableDeclaration
Returns the result of interpreting the object as an instance of 'Variable Declaration'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Variable Declaration'.
- See Also:
-
caseCompound
Returns the result of interpreting the object as an instance of 'Compound'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Compound'.
- See Also:
-
caseTypeDef
Returns the result of interpreting the object as an instance of 'Type Def'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Type Def'.
- See Also:
-
caseAdvice
Returns the result of interpreting the object as an instance of 'Advice'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Advice'.
- See Also:
-
caseVersionSpec
Returns the result of interpreting the object as an instance of 'Version Spec'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Version Spec'.
- See Also:
-
caseParameterList
Returns the result of interpreting the object as an instance of 'Parameter List'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Parameter List'.
- See Also:
-
caseParameter
Returns the result of interpreting the object as an instance of 'Parameter'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Parameter'.
- See Also:
-
caseVersionStmt
Returns the result of interpreting the object as an instance of 'Version Stmt'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Version Stmt'.
- See Also:
-
caseImport
Returns the result of interpreting the object as an instance of 'Import'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Import'.
- See Also:
-
caseExpressionStatement
Returns the result of interpreting the object as an instance of 'Expression Statement'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Expression Statement'.
- See Also:
-
caseExpression
Returns the result of interpreting the object as an instance of 'Expression'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Expression'.
- See Also:
-
caseLogicalExpression
Returns the result of interpreting the object as an instance of 'Logical Expression'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Logical Expression'.
- See Also:
-
caseLogicalExpressionPart
Returns the result of interpreting the object as an instance of 'Logical Expression Part'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Logical Expression Part'.
- See Also:
-
caseEqualityExpression
Returns the result of interpreting the object as an instance of 'Equality Expression'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Equality Expression'.
- See Also:
-
caseEqualityExpressionPart
Returns the result of interpreting the object as an instance of 'Equality Expression Part'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Equality Expression Part'.
- See Also:
-
caseRelationalExpression
Returns the result of interpreting the object as an instance of 'Relational Expression'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Relational Expression'.
- See Also:
-
caseRelationalExpressionPart
Returns the result of interpreting the object as an instance of 'Relational Expression Part'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Relational Expression Part'.
- See Also:
-
caseAdditiveExpression
Returns the result of interpreting the object as an instance of 'Additive Expression'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Additive Expression'.
- See Also:
-
caseAdditiveExpressionPart
Returns the result of interpreting the object as an instance of 'Additive Expression Part'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Additive Expression Part'.
- See Also:
-
caseMultiplicativeExpression
Returns the result of interpreting the object as an instance of 'Multiplicative Expression'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Multiplicative Expression'.
- See Also:
-
caseMultiplicativeExpressionPart
Returns the result of interpreting the object as an instance of 'Multiplicative Expression Part'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Multiplicative Expression Part'.
- See Also:
-
caseUnaryExpression
Returns the result of interpreting the object as an instance of 'Unary Expression'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Unary Expression'.
- See Also:
-
casePostfixExpression
Returns the result of interpreting the object as an instance of 'Postfix Expression'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Postfix Expression'.
- See Also:
-
casePrimaryExpression
Returns the result of interpreting the object as an instance of 'Primary Expression'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Primary Expression'.
- See Also:
-
caseExpressionOrQualifiedExecution
Returns the result of interpreting the object as an instance of 'Expression Or Qualified Execution'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Expression Or Qualified Execution'.
- See Also:
-
caseUnqualifiedExecution
Returns the result of interpreting the object as an instance of 'Unqualified Execution'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Unqualified Execution'.
- See Also:
-
caseSuperExecution
Returns the result of interpreting the object as an instance of 'Super Execution'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Super Execution'.
- See Also:
-
caseConstructorExecution
Returns the result of interpreting the object as an instance of 'Constructor Execution'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Constructor Execution'.
- See Also:
-
caseSubCall
Returns the result of interpreting the object as an instance of 'Sub Call'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Sub Call'.
- See Also:
-
caseDeclarator
Returns the result of interpreting the object as an instance of 'Declarator'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Declarator'.
- See Also:
-
caseDeclaration
Returns the result of interpreting the object as an instance of 'Declaration'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Declaration'.
- See Also:
-
caseDeclarationUnit
Returns the result of interpreting the object as an instance of 'Declaration Unit'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Declaration Unit'.
- See Also:
-
caseAnnotationDeclarations
Returns the result of interpreting the object as an instance of 'Annotation Declarations'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Annotation Declarations'.
- See Also:
-
caseCall
Returns the result of interpreting the object as an instance of 'Call'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Call'.
- See Also:
-
caseArgumentList
Returns the result of interpreting the object as an instance of 'Argument List'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Argument List'.
- See Also:
-
caseNamedArgument
Returns the result of interpreting the object as an instance of 'Named Argument'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Named Argument'.
- See Also:
-
caseQualifiedPrefix
Returns the result of interpreting the object as an instance of 'Qualified Prefix'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Qualified Prefix'.
- See Also:
-
caseQualifiedName
Returns the result of interpreting the object as an instance of 'Qualified Name'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Qualified Name'.
- See Also:
-
caseConstant
Returns the result of interpreting the object as an instance of 'Constant'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Constant'.
- See Also:
-
caseNumValue
Returns the result of interpreting the object as an instance of 'Num Value'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Num Value'.
- See Also:
-
caseType
Returns the result of interpreting the object as an instance of 'Type'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Type'.
- See Also:
-
caseTypeParameters
Returns the result of interpreting the object as an instance of 'Type Parameters'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Type Parameters'.
- See Also:
-
caseContainerInitializer
Returns the result of interpreting the object as an instance of 'Container Initializer'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Container Initializer'.
- See Also:
-
caseContainerInitializerExpression
Returns the result of interpreting the object as an instance of 'Container Initializer Expression'. This implementation returns null; returning a non-null result will terminate the switch.- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'Container Initializer Expression'.
- See Also:
-
defaultCase
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.- Overrides:
defaultCasein classorg.eclipse.emf.ecore.util.Switch<T>- Parameters:
object- the target of the switch.- Returns:
- the result of interpreting the object as an instance of 'EObject'.
- See Also:
-