Class DockerFileSwitch<T>
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- org.palladiosimulator.somox.docker.dockerFile.util.DockerFileSwitch<T>
-
public class DockerFileSwitch<T> extends Switch<T>
The Switch for the model's inheritance hierarchy. It supports the calldoSwitch(object)
to invoke thecaseXXX
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 Summary
Fields Modifier and Type Field Description protected static DockerFilePackage
modelPackage
The cached model package
-
Constructor Summary
Constructors Constructor Description DockerFileSwitch()
Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
caseAddDestination(AddDestination object)
Returns the result of interpreting the object as an instance of 'Add Destination'.T
caseCmd(Cmd object)
Returns the result of interpreting the object as an instance of 'Cmd'.T
caseDockerfile(Dockerfile object)
Returns the result of interpreting the object as an instance of 'Dockerfile'.T
caseEntrypoint(Entrypoint object)
Returns the result of interpreting the object as an instance of 'Entrypoint'.T
caseEnv(Env object)
Returns the result of interpreting the object as an instance of 'Env'.T
caseEnvWithEqual(EnvWithEqual object)
Returns the result of interpreting the object as an instance of 'Env With Equal'.T
caseEnvWithSpace(EnvWithSpace object)
Returns the result of interpreting the object as an instance of 'Env With Space'.T
caseExpose(Expose object)
Returns the result of interpreting the object as an instance of 'Expose'.T
caseFrom(From object)
Returns the result of interpreting the object as an instance of 'From'.T
caseInstruction(Instruction object)
Returns the result of interpreting the object as an instance of 'Instruction'.T
caseJSON_ARRAY(JSON_ARRAY object)
Returns the result of interpreting the object as an instance of 'JSON ARRAY'.T
caseMaintainer(Maintainer object)
Returns the result of interpreting the object as an instance of 'Maintainer'.T
caseOnbuild(Onbuild object)
Returns the result of interpreting the object as an instance of 'Onbuild'.T
caseRun(Run object)
Returns the result of interpreting the object as an instance of 'Run'.T
caseRunWithNoShell(RunWithNoShell object)
Returns the result of interpreting the object as an instance of 'Run With No Shell'.T
caseRunWithShell(RunWithShell object)
Returns the result of interpreting the object as an instance of 'Run With Shell'.T
caseUser(User object)
Returns the result of interpreting the object as an instance of 'User'.T
caseVolume(Volume object)
Returns the result of interpreting the object as an instance of 'Volume'.T
caseWorkdir(Workdir object)
Returns the result of interpreting the object as an instance of 'Workdir'.T
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.protected T
doSwitch(int classifierID, EObject theEObject)
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.protected boolean
isSwitchFor(EPackage ePackage)
Checks whether this is a switch for the given package.
-
-
-
Field Detail
-
modelPackage
protected static DockerFilePackage modelPackage
The cached model package- 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 classSwitch<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)
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.
-
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 classSwitch<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.
-
-