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
public class ModifiersSwitch<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:
ModifiersPackage
- Generated class or method.
-
-
Field Summary
Fields Modifier and Type Field Description protected static ModifiersPackage
modelPackage
The cached model package
-
Constructor Summary
Constructors Constructor Description ModifiersSwitch()
Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
caseAbstract(Abstract object)
Returns the result of interpreting the object as an instance of 'Abstract'.T
caseAnnotableAndModifiable(AnnotableAndModifiable object)
Returns the result of interpreting the object as an instance of 'Annotable And Modifiable'.T
caseAnnotationInstanceOrModifier(AnnotationInstanceOrModifier object)
Returns the result of interpreting the object as an instance of 'Annotation Instance Or Modifier'.T
caseCommentable(Commentable object)
Returns the result of interpreting the object as an instance of 'Commentable'.T
caseDefault(Default object)
Returns the result of interpreting the object as an instance of 'Default'.T
caseFinal(Final object)
Returns the result of interpreting the object as an instance of 'Final'.T
caseModifiable(Modifiable object)
Returns the result of interpreting the object as an instance of 'Modifiable'.T
caseModifier(Modifier object)
Returns the result of interpreting the object as an instance of 'Modifier'.T
caseModuleRequiresModifier(ModuleRequiresModifier object)
Returns the result of interpreting the object as an instance of 'Module Requires Modifier'.T
caseNative(Native object)
Returns the result of interpreting the object as an instance of 'Native'.T
caseOpen(Open object)
Returns the result of interpreting the object as an instance of 'Open'.T
casePrivate(Private object)
Returns the result of interpreting the object as an instance of 'Private'.T
caseProtected(Protected object)
Returns the result of interpreting the object as an instance of 'Protected'.T
casePublic(Public object)
Returns the result of interpreting the object as an instance of 'Public'.T
caseStatic(Static object)
Returns the result of interpreting the object as an instance of 'Static'.T
caseStrictfp(Strictfp object)
Returns the result of interpreting the object as an instance of 'Strictfp'.T
caseSynchronized(Synchronized object)
Returns the result of interpreting the object as an instance of 'Synchronized'.T
caseTransient(Transient object)
Returns the result of interpreting the object as an instance of 'Transient'.T
caseTransitive(Transitive object)
Returns the result of interpreting the object as an instance of 'Transitive'.T
caseVolatile(Volatile object)
Returns the result of interpreting the object as an instance of 'Volatile'.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 ModifiersPackage 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.
-
caseModifier
public T caseModifier(Modifier object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseAnnotationInstanceOrModifier
public T caseAnnotationInstanceOrModifier(AnnotationInstanceOrModifier object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseAnnotableAndModifiable
public T caseAnnotableAndModifiable(AnnotableAndModifiable object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseModifiable
public T caseModifiable(Modifiable object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseAbstract
public T caseAbstract(Abstract object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseFinal
public T caseFinal(Final object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseNative
public T caseNative(Native object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseProtected
public T caseProtected(Protected object)
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:
doSwitch(EObject)
- Generated class or method.
-
casePublic
public T casePublic(Public object)
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:
doSwitch(EObject)
- Generated class or method.
-
casePrivate
public T casePrivate(Private object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseStatic
public T caseStatic(Static object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseStrictfp
public T caseStrictfp(Strictfp object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseSynchronized
public T caseSynchronized(Synchronized object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseTransient
public T caseTransient(Transient object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseVolatile
public T caseVolatile(Volatile object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseDefault
public T caseDefault(Default object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseTransitive
public T caseTransitive(Transitive object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseModuleRequiresModifier
public T caseModuleRequiresModifier(ModuleRequiresModifier object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseOpen
public T caseOpen(Open object)
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:
doSwitch(EObject)
- Generated class or method.
-
caseCommentable
public T caseCommentable(Commentable object)
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:
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.
-
-