Class TemplateLangSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
de.uni_hildesheim.sse.vil.templatelang.templateLang.util.TemplateLangSwitch<T>
public class TemplateLangSwitch<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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaseAlternative(Alternative object) Returns the result of interpreting the object as an instance of 'Alternative'.caseContent(Content object) Returns the result of interpreting the object as an instance of 'Content'.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_SubCall(de.uni_hildesheim.sse.vil.expressions.expressionDsl.SubCall object) Returns the result of interpreting the object as an instance of 'Sub Call'.caseExtension(Extension object) Returns the result of interpreting the object as an instance of 'Extension'.caseFormattingHint(FormattingHint object) Returns the result of interpreting the object as an instance of 'Formatting Hint'.Returns the result of interpreting the object as an instance of 'Formatting Hint Part'.Returns the result of interpreting the object as an instance of 'generic Multiselect'.caseHintedExpression(HintedExpression object) Returns the result of interpreting the object as an instance of 'Hinted Expression'.caseIndentationHint(IndentationHint object) Returns the result of interpreting the object as an instance of 'Indentation Hint'.Returns the result of interpreting the object as an instance of 'Indentation Hint Part'.Returns the result of interpreting the object as an instance of 'Java Qualified Name'.caseLanguageUnit(LanguageUnit object) Returns the result of interpreting the object as an instance of 'Language Unit'.Returns the result of interpreting the object as an instance of 'Loop'.casemultiselect(multiselect object) Returns the result of interpreting the object as an instance of 'multiselect'.casemultiSelectPart(multiSelectPart object) Returns the result of interpreting the object as an instance of 'multi Select Part'.Returns the result of interpreting the object as an instance of 'Stmt'.caseStmtBlock(StmtBlock object) Returns the result of interpreting the object as an instance of 'Stmt Block'.caseSubCall(SubCall object) Returns the result of interpreting the object as an instance of 'Sub Call'.caseSwitch(Switch object) Returns the result of interpreting the object as an instance of 'Switch'.caseSwitchPart(SwitchPart object) Returns the result of interpreting the object as an instance of 'Switch Part'.Returns the result of interpreting the object as an instance of 'Top'.caseuserMultiselect(userMultiselect object) Returns the result of interpreting the object as an instance of 'user Multiselect'.caseVilDef(VilDef object) Returns the result of interpreting the object as an instance of 'Vil Def'.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
-
TemplateLangSwitch
public TemplateLangSwitch()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.
-
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:
-
caseTop
Returns the result of interpreting the object as an instance of 'Top'. 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 'Top'.
- See Also:
-
caseHintedExpression
Returns the result of interpreting the object as an instance of 'Hinted 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 'Hinted Expression'.
- See Also:
-
caseIndentationHint
Returns the result of interpreting the object as an instance of 'Indentation Hint'. 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 'Indentation Hint'.
- See Also:
-
caseIndentationHintPart
Returns the result of interpreting the object as an instance of 'Indentation Hint Part'. 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 'Indentation Hint Part'.
- See Also:
-
caseFormattingHint
Returns the result of interpreting the object as an instance of 'Formatting Hint'. 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 'Formatting Hint'.
- See Also:
-
caseFormattingHintPart
Returns the result of interpreting the object as an instance of 'Formatting Hint Part'. 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 'Formatting Hint Part'.
- See Also:
-
caseVilDef
Returns the result of interpreting the object as an instance of 'Vil Def'. 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 'Vil Def'.
- See Also:
-
caseStmtBlock
Returns the result of interpreting the object as an instance of 'Stmt 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 'Stmt Block'.
- See Also:
-
caseStmt
Returns the result of interpreting the object as an instance of 'Stmt'. 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 'Stmt'.
- 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:
-
caseContent
Returns the result of interpreting the object as an instance of 'Content'. 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 'Content'.
- See Also:
-
caseSwitch
Returns the result of interpreting the object as an instance of 'Switch'. 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 'Switch'.
- See Also:
-
caseSwitchPart
Returns the result of interpreting the object as an instance of 'Switch Part'. 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 'Switch Part'.
- See Also:
-
caseLoop
Returns the result of interpreting the object as an instance of 'Loop'. 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'.
- 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:
-
caseSubCall
Returns the result of interpreting the object as an instance of 'Sub Call'. 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 Call'.
- See Also:
-
casemultiselect
Returns the result of interpreting the object as an instance of 'multiselect'. 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 'multiselect'.
- See Also:
-
casegenericMultiselect
Returns the result of interpreting the object as an instance of 'generic Multiselect'. 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 'generic Multiselect'.
- See Also:
-
casemultiSelectPart
Returns the result of interpreting the object as an instance of 'multi Select Part'. 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 'multi Select Part'.
- See Also:
-
caseuserMultiselect
Returns the result of interpreting the object as an instance of 'user Multiselect'. 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 Multiselect'.
- See Also:
-
caseExtension
Returns the result of interpreting the object as an instance of 'Extension'. 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 'Extension'.
- See Also:
-
caseJavaQualifiedName
Returns the result of interpreting the object as an instance of 'Java Qualified Name'. 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 'Java Qualified Name'.
- 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_SubCall
public T caseExpressionDsl_SubCall(de.uni_hildesheim.sse.vil.expressions.expressionDsl.SubCall object) Returns the result of interpreting the object as an instance of 'Sub Call'. 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 Call'.
- 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:
-