Class ModifiersAdapterFactory
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
-
- org.emftext.language.java.modifiers.util.ModifiersAdapterFactory
-
- All Implemented Interfaces:
AdapterFactory
- Direct Known Subclasses:
ModifiersItemProviderAdapterFactory
public class ModifiersAdapterFactory extends AdapterFactoryImpl
The Adapter Factory for the model. It provides an adaptercreateXXX
method for each class of the model.- See Also:
ModifiersPackage
- Generated class or method.
-
-
Field Summary
Fields Modifier and Type Field Description protected static ModifiersPackage
modelPackage
The cached model package.protected ModifiersSwitch<Adapter>
modelSwitch
The switch that delegates to thecreateXXX
methods.
-
Constructor Summary
Constructors Constructor Description ModifiersAdapterFactory()
Creates an instance of the adapter factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Adapter
createAbstractAdapter()
Creates a new adapter for an object of class 'Abstract
'.Adapter
createAdapter(Notifier target)
Creates an adapter for thetarget
.Adapter
createAnnotableAndModifiableAdapter()
Creates a new adapter for an object of class 'Annotable And Modifiable
'.Adapter
createAnnotationInstanceOrModifierAdapter()
Creates a new adapter for an object of class 'Annotation Instance Or Modifier
'.Adapter
createCommentableAdapter()
Creates a new adapter for an object of class 'Commentable
'.Adapter
createDefaultAdapter()
Creates a new adapter for an object of class 'Default
'.Adapter
createEObjectAdapter()
Creates a new adapter for the default case.Adapter
createFinalAdapter()
Creates a new adapter for an object of class 'Final
'.Adapter
createModifiableAdapter()
Creates a new adapter for an object of class 'Modifiable
'.Adapter
createModifierAdapter()
Creates a new adapter for an object of class 'Modifier
'.Adapter
createModuleRequiresModifierAdapter()
Creates a new adapter for an object of class 'Module Requires Modifier
'.Adapter
createNativeAdapter()
Creates a new adapter for an object of class 'Native
'.Adapter
createOpenAdapter()
Creates a new adapter for an object of class 'Open
'.Adapter
createPrivateAdapter()
Creates a new adapter for an object of class 'Private
'.Adapter
createProtectedAdapter()
Creates a new adapter for an object of class 'Protected
'.Adapter
createPublicAdapter()
Creates a new adapter for an object of class 'Public
'.Adapter
createStaticAdapter()
Creates a new adapter for an object of class 'Static
'.Adapter
createStrictfpAdapter()
Creates a new adapter for an object of class 'Strictfp
'.Adapter
createSynchronizedAdapter()
Creates a new adapter for an object of class 'Synchronized
'.Adapter
createTransientAdapter()
Creates a new adapter for an object of class 'Transient
'.Adapter
createTransitiveAdapter()
Creates a new adapter for an object of class 'Transitive
'.Adapter
createVolatileAdapter()
Creates a new adapter for an object of class 'Volatile
'.boolean
isFactoryForType(Object object)
Returns whether this factory is applicable for the type of the object.-
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adapt, adapt, adaptAllNew, adaptNew, associate, createAdapter, resolve
-
-
-
-
Field Detail
-
modelPackage
protected static ModifiersPackage modelPackage
The cached model package.- Generated class or method.
-
modelSwitch
protected ModifiersSwitch<Adapter> modelSwitch
The switch that delegates to thecreateXXX
methods.- Generated class or method.
-
-
Method Detail
-
isFactoryForType
public boolean isFactoryForType(Object object)
Returns whether this factory is applicable for the type of the object. This implementation returnstrue
if the object is either the model's package or is an instance object of the model.- Specified by:
isFactoryForType
in interfaceAdapterFactory
- Overrides:
isFactoryForType
in classAdapterFactoryImpl
- Returns:
- whether this factory is applicable for the type of the object.
- Generated class or method.
-
createAdapter
public Adapter createAdapter(Notifier target)
Creates an adapter for thetarget
.- Overrides:
createAdapter
in classAdapterFactoryImpl
- Parameters:
target
- the object to adapt.- Returns:
- the adapter for the
target
. - Generated class or method.
-
createModifierAdapter
public Adapter createModifierAdapter()
Creates a new adapter for an object of class 'Modifier
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Modifier
- Generated class or method.
-
createAnnotationInstanceOrModifierAdapter
public Adapter createAnnotationInstanceOrModifierAdapter()
Creates a new adapter for an object of class 'Annotation Instance Or Modifier
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
AnnotationInstanceOrModifier
- Generated class or method.
-
createAnnotableAndModifiableAdapter
public Adapter createAnnotableAndModifiableAdapter()
Creates a new adapter for an object of class 'Annotable And Modifiable
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
AnnotableAndModifiable
- Generated class or method.
-
createModifiableAdapter
public Adapter createModifiableAdapter()
Creates a new adapter for an object of class 'Modifiable
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Modifiable
- Generated class or method.
-
createAbstractAdapter
public Adapter createAbstractAdapter()
Creates a new adapter for an object of class 'Abstract
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Abstract
- Generated class or method.
-
createFinalAdapter
public Adapter createFinalAdapter()
Creates a new adapter for an object of class 'Final
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Final
- Generated class or method.
-
createNativeAdapter
public Adapter createNativeAdapter()
Creates a new adapter for an object of class 'Native
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Native
- Generated class or method.
-
createProtectedAdapter
public Adapter createProtectedAdapter()
Creates a new adapter for an object of class 'Protected
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Protected
- Generated class or method.
-
createPublicAdapter
public Adapter createPublicAdapter()
Creates a new adapter for an object of class 'Public
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Public
- Generated class or method.
-
createPrivateAdapter
public Adapter createPrivateAdapter()
Creates a new adapter for an object of class 'Private
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Private
- Generated class or method.
-
createStaticAdapter
public Adapter createStaticAdapter()
Creates a new adapter for an object of class 'Static
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Static
- Generated class or method.
-
createStrictfpAdapter
public Adapter createStrictfpAdapter()
Creates a new adapter for an object of class 'Strictfp
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Strictfp
- Generated class or method.
-
createSynchronizedAdapter
public Adapter createSynchronizedAdapter()
Creates a new adapter for an object of class 'Synchronized
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Synchronized
- Generated class or method.
-
createTransientAdapter
public Adapter createTransientAdapter()
Creates a new adapter for an object of class 'Transient
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Transient
- Generated class or method.
-
createVolatileAdapter
public Adapter createVolatileAdapter()
Creates a new adapter for an object of class 'Volatile
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Volatile
- Generated class or method.
-
createDefaultAdapter
public Adapter createDefaultAdapter()
Creates a new adapter for an object of class 'Default
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Default
- Generated class or method.
-
createTransitiveAdapter
public Adapter createTransitiveAdapter()
Creates a new adapter for an object of class 'Transitive
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Transitive
- Generated class or method.
-
createModuleRequiresModifierAdapter
public Adapter createModuleRequiresModifierAdapter()
Creates a new adapter for an object of class 'Module Requires Modifier
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
ModuleRequiresModifier
- Generated class or method.
-
createOpenAdapter
public Adapter createOpenAdapter()
Creates a new adapter for an object of class 'Open
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Open
- Generated class or method.
-
createCommentableAdapter
public Adapter createCommentableAdapter()
Creates a new adapter for an object of class 'Commentable
'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.- Returns:
- the new adapter.
- See Also:
Commentable
- Generated class or method.
-
createEObjectAdapter
public Adapter createEObjectAdapter()
Creates a new adapter for the default case. This default implementation returns null.- Returns:
- the new adapter.
- Generated class or method.
-
-