Class DockerFileSwitch<T>


  • public class DockerFileSwitch<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:
    DockerFilePackage
    Generated class or method.
    • Field Detail

      • modelPackage

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

      • DockerFileSwitch

        public DockerFileSwitch()
        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.
      • caseDockerfile

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

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

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

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

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

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

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

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

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

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

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

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

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

        public T caseEnvWithSpace​(EnvWithSpace object)
        Returns the result of interpreting the object as an instance of 'Env With Space'. 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 'Env With Space'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseEnvWithEqual

        public T caseEnvWithEqual​(EnvWithEqual object)
        Returns the result of interpreting the object as an instance of 'Env With Equal'. 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 'Env With Equal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseWorkdir

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

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

        public T caseRunWithShell​(RunWithShell object)
        Returns the result of interpreting the object as an instance of 'Run With Shell'. 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 'Run With Shell'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseRunWithNoShell

        public T caseRunWithNoShell​(RunWithNoShell object)
        Returns the result of interpreting the object as an instance of 'Run With No Shell'. 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 'Run With No Shell'.
        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.