Class ModifiersSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.emftext.language.java.modifiers.util.ModifiersSwitch<T>
- Direct Known Subclasses:
ModifiersPrinterSwitch
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:
- Generated class or method.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncaseAbstract
(Abstract object) Returns the result of interpreting the object as an instance of 'Abstract'.Returns the result of interpreting the object as an instance of 'Annotable And Modifiable'.Returns the result of interpreting the object as an instance of 'Annotation Instance Or Modifier'.caseCommentable
(Commentable object) Returns the result of interpreting the object as an instance of 'Commentable'.caseDefault
(Default object) Returns the result of interpreting the object as an instance of 'Default'.Returns the result of interpreting the object as an instance of 'Final'.caseModifiable
(Modifiable object) Returns the result of interpreting the object as an instance of 'Modifiable'.caseModifier
(Modifier object) Returns the result of interpreting the object as an instance of 'Modifier'.Returns the result of interpreting the object as an instance of 'Module Requires Modifier'.caseNative
(Native object) Returns the result of interpreting the object as an instance of 'Native'.Returns the result of interpreting the object as an instance of 'Open'.casePrivate
(Private object) Returns the result of interpreting the object as an instance of 'Private'.caseProtected
(Protected object) Returns the result of interpreting the object as an instance of 'Protected'.casePublic
(Public object) Returns the result of interpreting the object as an instance of 'Public'.caseStatic
(Static object) Returns the result of interpreting the object as an instance of 'Static'.caseStrictfp
(Strictfp object) Returns the result of interpreting the object as an instance of 'Strictfp'.caseSynchronized
(Synchronized object) Returns the result of interpreting the object as an instance of 'Synchronized'.caseTransient
(Transient object) Returns the result of interpreting the object as an instance of 'Transient'.caseTransitive
(Transitive object) Returns the result of interpreting the object as an instance of 'Transitive'.caseVolatile
(Volatile object) Returns the result of interpreting the object as an instance of 'Volatile'.defaultCase
(EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected T
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 Details
-
modelPackage
The cached model package- Generated class or method.
-
-
Constructor Details
-
ModifiersSwitch
public ModifiersSwitch()Creates an instance of the switch.- Generated class or method.
-
-
Method Details
-
isSwitchFor
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
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result. -
caseModifier
Returns the result of interpreting the object as an instance of '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 'Modifier'.
- See Also:
- Generated class or method.
-
caseAnnotationInstanceOrModifier
Returns the result of interpreting the object as an instance of 'Annotation Instance Or 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 'Annotation Instance Or Modifier'.
- See Also:
- Generated class or method.
-
caseAnnotableAndModifiable
Returns the result of interpreting the object as an instance of 'Annotable And Modifiable'. 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 'Annotable And Modifiable'.
- See Also:
- Generated class or method.
-
caseModifiable
Returns the result of interpreting the object as an instance of 'Modifiable'. 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 'Modifiable'.
- See Also:
- Generated class or method.
-
caseAbstract
Returns the result of interpreting the object as an instance of 'Abstract'. 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 'Abstract'.
- See Also:
- Generated class or method.
-
caseFinal
Returns the result of interpreting the object as an instance of 'Final'. 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 'Final'.
- See Also:
- Generated class or method.
-
caseNative
Returns the result of interpreting the object as an instance of 'Native'. 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 'Native'.
- See Also:
- Generated class or method.
-
caseProtected
Returns the result of interpreting the object as an instance of 'Protected'. 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 'Protected'.
- See Also:
- Generated class or method.
-
casePublic
Returns the result of interpreting the object as an instance of 'Public'. 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 'Public'.
- See Also:
- Generated class or method.
-
casePrivate
Returns the result of interpreting the object as an instance of 'Private'. 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 'Private'.
- See Also:
- Generated class or method.
-
caseStatic
Returns the result of interpreting the object as an instance of 'Static'. 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 'Static'.
- See Also:
- Generated class or method.
-
caseStrictfp
Returns the result of interpreting the object as an instance of 'Strictfp'. 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 'Strictfp'.
- See Also:
- Generated class or method.
-
caseSynchronized
Returns the result of interpreting the object as an instance of 'Synchronized'. 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 'Synchronized'.
- See Also:
- Generated class or method.
-
caseTransient
Returns the result of interpreting the object as an instance of 'Transient'. 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 'Transient'.
- See Also:
- Generated class or method.
-
caseVolatile
Returns the result of interpreting the object as an instance of 'Volatile'. 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 'Volatile'.
- See Also:
- Generated class or method.
-
caseDefault
Returns the result of interpreting the object as an instance of 'Default'. 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 'Default'.
- See Also:
- Generated class or method.
-
caseTransitive
Returns the result of interpreting the object as an instance of 'Transitive'. 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 'Transitive'.
- See Also:
- Generated class or method.
-
caseModuleRequiresModifier
Returns the result of interpreting the object as an instance of 'Module Requires 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 'Module Requires Modifier'.
- See Also:
- Generated class or method.
-
caseOpen
Returns the result of interpreting the object as an instance of 'Open'. 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 'Open'.
- See Also:
- Generated class or method.
-
caseCommentable
Returns the result of interpreting the object as an instance of 'Commentable'. 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 'Commentable'.
- See Also:
- Generated class or method.
-
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:
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:
- Generated class or method.
-