Class ModifiersSwitch<T>

  • Direct Known Subclasses:
    ModifiersPrinterSwitch

    public class ModifiersSwitch<T>
    extends 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:
    ModifiersPackage
    Generated class or method.
    • Field Detail

      • modelPackage

        protected static ModifiersPackage modelPackage
        The cached model package
        Generated class or method.
    • Constructor Detail

      • ModifiersSwitch

        public ModifiersSwitch()
        Creates an instance of the switch.
        Generated class or method.
    • Method Detail

      • isSwitchFor

        protected boolean isSwitchFor​(EPackage ePackage)
        Checks whether this is a switch for the given package.
        Specified by:
        isSwitchFor in class Switch<T>
        Parameters:
        ePackage - the package in question.
        Returns:
        whether this is a switch for the given package.
        Generated class or method.
      • doSwitch

        protected T doSwitch​(int classifierID,
                             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 Switch<T>
        Returns:
        the first non-null result returned by a caseXXX call.
        Generated class or method.
      • caseModifier

        public T caseModifier​(Modifier object)
        Returns the result of interpreting the object as an instance of '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 'Modifier'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAnnotationInstanceOrModifier

        public T caseAnnotationInstanceOrModifier​(AnnotationInstanceOrModifier object)
        Returns the result of interpreting the object as an instance of 'Annotation Instance Or 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 'Annotation Instance Or Modifier'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAnnotableAndModifiable

        public T caseAnnotableAndModifiable​(AnnotableAndModifiable object)
        Returns the result of interpreting the object as an instance of 'Annotable And Modifiable'. 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 'Annotable And Modifiable'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseModifiable

        public T caseModifiable​(Modifiable object)
        Returns the result of interpreting the object as an instance of 'Modifiable'. 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 'Modifiable'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseAbstract

        public T caseAbstract​(Abstract object)
        Returns the result of interpreting the object as an instance of 'Abstract'. 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 'Abstract'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseFinal

        public T caseFinal​(Final object)
        Returns the result of interpreting the object as an instance of 'Final'. 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 'Final'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseNative

        public T caseNative​(Native object)
        Returns the result of interpreting the object as an instance of 'Native'. 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 'Native'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseProtected

        public T caseProtected​(Protected object)
        Returns the result of interpreting the object as an instance of 'Protected'. 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 'Protected'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • casePublic

        public T casePublic​(Public object)
        Returns the result of interpreting the object as an instance of 'Public'. 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 'Public'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • casePrivate

        public T casePrivate​(Private object)
        Returns the result of interpreting the object as an instance of 'Private'. 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 'Private'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseStatic

        public T caseStatic​(Static object)
        Returns the result of interpreting the object as an instance of 'Static'. 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 'Static'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseStrictfp

        public T caseStrictfp​(Strictfp object)
        Returns the result of interpreting the object as an instance of 'Strictfp'. 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 'Strictfp'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseSynchronized

        public T caseSynchronized​(Synchronized object)
        Returns the result of interpreting the object as an instance of 'Synchronized'. 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 'Synchronized'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseTransient

        public T caseTransient​(Transient object)
        Returns the result of interpreting the object as an instance of 'Transient'. 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 'Transient'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseVolatile

        public T caseVolatile​(Volatile object)
        Returns the result of interpreting the object as an instance of 'Volatile'. 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 'Volatile'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseDefault

        public T caseDefault​(Default object)
        Returns the result of interpreting the object as an instance of 'Default'. 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 'Default'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseTransitive

        public T caseTransitive​(Transitive object)
        Returns the result of interpreting the object as an instance of 'Transitive'. 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 'Transitive'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseModuleRequiresModifier

        public T caseModuleRequiresModifier​(ModuleRequiresModifier object)
        Returns the result of interpreting the object as an instance of 'Module Requires 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 'Module Requires Modifier'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseOpen

        public T caseOpen​(Open object)
        Returns the result of interpreting the object as an instance of 'Open'. 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 'Open'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCommentable

        public T caseCommentable​(Commentable object)
        Returns the result of interpreting the object as an instance of 'Commentable'. 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 'Commentable'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • defaultCase

        public T defaultCase​(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 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 class or method.