Class VilBuildLanguageSwitch<T>

java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
de.uni_hildesheim.sse.vil.buildlang.vilBuildLanguage.util.VilBuildLanguageSwitch<T>

public class VilBuildLanguageSwitch<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

    • VilBuildLanguageSwitch

      public VilBuildLanguageSwitch()
      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.
    • caseImplementationUnit

      public T caseImplementationUnit(ImplementationUnit object)
      Returns the result of interpreting the object as an instance of 'Implementation 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 'Implementation Unit'.
      See Also:
      • doSwitch(EObject)
    • caseRequire

      public T caseRequire(Require object)
      Returns the result of interpreting the object as an instance of 'Require'. 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 'Require'.
      See Also:
      • doSwitch(EObject)
    • 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)
    • caseScriptParentDecl

      public T caseScriptParentDecl(ScriptParentDecl object)
      Returns the result of interpreting the object as an instance of 'Script Parent Decl'. 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 'Script Parent Decl'.
      See Also:
      • doSwitch(EObject)
    • caseLoadProperties

      public T caseLoadProperties(LoadProperties object)
      Returns the result of interpreting the object as an instance of 'Load Properties'. 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 'Load Properties'.
      See Also:
      • doSwitch(EObject)
    • caseScriptContents

      public T caseScriptContents(ScriptContents object)
      Returns the result of interpreting the object as an instance of 'Script Contents'. 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 'Script Contents'.
      See Also:
      • doSwitch(EObject)
    • caseRuleDeclaration

      public T caseRuleDeclaration(RuleDeclaration object)
      Returns the result of interpreting the object as an instance of 'Rule 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 'Rule Declaration'.
      See Also:
      • doSwitch(EObject)
    • caseRuleConditions

      public T caseRuleConditions(RuleConditions object)
      Returns the result of interpreting the object as an instance of 'Rule Conditions'. 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 'Rule Conditions'.
      See Also:
      • doSwitch(EObject)
    • caseRuleElementBlock

      public T caseRuleElementBlock(RuleElementBlock object)
      Returns the result of interpreting the object as an instance of 'Rule Element Block'. 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 'Rule Element Block'.
      See Also:
      • doSwitch(EObject)
    • caseRuleElement

      public T caseRuleElement(RuleElement object)
      Returns the result of interpreting the object as an instance of 'Rule Element'. 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 'Rule Element'.
      See Also:
      • doSwitch(EObject)
    • caseRuleModifier

      public T caseRuleModifier(RuleModifier object)
      Returns the result of interpreting the object as an instance of 'Rule Modifier'. 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 'Rule Modifier'.
      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)
    • 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)
    • caseInstantiate

      public T caseInstantiate(Instantiate object)
      Returns the result of interpreting the object as an instance of 'Instantiate'. 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 'Instantiate'.
      See Also:
      • doSwitch(EObject)
    • caseLoopVariable

      public T caseLoopVariable(LoopVariable object)
      Returns the result of interpreting the object as an instance of 'Loop Variable'. 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 'Loop Variable'.
      See Also:
      • doSwitch(EObject)
    • caseMap

      public T caseMap(Map object)
      Returns the result of interpreting the object as an instance of 'Map'. 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 'Map'.
      See Also:
      • doSwitch(EObject)
    • caseFor

      public T caseFor(For object)
      Returns the result of interpreting the object as an instance of 'For'. 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 'For'.
      See Also:
      • doSwitch(EObject)
    • caseWhile

      public T caseWhile(While object)
      Returns the result of interpreting the object as an instance of 'While'. 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 'While'.
      See Also:
      • doSwitch(EObject)
    • caseAlternative

      public T caseAlternative(Alternative object)
      Returns the result of interpreting the object as an instance of 'Alternative'. 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 'Alternative'.
      See Also:
      • doSwitch(EObject)
    • caseStatementOrBlock

      public T caseStatementOrBlock(StatementOrBlock object)
      Returns the result of interpreting the object as an instance of 'Statement Or Block'. 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 'Statement Or Block'.
      See Also:
      • doSwitch(EObject)
    • caseJoin

      public T caseJoin(Join object)
      Returns the result of interpreting the object as an instance of 'Join'. 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 'Join'.
      See Also:
      • doSwitch(EObject)
    • caseJoinVariable

      public T caseJoinVariable(JoinVariable object)
      Returns the result of interpreting the object as an instance of 'Join Variable'. 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 'Join Variable'.
      See Also:
      • doSwitch(EObject)
    • caseSystemExecution

      public T caseSystemExecution(SystemExecution object)
      Returns the result of interpreting the object as an instance of 'System 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 'System Execution'.
      See Also:
      • doSwitch(EObject)
    • caseExpressionDsl_LanguageUnit

      public T caseExpressionDsl_LanguageUnit(de.uni_hildesheim.sse.vil.expressions.expressionDsl.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)
    • caseExpressionDsl_ExpressionStatement

      public T caseExpressionDsl_ExpressionStatement(de.uni_hildesheim.sse.vil.expressions.expressionDsl.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)
    • caseExpressionDsl_PrimaryExpression

      public T caseExpressionDsl_PrimaryExpression(de.uni_hildesheim.sse.vil.expressions.expressionDsl.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)
    • 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)