Class RepoLangSwitch<T>
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T>
-
- com.palladiosimulator.textual.repository.repoLang.util.RepoLangSwitch<T>
-
public class RepoLangSwitch<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:
RepoLangPackage
- Generated class or method.
-
-
Field Summary
Fields Modifier and Type Field Description protected static RepoLangPackage
modelPackage
The cached model package
-
Constructor Summary
Constructors Constructor Description RepoLangSwitch()
Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
caseComponent(Component object)
Returns the result of interpreting the object as an instance of 'Component'.T
caseCompositeComponent(CompositeComponent object)
Returns the result of interpreting the object as an instance of 'Composite Component'.T
caseImportedRepository(ImportedRepository object)
Returns the result of interpreting the object as an instance of 'Imported Repository'.T
caseInterface(Interface object)
Returns the result of interpreting the object as an instance of 'Interface'.T
caseNamedElement(NamedElement object)
Returns the result of interpreting the object as an instance of 'Named Element'.T
casePassiveResource(PassiveResource object)
Returns the result of interpreting the object as an instance of 'Passive Resource'.T
caseRepository(Repository object)
Returns the result of interpreting the object as an instance of 'Repository'.T
caseRoleSpecification(RoleSpecification object)
Returns the result of interpreting the object as an instance of 'Role Specification'.T
caseSeff(Seff object)
Returns the result of interpreting the object as an instance of 'Seff'.T
caseSeffAcquireAction(SeffAcquireAction object)
Returns the result of interpreting the object as an instance of 'Seff Acquire Action'.T
caseSeffAction(SeffAction object)
Returns the result of interpreting the object as an instance of 'Seff Action'.T
caseSeffBranch(SeffBranch object)
Returns the result of interpreting the object as an instance of 'Seff Branch'.T
caseSeffCallParameter(SeffCallParameter object)
Returns the result of interpreting the object as an instance of 'Seff Call Parameter'.T
caseSeffExternalCallAction(SeffExternalCallAction object)
Returns the result of interpreting the object as an instance of 'Seff External Call Action'.T
caseSeffFork(SeffFork object)
Returns the result of interpreting the object as an instance of 'Seff Fork'.T
caseSeffForkAction(SeffForkAction object)
Returns the result of interpreting the object as an instance of 'Seff Fork Action'.T
caseSeffGuardedBranch(SeffGuardedBranch object)
Returns the result of interpreting the object as an instance of 'Seff Guarded Branch'.T
caseSeffGuardedBranchAction(SeffGuardedBranchAction object)
Returns the result of interpreting the object as an instance of 'Seff Guarded Branch Action'.T
caseSeffInternalAction(SeffInternalAction object)
Returns the result of interpreting the object as an instance of 'Seff Internal Action'.T
caseSeffLoopAction(SeffLoopAction object)
Returns the result of interpreting the object as an instance of 'Seff Loop Action'.T
caseSeffProbabilisticBranch(SeffProbabilisticBranch object)
Returns the result of interpreting the object as an instance of 'Seff Probabilistic Branch'.T
caseSeffProbabilisticBranchAction(SeffProbabilisticBranchAction object)
Returns the result of interpreting the object as an instance of 'Seff Probabilistic Branch Action'.T
caseSeffReferenceParameter(SeffReferenceParameter object)
Returns the result of interpreting the object as an instance of 'Seff Reference Parameter'.T
caseSeffReleaseAction(SeffReleaseAction object)
Returns the result of interpreting the object as an instance of 'Seff Release Action'.T
caseSeffReturnParameter(SeffReturnParameter object)
Returns the result of interpreting the object as an instance of 'Seff Return Parameter'.T
caseSeffSetReturnAction(SeffSetReturnAction object)
Returns the result of interpreting the object as an instance of 'Seff Set Return Action'.T
caseSeffSetVariableAction(SeffSetVariableAction object)
Returns the result of interpreting the object as an instance of 'Seff Set Variable Action'.T
caseSeffVariableChar(SeffVariableChar object)
Returns the result of interpreting the object as an instance of 'Seff Variable Char'.T
caseSignature(Signature object)
Returns the result of interpreting the object as an instance of 'Signature'.T
caseSignatureParameter(SignatureParameter object)
Returns the result of interpreting the object as an instance of 'Signature Parameter'.T
caseSubSeff(SubSeff object)
Returns the result of interpreting the object as an instance of 'Sub Seff'.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 RepoLangPackage 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.
-
caseRepository
public T caseRepository(Repository object)
Returns the result of interpreting the object as an instance of 'Repository'. 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 'Repository'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseImportedRepository
public T caseImportedRepository(ImportedRepository object)
Returns the result of interpreting the object as an instance of 'Imported Repository'. 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 'Imported Repository'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseNamedElement
public T caseNamedElement(NamedElement object)
Returns the result of interpreting the object as an instance of 'Named 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 'Named Element'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseInterface
public T caseInterface(Interface 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 class or method.
-
caseSignature
public T caseSignature(Signature object)
Returns the result of interpreting the object as an instance of 'Signature'. 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 'Signature'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSignatureParameter
public T caseSignatureParameter(SignatureParameter object)
Returns the result of interpreting the object as an instance of 'Signature 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 'Signature Parameter'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseComponent
public T caseComponent(Component object)
Returns the result of interpreting the object as an instance of 'Component'. 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 'Component'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseRoleSpecification
public T caseRoleSpecification(RoleSpecification object)
Returns the result of interpreting the object as an instance of 'Role Specification'. 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 'Role Specification'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseCompositeComponent
public T caseCompositeComponent(CompositeComponent object)
Returns the result of interpreting the object as an instance of 'Composite Component'. 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 'Composite Component'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeff
public T caseSeff(Seff object)
Returns the result of interpreting the object as an instance of 'Seff'. 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 'Seff'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffAction
public T caseSeffAction(SeffAction object)
Returns the result of interpreting the object as an instance of 'Seff Action'. 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 'Seff Action'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffInternalAction
public T caseSeffInternalAction(SeffInternalAction object)
Returns the result of interpreting the object as an instance of 'Seff Internal Action'. 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 'Seff Internal Action'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffAcquireAction
public T caseSeffAcquireAction(SeffAcquireAction object)
Returns the result of interpreting the object as an instance of 'Seff Acquire Action'. 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 'Seff Acquire Action'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffReleaseAction
public T caseSeffReleaseAction(SeffReleaseAction object)
Returns the result of interpreting the object as an instance of 'Seff Release Action'. 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 'Seff Release Action'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffLoopAction
public T caseSeffLoopAction(SeffLoopAction object)
Returns the result of interpreting the object as an instance of 'Seff Loop Action'. 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 'Seff Loop Action'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffSetReturnAction
public T caseSeffSetReturnAction(SeffSetReturnAction object)
Returns the result of interpreting the object as an instance of 'Seff Set Return Action'. 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 'Seff Set Return Action'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffSetVariableAction
public T caseSeffSetVariableAction(SeffSetVariableAction object)
Returns the result of interpreting the object as an instance of 'Seff Set Variable Action'. 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 'Seff Set Variable Action'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffExternalCallAction
public T caseSeffExternalCallAction(SeffExternalCallAction object)
Returns the result of interpreting the object as an instance of 'Seff External Call Action'. 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 'Seff External Call Action'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffCallParameter
public T caseSeffCallParameter(SeffCallParameter object)
Returns the result of interpreting the object as an instance of 'Seff Call 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 'Seff Call Parameter'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffReferenceParameter
public T caseSeffReferenceParameter(SeffReferenceParameter object)
Returns the result of interpreting the object as an instance of 'Seff Reference 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 'Seff Reference Parameter'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffReturnParameter
public T caseSeffReturnParameter(SeffReturnParameter object)
Returns the result of interpreting the object as an instance of 'Seff Return 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 'Seff Return Parameter'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffVariableChar
public T caseSeffVariableChar(SeffVariableChar object)
Returns the result of interpreting the object as an instance of 'Seff Variable Char'. 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 'Seff Variable Char'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffProbabilisticBranchAction
public T caseSeffProbabilisticBranchAction(SeffProbabilisticBranchAction object)
Returns the result of interpreting the object as an instance of 'Seff Probabilistic Branch Action'. 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 'Seff Probabilistic Branch Action'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffBranch
public T caseSeffBranch(SeffBranch object)
Returns the result of interpreting the object as an instance of 'Seff Branch'. 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 'Seff Branch'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffProbabilisticBranch
public T caseSeffProbabilisticBranch(SeffProbabilisticBranch object)
Returns the result of interpreting the object as an instance of 'Seff Probabilistic Branch'. 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 'Seff Probabilistic Branch'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffGuardedBranchAction
public T caseSeffGuardedBranchAction(SeffGuardedBranchAction object)
Returns the result of interpreting the object as an instance of 'Seff Guarded Branch Action'. 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 'Seff Guarded Branch Action'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffGuardedBranch
public T caseSeffGuardedBranch(SeffGuardedBranch object)
Returns the result of interpreting the object as an instance of 'Seff Guarded Branch'. 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 'Seff Guarded Branch'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffForkAction
public T caseSeffForkAction(SeffForkAction object)
Returns the result of interpreting the object as an instance of 'Seff Fork Action'. 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 'Seff Fork Action'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSeffFork
public T caseSeffFork(SeffFork object)
Returns the result of interpreting the object as an instance of 'Seff Fork'. 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 'Seff Fork'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
caseSubSeff
public T caseSubSeff(SubSeff object)
Returns the result of interpreting the object as an instance of 'Sub Seff'. 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 Seff'.
- See Also:
doSwitch(EObject)
- Generated class or method.
-
casePassiveResource
public T casePassiveResource(PassiveResource object)
Returns the result of interpreting the object as an instance of 'Passive Resource'. 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 'Passive Resource'.
- 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.
-
-