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 Details

  • 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:
      isSwitchFor in class org.eclipse.emf.ecore.util.Switch<T>
      Parameters:
      ePackage - the package in question.
      Returns:
      whether this is a switch for the given package.
    • doSwitch

      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.
      Overrides:
      doSwitch in class org.eclipse.emf.ecore.util.Switch<T>
      Returns:
      the first non-null result returned by a caseXXX call.
    • caseLanguageUnit

      public T caseLanguageUnit(LanguageUnit object)
      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:
      • doSwitch(EObject)
    • caseVariableDeclaration

      public T caseVariableDeclaration(VariableDeclaration object)
      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:
      • doSwitch(EObject)
    • caseCompound

      public T caseCompound(Compound object)
      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:
      • doSwitch(EObject)
    • caseTypeDef

      public T caseTypeDef(TypeDef object)
      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:
      • doSwitch(EObject)
    • caseAdvice

      public T caseAdvice(Advice object)
      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:
      • doSwitch(EObject)
    • caseVersionSpec

      public T caseVersionSpec(VersionSpec object)
      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:
      • doSwitch(EObject)
    • caseParameterList

      public T caseParameterList(ParameterList object)
      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:
      • doSwitch(EObject)
    • caseParameter

      public T caseParameter(Parameter object)
      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:
      • doSwitch(EObject)
    • caseVersionStmt

      public T caseVersionStmt(VersionStmt object)
      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:
      • doSwitch(EObject)
    • caseImport

      public T caseImport(Import object)
      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:
      • doSwitch(EObject)
    • caseExpressionStatement

      public T caseExpressionStatement(ExpressionStatement object)
      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:
      • doSwitch(EObject)
    • caseExpression

      public T caseExpression(Expression object)
      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:
      • doSwitch(EObject)
    • caseLogicalExpression

      public T caseLogicalExpression(LogicalExpression object)
      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:
      • doSwitch(EObject)
    • caseLogicalExpressionPart

      public T caseLogicalExpressionPart(LogicalExpressionPart object)
      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:
      • doSwitch(EObject)
    • caseEqualityExpression

      public T caseEqualityExpression(EqualityExpression object)
      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:
      • doSwitch(EObject)
    • caseEqualityExpressionPart

      public T caseEqualityExpressionPart(EqualityExpressionPart object)
      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:
      • doSwitch(EObject)
    • caseRelationalExpression

      public T caseRelationalExpression(RelationalExpression object)
      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:
      • doSwitch(EObject)
    • caseRelationalExpressionPart

      public T caseRelationalExpressionPart(RelationalExpressionPart object)
      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:
      • doSwitch(EObject)
    • caseAdditiveExpression

      public T caseAdditiveExpression(AdditiveExpression object)
      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:
      • doSwitch(EObject)
    • caseAdditiveExpressionPart

      public T caseAdditiveExpressionPart(AdditiveExpressionPart object)
      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:
      • doSwitch(EObject)
    • caseMultiplicativeExpression

      public T caseMultiplicativeExpression(MultiplicativeExpression object)
      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:
      • doSwitch(EObject)
    • caseMultiplicativeExpressionPart

      public T caseMultiplicativeExpressionPart(MultiplicativeExpressionPart object)
      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:
      • doSwitch(EObject)
    • caseUnaryExpression

      public T caseUnaryExpression(UnaryExpression object)
      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:
      • doSwitch(EObject)
    • casePostfixExpression

      public T casePostfixExpression(PostfixExpression object)
      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:
      • doSwitch(EObject)
    • casePrimaryExpression

      public T casePrimaryExpression(PrimaryExpression object)
      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:
      • doSwitch(EObject)
    • caseExpressionOrQualifiedExecution

      public T caseExpressionOrQualifiedExecution(ExpressionOrQualifiedExecution object)
      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:
      • doSwitch(EObject)
    • caseUnqualifiedExecution

      public T caseUnqualifiedExecution(UnqualifiedExecution object)
      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:
      • doSwitch(EObject)
    • caseSuperExecution

      public T caseSuperExecution(SuperExecution object)
      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:
      • doSwitch(EObject)
    • caseConstructorExecution

      public T caseConstructorExecution(ConstructorExecution object)
      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:
      • doSwitch(EObject)
    • caseSubCall

      public T caseSubCall(SubCall object)
      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:
      • doSwitch(EObject)
    • caseDeclarator

      public T caseDeclarator(Declarator object)
      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:
      • doSwitch(EObject)
    • caseDeclaration

      public T caseDeclaration(Declaration object)
      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:
      • doSwitch(EObject)
    • caseDeclarationUnit

      public T caseDeclarationUnit(DeclarationUnit object)
      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:
      • doSwitch(EObject)
    • caseAnnotationDeclarations

      public T caseAnnotationDeclarations(AnnotationDeclarations object)
      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:
      • doSwitch(EObject)
    • caseCall

      public T caseCall(Call object)
      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:
      • doSwitch(EObject)
    • caseArgumentList

      public T caseArgumentList(ArgumentList object)
      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:
      • doSwitch(EObject)
    • caseNamedArgument

      public T caseNamedArgument(NamedArgument object)
      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:
      • doSwitch(EObject)
    • caseQualifiedPrefix

      public T caseQualifiedPrefix(QualifiedPrefix object)
      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:
      • doSwitch(EObject)
    • caseQualifiedName

      public T caseQualifiedName(QualifiedName object)
      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:
      • doSwitch(EObject)
    • caseConstant

      public T caseConstant(Constant object)
      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:
      • doSwitch(EObject)
    • caseNumValue

      public T caseNumValue(NumValue object)
      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:
      • doSwitch(EObject)
    • caseType

      public T caseType(Type object)
      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:
      • doSwitch(EObject)
    • caseTypeParameters

      public T caseTypeParameters(TypeParameters object)
      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:
      • doSwitch(EObject)
    • caseContainerInitializer

      public T caseContainerInitializer(ContainerInitializer object)
      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:
      • doSwitch(EObject)
    • caseContainerInitializerExpression

      public T caseContainerInitializerExpression(ContainerInitializerExpression object)
      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:
      • doSwitch(EObject)
    • defaultCase

      public T defaultCase(org.eclipse.emf.ecore.EObject object)
      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:
      defaultCase in class org.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:
      • Switch.doSwitch(org.eclipse.emf.ecore.EObject)