Class VilBuildLanguageSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
de.uni_hildesheim.sse.vil.buildlang.vilBuildLanguage.util.VilBuildLanguageSwitch<T>
public class VilBuildLanguageSwitch<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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static VilBuildLanguagePackageThe cached model package -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaseAlternative(Alternative object) Returns the result of interpreting the object as an instance of 'Alternative'.caseExpressionDsl_ExpressionStatement(de.uni_hildesheim.sse.vil.expressions.expressionDsl.ExpressionStatement object) Returns the result of interpreting the object as an instance of 'Expression Statement'.caseExpressionDsl_LanguageUnit(de.uni_hildesheim.sse.vil.expressions.expressionDsl.LanguageUnit object) Returns the result of interpreting the object as an instance of 'Language Unit'.caseExpressionDsl_PrimaryExpression(de.uni_hildesheim.sse.vil.expressions.expressionDsl.PrimaryExpression object) Returns the result of interpreting the object as an instance of 'Primary Expression'.Returns the result of interpreting the object as an instance of 'Expression Statement'.Returns the result of interpreting the object as an instance of 'For'.Returns the result of interpreting the object as an instance of 'Implementation Unit'.caseInstantiate(Instantiate object) Returns the result of interpreting the object as an instance of 'Instantiate'.Returns the result of interpreting the object as an instance of 'Join'.caseJoinVariable(JoinVariable object) Returns the result of interpreting the object as an instance of 'Join Variable'.caseLanguageUnit(LanguageUnit object) Returns the result of interpreting the object as an instance of 'Language Unit'.caseLoadProperties(LoadProperties object) Returns the result of interpreting the object as an instance of 'Load Properties'.caseLoopVariable(LoopVariable object) Returns the result of interpreting the object as an instance of 'Loop Variable'.Returns the result of interpreting the object as an instance of 'Map'.Returns the result of interpreting the object as an instance of 'Primary Expression'.caseRequire(Require object) Returns the result of interpreting the object as an instance of 'Require'.caseRuleConditions(RuleConditions object) Returns the result of interpreting the object as an instance of 'Rule Conditions'.caseRuleDeclaration(RuleDeclaration object) Returns the result of interpreting the object as an instance of 'Rule Declaration'.caseRuleElement(RuleElement object) Returns the result of interpreting the object as an instance of 'Rule Element'.caseRuleElementBlock(RuleElementBlock object) Returns the result of interpreting the object as an instance of 'Rule Element Block'.caseRuleModifier(RuleModifier object) Returns the result of interpreting the object as an instance of 'Rule Modifier'.caseScriptContents(ScriptContents object) Returns the result of interpreting the object as an instance of 'Script Contents'.caseScriptParentDecl(ScriptParentDecl object) Returns the result of interpreting the object as an instance of 'Script Parent Decl'.caseStatementOrBlock(StatementOrBlock object) Returns the result of interpreting the object as an instance of 'Statement Or Block'.caseSystemExecution(SystemExecution object) Returns the result of interpreting the object as an instance of 'System Execution'.Returns the result of interpreting the object as an instance of 'While'.defaultCase(org.eclipse.emf.ecore.EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected TdoSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject) CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.protected booleanisSwitchFor(org.eclipse.emf.ecore.EPackage ePackage) Checks whether this is a switch for the given package.Methods inherited from class org.eclipse.emf.ecore.util.Switch
doSwitch, doSwitch
-
Field Details
-
modelPackage
The cached model package
-
-
Constructor Details
-
VilBuildLanguageSwitch
public VilBuildLanguageSwitch()Creates an instance of the switch.
-
-
Method Details
-
isSwitchFor
protected boolean isSwitchFor(org.eclipse.emf.ecore.EPackage ePackage) Checks whether this is a switch for the given package.- Specified by:
isSwitchForin classorg.eclipse.emf.ecore.util.Switch<T>- Parameters:
ePackage- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.- Overrides:
doSwitchin classorg.eclipse.emf.ecore.util.Switch<T>- Returns:
- the first non-null result returned by a
caseXXXcall.
-
caseImplementationUnit
Returns the result of interpreting the object as an instance of 'Implementation Unit'. 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 'Implementation Unit'.
- See Also:
-
caseRequire
Returns the result of interpreting the object as an instance of 'Require'. 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 'Require'.
- See Also:
-
caseLanguageUnit
Returns the result of interpreting the object as an instance of 'Language Unit'. 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 'Language Unit'.
- See Also:
-
caseScriptParentDecl
Returns the result of interpreting the object as an instance of 'Script Parent Decl'. 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 'Script Parent Decl'.
- See Also:
-
caseLoadProperties
Returns the result of interpreting the object as an instance of 'Load Properties'. 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 'Load Properties'.
- See Also:
-
caseScriptContents
Returns the result of interpreting the object as an instance of 'Script Contents'. 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 'Script Contents'.
- See Also:
-
caseRuleDeclaration
Returns the result of interpreting the object as an instance of 'Rule 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 'Rule Declaration'.
- See Also:
-
caseRuleConditions
Returns the result of interpreting the object as an instance of 'Rule Conditions'. 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 'Rule Conditions'.
- See Also:
-
caseRuleElementBlock
Returns the result of interpreting the object as an instance of 'Rule Element Block'. 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 'Rule Element Block'.
- See Also:
-
caseRuleElement
Returns the result of interpreting the object as an instance of 'Rule 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 'Rule Element'.
- See Also:
-
caseRuleModifier
Returns the result of interpreting the object as an instance of 'Rule 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 'Rule Modifier'.
- See Also:
-
caseExpressionStatement
Returns the result of interpreting the object as an instance of 'Expression Statement'. 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 'Expression Statement'.
- See Also:
-
casePrimaryExpression
Returns the result of interpreting the object as an instance of 'Primary 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 'Primary Expression'.
- See Also:
-
caseInstantiate
Returns the result of interpreting the object as an instance of 'Instantiate'. 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 'Instantiate'.
- See Also:
-
caseLoopVariable
Returns the result of interpreting the object as an instance of 'Loop Variable'. 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 'Loop Variable'.
- See Also:
-
caseMap
Returns the result of interpreting the object as an instance of 'Map'. 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 'Map'.
- See Also:
-
caseFor
Returns the result of interpreting the object as an instance of 'For'. 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 'For'.
- See Also:
-
caseWhile
Returns the result of interpreting the object as an instance of 'While'. 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 'While'.
- See Also:
-
caseAlternative
Returns the result of interpreting the object as an instance of 'Alternative'. 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 'Alternative'.
- See Also:
-
caseStatementOrBlock
Returns the result of interpreting the object as an instance of 'Statement Or Block'. 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 'Statement Or Block'.
- See Also:
-
caseJoin
Returns the result of interpreting the object as an instance of 'Join'. 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 'Join'.
- See Also:
-
caseJoinVariable
Returns the result of interpreting the object as an instance of 'Join Variable'. 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 'Join Variable'.
- See Also:
-
caseSystemExecution
Returns the result of interpreting the object as an instance of 'System Execution'. 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 'System Execution'.
- See Also:
-
caseExpressionDsl_LanguageUnit
public T caseExpressionDsl_LanguageUnit(de.uni_hildesheim.sse.vil.expressions.expressionDsl.LanguageUnit object) Returns the result of interpreting the object as an instance of 'Language Unit'. 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 'Language Unit'.
- See Also:
-
caseExpressionDsl_ExpressionStatement
public T caseExpressionDsl_ExpressionStatement(de.uni_hildesheim.sse.vil.expressions.expressionDsl.ExpressionStatement object) Returns the result of interpreting the object as an instance of 'Expression Statement'. 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 'Expression Statement'.
- See Also:
-
caseExpressionDsl_PrimaryExpression
public T caseExpressionDsl_PrimaryExpression(de.uni_hildesheim.sse.vil.expressions.expressionDsl.PrimaryExpression object) Returns the result of interpreting the object as an instance of 'Primary 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 'Primary Expression'.
- See Also:
-
defaultCase
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:
defaultCasein classorg.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:
-