Class LiteralsItemProviderAdapterFactory
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
-
- org.emftext.language.java.literals.util.LiteralsAdapterFactory
-
- org.emftext.language.java.literals.provider.LiteralsItemProviderAdapterFactory
-
- All Implemented Interfaces:
AdapterFactory
,ComposeableAdapterFactory
,IChangeNotifier
,IDisposable
public class LiteralsItemProviderAdapterFactory extends LiteralsAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable
This is the factory that is used to provide the interfaces needed to support Viewers. The adapters generated by this factory convert EMF adapter notifications into calls tofireNotifyChanged
. The adapters also support Eclipse property sheets. Note that most of the adapters are shared among multiple instances.- Generated class or method.
-
-
Field Summary
Fields Modifier and Type Field Description protected BinaryIntegerLiteralItemProvider
binaryIntegerLiteralItemProvider
This keeps track of the one adapter used for allBinaryIntegerLiteral
instances.protected BinaryLongLiteralItemProvider
binaryLongLiteralItemProvider
This keeps track of the one adapter used for allBinaryLongLiteral
instances.protected BooleanLiteralItemProvider
booleanLiteralItemProvider
This keeps track of the one adapter used for allBooleanLiteral
instances.protected IChangeNotifier
changeNotifier
This is used to implementIChangeNotifier
.protected CharacterLiteralItemProvider
characterLiteralItemProvider
This keeps track of the one adapter used for allCharacterLiteral
instances.protected DecimalDoubleLiteralItemProvider
decimalDoubleLiteralItemProvider
This keeps track of the one adapter used for allDecimalDoubleLiteral
instances.protected DecimalFloatLiteralItemProvider
decimalFloatLiteralItemProvider
This keeps track of the one adapter used for allDecimalFloatLiteral
instances.protected DecimalIntegerLiteralItemProvider
decimalIntegerLiteralItemProvider
This keeps track of the one adapter used for allDecimalIntegerLiteral
instances.protected DecimalLongLiteralItemProvider
decimalLongLiteralItemProvider
This keeps track of the one adapter used for allDecimalLongLiteral
instances.protected HexDoubleLiteralItemProvider
hexDoubleLiteralItemProvider
This keeps track of the one adapter used for allHexDoubleLiteral
instances.protected HexFloatLiteralItemProvider
hexFloatLiteralItemProvider
This keeps track of the one adapter used for allHexFloatLiteral
instances.protected HexIntegerLiteralItemProvider
hexIntegerLiteralItemProvider
This keeps track of the one adapter used for allHexIntegerLiteral
instances.protected HexLongLiteralItemProvider
hexLongLiteralItemProvider
This keeps track of the one adapter used for allHexLongLiteral
instances.protected NullLiteralItemProvider
nullLiteralItemProvider
This keeps track of the one adapter used for allNullLiteral
instances.protected OctalIntegerLiteralItemProvider
octalIntegerLiteralItemProvider
This keeps track of the one adapter used for allOctalIntegerLiteral
instances.protected OctalLongLiteralItemProvider
octalLongLiteralItemProvider
This keeps track of the one adapter used for allOctalLongLiteral
instances.protected ComposedAdapterFactory
parentAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory.protected SuperItemProvider
superItemProvider
This keeps track of the one adapter used for allSuper
instances.protected Collection<Object>
supportedTypes
This keeps track of all the supported types checked byisFactoryForType
.protected ThisItemProvider
thisItemProvider
This keeps track of the one adapter used for allThis
instances.-
Fields inherited from class org.emftext.language.java.literals.util.LiteralsAdapterFactory
modelPackage, modelSwitch
-
-
Constructor Summary
Constructors Constructor Description LiteralsItemProviderAdapterFactory()
This constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
adapt(Object object, Object type)
Adapter
adapt(Notifier notifier, Object type)
This implementation substitutes the factory itself as the key for the adapter.void
addListener(INotifyChangedListener notifyChangedListener)
This adds a listener.Adapter
createBinaryIntegerLiteralAdapter()
This creates an adapter for aBinaryIntegerLiteral
.Adapter
createBinaryLongLiteralAdapter()
This creates an adapter for aBinaryLongLiteral
.Adapter
createBooleanLiteralAdapter()
This creates an adapter for aBooleanLiteral
.Adapter
createCharacterLiteralAdapter()
This creates an adapter for aCharacterLiteral
.Adapter
createDecimalDoubleLiteralAdapter()
This creates an adapter for aDecimalDoubleLiteral
.Adapter
createDecimalFloatLiteralAdapter()
This creates an adapter for aDecimalFloatLiteral
.Adapter
createDecimalIntegerLiteralAdapter()
This creates an adapter for aDecimalIntegerLiteral
.Adapter
createDecimalLongLiteralAdapter()
This creates an adapter for aDecimalLongLiteral
.Adapter
createHexDoubleLiteralAdapter()
This creates an adapter for aHexDoubleLiteral
.Adapter
createHexFloatLiteralAdapter()
This creates an adapter for aHexFloatLiteral
.Adapter
createHexIntegerLiteralAdapter()
This creates an adapter for aHexIntegerLiteral
.Adapter
createHexLongLiteralAdapter()
This creates an adapter for aHexLongLiteral
.Adapter
createNullLiteralAdapter()
This creates an adapter for aNullLiteral
.Adapter
createOctalIntegerLiteralAdapter()
This creates an adapter for aOctalIntegerLiteral
.Adapter
createOctalLongLiteralAdapter()
This creates an adapter for aOctalLongLiteral
.Adapter
createSuperAdapter()
This creates an adapter for aSuper
.Adapter
createThisAdapter()
This creates an adapter for aThis
.void
dispose()
This disposes all of the item providers created by this factory.void
fireNotifyChanged(Notification notification)
This delegates tochangeNotifier
and toparentAdapterFactory
.ComposeableAdapterFactory
getRootAdapterFactory()
This returns the root adapter factory that contains this factory.boolean
isFactoryForType(Object type)
void
removeListener(INotifyChangedListener notifyChangedListener)
This removes a listener.void
setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
This sets the composed adapter factory that contains this factory.-
Methods inherited from class org.emftext.language.java.literals.util.LiteralsAdapterFactory
createAdapter, createAdditiveExpressionChildAdapter, createAndExpressionChildAdapter, createAnnotationValueAdapter, createArrayInitializationValueAdapter, createAssignmentExpressionChildAdapter, createCommentableAdapter, createConditionalAndExpressionChildAdapter, createConditionalExpressionChildAdapter, createConditionalOrExpressionChildAdapter, createDoubleLiteralAdapter, createEObjectAdapter, createEqualityExpressionChildAdapter, createExclusiveOrExpressionChildAdapter, createExpressionAdapter, createFloatLiteralAdapter, createInclusiveOrExpressionChildAdapter, createInstanceOfExpressionChildAdapter, createIntegerLiteralAdapter, createLambdaBodyAdapter, createLiteralAdapter, createLongLiteralAdapter, createMethodReferenceExpressionChildAdapter, createMultiplicativeExpressionChildAdapter, createPrimaryExpressionAdapter, createRelationExpressionChildAdapter, createSelfAdapter, createShiftExpressionChildAdapter, createUnaryExpressionChildAdapter, createUnaryModificationExpressionChildAdapter
-
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adaptAllNew, adaptNew, associate, createAdapter, resolve
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.emf.common.notify.AdapterFactory
adaptAllNew, adaptNew
-
-
-
-
Field Detail
-
parentAdapterFactory
protected ComposedAdapterFactory parentAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory.- Generated class or method.
-
changeNotifier
protected IChangeNotifier changeNotifier
This is used to implementIChangeNotifier
.- Generated class or method.
-
supportedTypes
protected Collection<Object> supportedTypes
This keeps track of all the supported types checked byisFactoryForType
.- Generated class or method.
-
booleanLiteralItemProvider
protected BooleanLiteralItemProvider booleanLiteralItemProvider
This keeps track of the one adapter used for allBooleanLiteral
instances.- Generated class or method.
-
characterLiteralItemProvider
protected CharacterLiteralItemProvider characterLiteralItemProvider
This keeps track of the one adapter used for allCharacterLiteral
instances.- Generated class or method.
-
decimalFloatLiteralItemProvider
protected DecimalFloatLiteralItemProvider decimalFloatLiteralItemProvider
This keeps track of the one adapter used for allDecimalFloatLiteral
instances.- Generated class or method.
-
hexFloatLiteralItemProvider
protected HexFloatLiteralItemProvider hexFloatLiteralItemProvider
This keeps track of the one adapter used for allHexFloatLiteral
instances.- Generated class or method.
-
decimalDoubleLiteralItemProvider
protected DecimalDoubleLiteralItemProvider decimalDoubleLiteralItemProvider
This keeps track of the one adapter used for allDecimalDoubleLiteral
instances.- Generated class or method.
-
hexDoubleLiteralItemProvider
protected HexDoubleLiteralItemProvider hexDoubleLiteralItemProvider
This keeps track of the one adapter used for allHexDoubleLiteral
instances.- Generated class or method.
-
decimalIntegerLiteralItemProvider
protected DecimalIntegerLiteralItemProvider decimalIntegerLiteralItemProvider
This keeps track of the one adapter used for allDecimalIntegerLiteral
instances.- Generated class or method.
-
hexIntegerLiteralItemProvider
protected HexIntegerLiteralItemProvider hexIntegerLiteralItemProvider
This keeps track of the one adapter used for allHexIntegerLiteral
instances.- Generated class or method.
-
octalIntegerLiteralItemProvider
protected OctalIntegerLiteralItemProvider octalIntegerLiteralItemProvider
This keeps track of the one adapter used for allOctalIntegerLiteral
instances.- Generated class or method.
-
binaryIntegerLiteralItemProvider
protected BinaryIntegerLiteralItemProvider binaryIntegerLiteralItemProvider
This keeps track of the one adapter used for allBinaryIntegerLiteral
instances.- Generated class or method.
-
decimalLongLiteralItemProvider
protected DecimalLongLiteralItemProvider decimalLongLiteralItemProvider
This keeps track of the one adapter used for allDecimalLongLiteral
instances.- Generated class or method.
-
hexLongLiteralItemProvider
protected HexLongLiteralItemProvider hexLongLiteralItemProvider
This keeps track of the one adapter used for allHexLongLiteral
instances.- Generated class or method.
-
octalLongLiteralItemProvider
protected OctalLongLiteralItemProvider octalLongLiteralItemProvider
This keeps track of the one adapter used for allOctalLongLiteral
instances.- Generated class or method.
-
binaryLongLiteralItemProvider
protected BinaryLongLiteralItemProvider binaryLongLiteralItemProvider
This keeps track of the one adapter used for allBinaryLongLiteral
instances.- Generated class or method.
-
nullLiteralItemProvider
protected NullLiteralItemProvider nullLiteralItemProvider
This keeps track of the one adapter used for allNullLiteral
instances.- Generated class or method.
-
superItemProvider
protected SuperItemProvider superItemProvider
This keeps track of the one adapter used for allSuper
instances.- Generated class or method.
-
thisItemProvider
protected ThisItemProvider thisItemProvider
This keeps track of the one adapter used for allThis
instances.- Generated class or method.
-
-
Method Detail
-
createBooleanLiteralAdapter
public Adapter createBooleanLiteralAdapter()
This creates an adapter for aBooleanLiteral
.- Overrides:
createBooleanLiteralAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
BooleanLiteral
- Generated class or method.
-
createCharacterLiteralAdapter
public Adapter createCharacterLiteralAdapter()
This creates an adapter for aCharacterLiteral
.- Overrides:
createCharacterLiteralAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
CharacterLiteral
- Generated class or method.
-
createDecimalFloatLiteralAdapter
public Adapter createDecimalFloatLiteralAdapter()
This creates an adapter for aDecimalFloatLiteral
.- Overrides:
createDecimalFloatLiteralAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
DecimalFloatLiteral
- Generated class or method.
-
createHexFloatLiteralAdapter
public Adapter createHexFloatLiteralAdapter()
This creates an adapter for aHexFloatLiteral
.- Overrides:
createHexFloatLiteralAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
HexFloatLiteral
- Generated class or method.
-
createDecimalDoubleLiteralAdapter
public Adapter createDecimalDoubleLiteralAdapter()
This creates an adapter for aDecimalDoubleLiteral
.- Overrides:
createDecimalDoubleLiteralAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
DecimalDoubleLiteral
- Generated class or method.
-
createHexDoubleLiteralAdapter
public Adapter createHexDoubleLiteralAdapter()
This creates an adapter for aHexDoubleLiteral
.- Overrides:
createHexDoubleLiteralAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
HexDoubleLiteral
- Generated class or method.
-
createDecimalIntegerLiteralAdapter
public Adapter createDecimalIntegerLiteralAdapter()
This creates an adapter for aDecimalIntegerLiteral
.- Overrides:
createDecimalIntegerLiteralAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
DecimalIntegerLiteral
- Generated class or method.
-
createHexIntegerLiteralAdapter
public Adapter createHexIntegerLiteralAdapter()
This creates an adapter for aHexIntegerLiteral
.- Overrides:
createHexIntegerLiteralAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
HexIntegerLiteral
- Generated class or method.
-
createOctalIntegerLiteralAdapter
public Adapter createOctalIntegerLiteralAdapter()
This creates an adapter for aOctalIntegerLiteral
.- Overrides:
createOctalIntegerLiteralAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
OctalIntegerLiteral
- Generated class or method.
-
createBinaryIntegerLiteralAdapter
public Adapter createBinaryIntegerLiteralAdapter()
This creates an adapter for aBinaryIntegerLiteral
.- Overrides:
createBinaryIntegerLiteralAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
BinaryIntegerLiteral
- Generated class or method.
-
createDecimalLongLiteralAdapter
public Adapter createDecimalLongLiteralAdapter()
This creates an adapter for aDecimalLongLiteral
.- Overrides:
createDecimalLongLiteralAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
DecimalLongLiteral
- Generated class or method.
-
createHexLongLiteralAdapter
public Adapter createHexLongLiteralAdapter()
This creates an adapter for aHexLongLiteral
.- Overrides:
createHexLongLiteralAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
HexLongLiteral
- Generated class or method.
-
createOctalLongLiteralAdapter
public Adapter createOctalLongLiteralAdapter()
This creates an adapter for aOctalLongLiteral
.- Overrides:
createOctalLongLiteralAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
OctalLongLiteral
- Generated class or method.
-
createBinaryLongLiteralAdapter
public Adapter createBinaryLongLiteralAdapter()
This creates an adapter for aBinaryLongLiteral
.- Overrides:
createBinaryLongLiteralAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
BinaryLongLiteral
- Generated class or method.
-
createNullLiteralAdapter
public Adapter createNullLiteralAdapter()
This creates an adapter for aNullLiteral
.- Overrides:
createNullLiteralAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
NullLiteral
- Generated class or method.
-
createSuperAdapter
public Adapter createSuperAdapter()
This creates an adapter for aSuper
.- Overrides:
createSuperAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
Super
- Generated class or method.
-
createThisAdapter
public Adapter createThisAdapter()
This creates an adapter for aThis
.- Overrides:
createThisAdapter
in classLiteralsAdapterFactory
- Returns:
- the new adapter.
- See Also:
This
- Generated class or method.
-
getRootAdapterFactory
public ComposeableAdapterFactory getRootAdapterFactory()
This returns the root adapter factory that contains this factory.- Specified by:
getRootAdapterFactory
in interfaceComposeableAdapterFactory
- Generated class or method.
-
setParentAdapterFactory
public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory)
This sets the composed adapter factory that contains this factory.- Specified by:
setParentAdapterFactory
in interfaceComposeableAdapterFactory
- Generated class or method.
-
isFactoryForType
public boolean isFactoryForType(Object type)
- Specified by:
isFactoryForType
in interfaceAdapterFactory
- Overrides:
isFactoryForType
in classLiteralsAdapterFactory
- Returns:
- whether this factory is applicable for the type of the object.
- Generated class or method.
-
adapt
public Adapter adapt(Notifier notifier, Object type)
This implementation substitutes the factory itself as the key for the adapter.- Specified by:
adapt
in interfaceAdapterFactory
- Overrides:
adapt
in classAdapterFactoryImpl
- Generated class or method.
-
adapt
public Object adapt(Object object, Object type)
- Specified by:
adapt
in interfaceAdapterFactory
- Overrides:
adapt
in classAdapterFactoryImpl
- Generated class or method.
-
addListener
public void addListener(INotifyChangedListener notifyChangedListener)
This adds a listener.- Specified by:
addListener
in interfaceIChangeNotifier
- Generated class or method.
-
removeListener
public void removeListener(INotifyChangedListener notifyChangedListener)
This removes a listener.- Specified by:
removeListener
in interfaceIChangeNotifier
- Generated class or method.
-
fireNotifyChanged
public void fireNotifyChanged(Notification notification)
This delegates tochangeNotifier
and toparentAdapterFactory
.- Specified by:
fireNotifyChanged
in interfaceIChangeNotifier
- Generated class or method.
-
dispose
public void dispose()
This disposes all of the item providers created by this factory.- Specified by:
dispose
in interfaceIDisposable
- Generated class or method.
-
-