Class XtendSwitch<T>

  • Direct Known Subclasses:
    InitialTemplateIndentationComputer, RichStringProcessor.ProcessedRichStringBuilder

    public class XtendSwitch<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:
    XtendPackage
    Generated:
    • Field Detail

      • modelPackage

        protected static XtendPackage modelPackage
        The cached model package
        Generated:
    • Constructor Detail

      • XtendSwitch

        public XtendSwitch()
        Creates an instance of the switch.
        Generated:
    • Method Detail

      • 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.
        Generated:
      • 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.
        Generated:
      • caseXtendFile

        public T caseXtendFile​(XtendFile object)
        Returns the result of interpreting the object as an instance of 'File'. 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 'File'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXtendClass

        public T caseXtendClass​(XtendClass object)
        Returns the result of interpreting the object as an instance of 'Class'. 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 'Class'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXtendAnnotationTarget

        public T caseXtendAnnotationTarget​(XtendAnnotationTarget object)
        Returns the result of interpreting the object as an instance of 'Annotation Target'. 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 Target'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXtendMember

        public T caseXtendMember​(XtendMember object)
        Returns the result of interpreting the object as an instance of 'Member'. 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 'Member'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXtendFunction

        public T caseXtendFunction​(XtendFunction object)
        Returns the result of interpreting the object as an instance of 'Function'. 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 'Function'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXtendField

        public T caseXtendField​(XtendField object)
        Returns the result of interpreting the object as an instance of 'Field'. 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 'Field'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXtendParameter

        public T caseXtendParameter​(XtendParameter 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)
        Generated:
      • caseRichString

        public T caseRichString​(RichString object)
        Returns the result of interpreting the object as an instance of 'Rich String'. 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 'Rich String'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseRichStringLiteral

        public T caseRichStringLiteral​(RichStringLiteral object)
        Returns the result of interpreting the object as an instance of 'Rich String Literal'. 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 'Rich String Literal'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseRichStringForLoop

        public T caseRichStringForLoop​(RichStringForLoop object)
        Returns the result of interpreting the object as an instance of 'Rich String For 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 'Rich String For Loop'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseRichStringIf

        public T caseRichStringIf​(RichStringIf object)
        Returns the result of interpreting the object as an instance of 'Rich String If'. 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 'Rich String If'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseRichStringElseIf

        public T caseRichStringElseIf​(RichStringElseIf object)
        Returns the result of interpreting the object as an instance of 'Rich String Else If'. 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 'Rich String Else If'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseCreateExtensionInfo

        public T caseCreateExtensionInfo​(CreateExtensionInfo object)
        Returns the result of interpreting the object as an instance of 'Create Extension Info'. 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 'Create Extension Info'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXtendConstructor

        public T caseXtendConstructor​(XtendConstructor object)
        Returns the result of interpreting the object as an instance of 'Constructor'. 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'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXtendTypeDeclaration

        public T caseXtendTypeDeclaration​(XtendTypeDeclaration object)
        Returns the result of interpreting the object as an instance of 'Type 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 'Type Declaration'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXtendAnnotationType

        public T caseXtendAnnotationType​(XtendAnnotationType object)
        Returns the result of interpreting the object as an instance of 'Annotation 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 'Annotation Type'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXtendInterface

        public T caseXtendInterface​(XtendInterface object)
        Returns the result of interpreting the object as an instance of 'Interface'. 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 'Interface'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXtendEnum

        public T caseXtendEnum​(XtendEnum object)
        Returns the result of interpreting the object as an instance of 'Enum'. 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 'Enum'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXtendEnumLiteral

        public T caseXtendEnumLiteral​(XtendEnumLiteral object)
        Returns the result of interpreting the object as an instance of 'Enum Literal'. 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 'Enum Literal'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXtendVariableDeclaration

        public T caseXtendVariableDeclaration​(XtendVariableDeclaration 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)
        Generated:
      • caseXtendFormalParameter

        public T caseXtendFormalParameter​(XtendFormalParameter object)
        Returns the result of interpreting the object as an instance of 'Formal 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 'Formal Parameter'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXtendExecutable

        public T caseXtendExecutable​(XtendExecutable object)
        Returns the result of interpreting the object as an instance of 'Executable'. 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 'Executable'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseAnonymousClass

        public T caseAnonymousClass​(AnonymousClass object)
        Returns the result of interpreting the object as an instance of 'Anonymous Class'. 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 'Anonymous Class'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXExpression

        public T caseXExpression​(org.eclipse.xtext.xbase.XExpression object)
        Returns the result of interpreting the object as an instance of 'XExpression'. 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 'XExpression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXBlockExpression

        public T caseXBlockExpression​(org.eclipse.xtext.xbase.XBlockExpression object)
        Returns the result of interpreting the object as an instance of 'XBlock 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 'XBlock Expression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXStringLiteral

        public T caseXStringLiteral​(org.eclipse.xtext.xbase.XStringLiteral object)
        Returns the result of interpreting the object as an instance of 'XString Literal'. 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 'XString Literal'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXForLoopExpression

        public T caseXForLoopExpression​(org.eclipse.xtext.xbase.XForLoopExpression object)
        Returns the result of interpreting the object as an instance of 'XFor Loop 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 'XFor Loop Expression'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseJvmIdentifiableElement

        public T caseJvmIdentifiableElement​(org.eclipse.xtext.common.types.JvmIdentifiableElement object)
        Returns the result of interpreting the object as an instance of 'Jvm Identifiable 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 'Jvm Identifiable Element'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseXVariableDeclaration

        public T caseXVariableDeclaration​(org.eclipse.xtext.xbase.XVariableDeclaration object)
        Returns the result of interpreting the object as an instance of 'XVariable 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 'XVariable Declaration'.
        Since:
        2.7
        See Also:
        doSwitch(EObject)
        Generated:
      • caseJvmAnnotationTarget

        public T caseJvmAnnotationTarget​(org.eclipse.xtext.common.types.JvmAnnotationTarget object)
        Returns the result of interpreting the object as an instance of 'Jvm Annotation Target'. 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 'Jvm Annotation Target'.
        See Also:
        doSwitch(EObject)
        Generated:
      • caseJvmFormalParameter

        public T caseJvmFormalParameter​(org.eclipse.xtext.common.types.JvmFormalParameter object)
        Returns the result of interpreting the object as an instance of 'Jvm Formal 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 'Jvm Formal Parameter'.
        See Also:
        doSwitch(EObject)
        Generated:
      • 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)
        Generated: