Class TemplateLangSwitch<T>

java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
de.uni_hildesheim.sse.vil.templatelang.templateLang.util.TemplateLangSwitch<T>

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

    • TemplateLangSwitch

      public TemplateLangSwitch()
      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)
    • caseTop

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

      public T caseHintedExpression(HintedExpression object)
      Returns the result of interpreting the object as an instance of 'Hinted 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 'Hinted Expression'.
      See Also:
      • doSwitch(EObject)
    • caseIndentationHint

      public T caseIndentationHint(IndentationHint object)
      Returns the result of interpreting the object as an instance of 'Indentation Hint'. 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 'Indentation Hint'.
      See Also:
      • doSwitch(EObject)
    • caseIndentationHintPart

      public T caseIndentationHintPart(IndentationHintPart object)
      Returns the result of interpreting the object as an instance of 'Indentation Hint 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 'Indentation Hint Part'.
      See Also:
      • doSwitch(EObject)
    • caseFormattingHint

      public T caseFormattingHint(FormattingHint object)
      Returns the result of interpreting the object as an instance of 'Formatting Hint'. 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 'Formatting Hint'.
      See Also:
      • doSwitch(EObject)
    • caseFormattingHintPart

      public T caseFormattingHintPart(FormattingHintPart object)
      Returns the result of interpreting the object as an instance of 'Formatting Hint 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 'Formatting Hint Part'.
      See Also:
      • doSwitch(EObject)
    • caseVilDef

      public T caseVilDef(VilDef object)
      Returns the result of interpreting the object as an instance of 'Vil 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 'Vil Def'.
      See Also:
      • doSwitch(EObject)
    • caseStmtBlock

      public T caseStmtBlock(StmtBlock object)
      Returns the result of interpreting the object as an instance of 'Stmt 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 'Stmt Block'.
      See Also:
      • doSwitch(EObject)
    • caseStmt

      public T caseStmt(Stmt object)
      Returns the result of interpreting the object as an instance of '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 'Stmt'.
      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)
    • caseContent

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

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

      public T caseSwitchPart(SwitchPart object)
      Returns the result of interpreting the object as an instance of 'Switch 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 'Switch Part'.
      See Also:
      • doSwitch(EObject)
    • caseLoop

      public T caseLoop(Loop object)
      Returns the result of interpreting the object as an instance of 'Loop'. 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'.
      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)
    • 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)
    • casemultiselect

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

      public T casegenericMultiselect(genericMultiselect object)
      Returns the result of interpreting the object as an instance of 'generic Multiselect'. 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 'generic Multiselect'.
      See Also:
      • doSwitch(EObject)
    • casemultiSelectPart

      public T casemultiSelectPart(multiSelectPart object)
      Returns the result of interpreting the object as an instance of 'multi Select 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 'multi Select Part'.
      See Also:
      • doSwitch(EObject)
    • caseuserMultiselect

      public T caseuserMultiselect(userMultiselect object)
      Returns the result of interpreting the object as an instance of 'user Multiselect'. 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 'user Multiselect'.
      See Also:
      • doSwitch(EObject)
    • caseExtension

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

      public T caseJavaQualifiedName(JavaQualifiedName object)
      Returns the result of interpreting the object as an instance of 'Java 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 'Java Qualified Name'.
      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_SubCall

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