Class ExpressionsItemProviderAdapterFactory
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
-
- org.emftext.language.java.expressions.util.ExpressionsAdapterFactory
-
- org.emftext.language.java.expressions.provider.ExpressionsItemProviderAdapterFactory
-
- All Implemented Interfaces:
AdapterFactory
,ComposeableAdapterFactory
,IChangeNotifier
,IDisposable
public class ExpressionsItemProviderAdapterFactory extends ExpressionsAdapterFactory 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 inherited from class org.emftext.language.java.expressions.util.ExpressionsAdapterFactory
modelPackage, modelSwitch
-
-
Constructor Summary
Constructors Constructor Description ExpressionsItemProviderAdapterFactory()
This constructs an instance.
-
Method Summary
-
Methods inherited from class org.emftext.language.java.expressions.util.ExpressionsAdapterFactory
createAdapter, createAdditiveExpressionChildAdapter, createAndExpressionChildAdapter, createAnnotationValueAdapter, createArrayInitializationValueAdapter, createArrayTypeableAdapter, createAssignmentExpressionChildAdapter, createCallTypeArgumentableAdapter, createCommentableAdapter, createConditionalAndExpressionChildAdapter, createConditionalExpressionChildAdapter, createConditionalOrExpressionChildAdapter, createEObjectAdapter, createEqualityExpressionChildAdapter, createExclusiveOrExpressionChildAdapter, createExpressionAdapter, createForLoopInitializerAdapter, createInclusiveOrExpressionChildAdapter, createInstanceOfExpressionChildAdapter, createLambdaBodyAdapter, createLambdaParametersAdapter, createMethodReferenceExpressionAdapter, createMethodReferenceExpressionChildAdapter, createMultiplicativeExpressionChildAdapter, createParametrizableAdapter, createPrimaryExpressionAdapter, createReferenceAdapter, createRelationExpressionChildAdapter, createShiftExpressionChildAdapter, createTypeArgumentableAdapter, createTypedElementAdapter, createUnaryExpressionChildAdapter, createUnaryModificationExpressionAdapter, 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.
-
expressionListItemProvider
protected ExpressionListItemProvider expressionListItemProvider
This keeps track of the one adapter used for allExpressionList
instances.- Generated class or method.
-
assignmentExpressionItemProvider
protected AssignmentExpressionItemProvider assignmentExpressionItemProvider
This keeps track of the one adapter used for allAssignmentExpression
instances.- Generated class or method.
-
conditionalExpressionItemProvider
protected ConditionalExpressionItemProvider conditionalExpressionItemProvider
This keeps track of the one adapter used for allConditionalExpression
instances.- Generated class or method.
-
conditionalOrExpressionItemProvider
protected ConditionalOrExpressionItemProvider conditionalOrExpressionItemProvider
This keeps track of the one adapter used for allConditionalOrExpression
instances.- Generated class or method.
-
conditionalAndExpressionItemProvider
protected ConditionalAndExpressionItemProvider conditionalAndExpressionItemProvider
This keeps track of the one adapter used for allConditionalAndExpression
instances.- Generated class or method.
-
inclusiveOrExpressionItemProvider
protected InclusiveOrExpressionItemProvider inclusiveOrExpressionItemProvider
This keeps track of the one adapter used for allInclusiveOrExpression
instances.- Generated class or method.
-
exclusiveOrExpressionItemProvider
protected ExclusiveOrExpressionItemProvider exclusiveOrExpressionItemProvider
This keeps track of the one adapter used for allExclusiveOrExpression
instances.- Generated class or method.
-
andExpressionItemProvider
protected AndExpressionItemProvider andExpressionItemProvider
This keeps track of the one adapter used for allAndExpression
instances.- Generated class or method.
-
equalityExpressionItemProvider
protected EqualityExpressionItemProvider equalityExpressionItemProvider
This keeps track of the one adapter used for allEqualityExpression
instances.- Generated class or method.
-
instanceOfExpressionItemProvider
protected InstanceOfExpressionItemProvider instanceOfExpressionItemProvider
This keeps track of the one adapter used for allInstanceOfExpression
instances.- Generated class or method.
-
relationExpressionItemProvider
protected RelationExpressionItemProvider relationExpressionItemProvider
This keeps track of the one adapter used for allRelationExpression
instances.- Generated class or method.
-
shiftExpressionItemProvider
protected ShiftExpressionItemProvider shiftExpressionItemProvider
This keeps track of the one adapter used for allShiftExpression
instances.- Generated class or method.
-
additiveExpressionItemProvider
protected AdditiveExpressionItemProvider additiveExpressionItemProvider
This keeps track of the one adapter used for allAdditiveExpression
instances.- Generated class or method.
-
multiplicativeExpressionItemProvider
protected MultiplicativeExpressionItemProvider multiplicativeExpressionItemProvider
This keeps track of the one adapter used for allMultiplicativeExpression
instances.- Generated class or method.
-
unaryExpressionItemProvider
protected UnaryExpressionItemProvider unaryExpressionItemProvider
This keeps track of the one adapter used for allUnaryExpression
instances.- Generated class or method.
-
prefixUnaryModificationExpressionItemProvider
protected PrefixUnaryModificationExpressionItemProvider prefixUnaryModificationExpressionItemProvider
This keeps track of the one adapter used for allPrefixUnaryModificationExpression
instances.- Generated class or method.
-
suffixUnaryModificationExpressionItemProvider
protected SuffixUnaryModificationExpressionItemProvider suffixUnaryModificationExpressionItemProvider
This keeps track of the one adapter used for allSuffixUnaryModificationExpression
instances.- Generated class or method.
-
castExpressionItemProvider
protected CastExpressionItemProvider castExpressionItemProvider
This keeps track of the one adapter used for allCastExpression
instances.- Generated class or method.
-
nestedExpressionItemProvider
protected NestedExpressionItemProvider nestedExpressionItemProvider
This keeps track of the one adapter used for allNestedExpression
instances.- Generated class or method.
-
primaryExpressionReferenceExpressionItemProvider
protected PrimaryExpressionReferenceExpressionItemProvider primaryExpressionReferenceExpressionItemProvider
This keeps track of the one adapter used for allPrimaryExpressionReferenceExpression
instances.- Generated class or method.
-
classTypeConstructorReferenceExpressionItemProvider
protected ClassTypeConstructorReferenceExpressionItemProvider classTypeConstructorReferenceExpressionItemProvider
This keeps track of the one adapter used for allClassTypeConstructorReferenceExpression
instances.- Generated class or method.
-
arrayConstructorReferenceExpressionItemProvider
protected ArrayConstructorReferenceExpressionItemProvider arrayConstructorReferenceExpressionItemProvider
This keeps track of the one adapter used for allArrayConstructorReferenceExpression
instances.- Generated class or method.
-
lambdaExpressionItemProvider
protected LambdaExpressionItemProvider lambdaExpressionItemProvider
This keeps track of the one adapter used for allLambdaExpression
instances.- Generated class or method.
-
explicitlyTypedLambdaParametersItemProvider
protected ExplicitlyTypedLambdaParametersItemProvider explicitlyTypedLambdaParametersItemProvider
This keeps track of the one adapter used for allExplicitlyTypedLambdaParameters
instances.- Generated class or method.
-
implicitlyTypedLambdaParametersItemProvider
protected ImplicitlyTypedLambdaParametersItemProvider implicitlyTypedLambdaParametersItemProvider
This keeps track of the one adapter used for allImplicitlyTypedLambdaParameters
instances.- Generated class or method.
-
singleImplicitLambdaParameterItemProvider
protected SingleImplicitLambdaParameterItemProvider singleImplicitLambdaParameterItemProvider
This keeps track of the one adapter used for allSingleImplicitLambdaParameter
instances.- Generated class or method.
-
-
Method Detail
-
createExpressionListAdapter
public Adapter createExpressionListAdapter()
This creates an adapter for aExpressionList
.- Overrides:
createExpressionListAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
ExpressionList
- Generated class or method.
-
createAssignmentExpressionAdapter
public Adapter createAssignmentExpressionAdapter()
This creates an adapter for aAssignmentExpression
.- Overrides:
createAssignmentExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
AssignmentExpression
- Generated class or method.
-
createConditionalExpressionAdapter
public Adapter createConditionalExpressionAdapter()
This creates an adapter for aConditionalExpression
.- Overrides:
createConditionalExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
ConditionalExpression
- Generated class or method.
-
createConditionalOrExpressionAdapter
public Adapter createConditionalOrExpressionAdapter()
This creates an adapter for aConditionalOrExpression
.- Overrides:
createConditionalOrExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
ConditionalOrExpression
- Generated class or method.
-
createConditionalAndExpressionAdapter
public Adapter createConditionalAndExpressionAdapter()
This creates an adapter for aConditionalAndExpression
.- Overrides:
createConditionalAndExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
ConditionalAndExpression
- Generated class or method.
-
createInclusiveOrExpressionAdapter
public Adapter createInclusiveOrExpressionAdapter()
This creates an adapter for aInclusiveOrExpression
.- Overrides:
createInclusiveOrExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
InclusiveOrExpression
- Generated class or method.
-
createExclusiveOrExpressionAdapter
public Adapter createExclusiveOrExpressionAdapter()
This creates an adapter for aExclusiveOrExpression
.- Overrides:
createExclusiveOrExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
ExclusiveOrExpression
- Generated class or method.
-
createAndExpressionAdapter
public Adapter createAndExpressionAdapter()
This creates an adapter for aAndExpression
.- Overrides:
createAndExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
AndExpression
- Generated class or method.
-
createEqualityExpressionAdapter
public Adapter createEqualityExpressionAdapter()
This creates an adapter for aEqualityExpression
.- Overrides:
createEqualityExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
EqualityExpression
- Generated class or method.
-
createInstanceOfExpressionAdapter
public Adapter createInstanceOfExpressionAdapter()
This creates an adapter for aInstanceOfExpression
.- Overrides:
createInstanceOfExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
InstanceOfExpression
- Generated class or method.
-
createRelationExpressionAdapter
public Adapter createRelationExpressionAdapter()
This creates an adapter for aRelationExpression
.- Overrides:
createRelationExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
RelationExpression
- Generated class or method.
-
createShiftExpressionAdapter
public Adapter createShiftExpressionAdapter()
This creates an adapter for aShiftExpression
.- Overrides:
createShiftExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
ShiftExpression
- Generated class or method.
-
createAdditiveExpressionAdapter
public Adapter createAdditiveExpressionAdapter()
This creates an adapter for aAdditiveExpression
.- Overrides:
createAdditiveExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
AdditiveExpression
- Generated class or method.
-
createMultiplicativeExpressionAdapter
public Adapter createMultiplicativeExpressionAdapter()
This creates an adapter for aMultiplicativeExpression
.- Overrides:
createMultiplicativeExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
MultiplicativeExpression
- Generated class or method.
-
createUnaryExpressionAdapter
public Adapter createUnaryExpressionAdapter()
This creates an adapter for aUnaryExpression
.- Overrides:
createUnaryExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
UnaryExpression
- Generated class or method.
-
createPrefixUnaryModificationExpressionAdapter
public Adapter createPrefixUnaryModificationExpressionAdapter()
This creates an adapter for aPrefixUnaryModificationExpression
.- Overrides:
createPrefixUnaryModificationExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
PrefixUnaryModificationExpression
- Generated class or method.
-
createSuffixUnaryModificationExpressionAdapter
public Adapter createSuffixUnaryModificationExpressionAdapter()
This creates an adapter for aSuffixUnaryModificationExpression
.- Overrides:
createSuffixUnaryModificationExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
SuffixUnaryModificationExpression
- Generated class or method.
-
createCastExpressionAdapter
public Adapter createCastExpressionAdapter()
This creates an adapter for aCastExpression
.- Overrides:
createCastExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
CastExpression
- Generated class or method.
-
createNestedExpressionAdapter
public Adapter createNestedExpressionAdapter()
This creates an adapter for aNestedExpression
.- Overrides:
createNestedExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
NestedExpression
- Generated class or method.
-
createPrimaryExpressionReferenceExpressionAdapter
public Adapter createPrimaryExpressionReferenceExpressionAdapter()
This creates an adapter for aPrimaryExpressionReferenceExpression
.- Overrides:
createPrimaryExpressionReferenceExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
PrimaryExpressionReferenceExpression
- Generated class or method.
-
createClassTypeConstructorReferenceExpressionAdapter
public Adapter createClassTypeConstructorReferenceExpressionAdapter()
This creates an adapter for aClassTypeConstructorReferenceExpression
.- Overrides:
createClassTypeConstructorReferenceExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
ClassTypeConstructorReferenceExpression
- Generated class or method.
-
createArrayConstructorReferenceExpressionAdapter
public Adapter createArrayConstructorReferenceExpressionAdapter()
This creates an adapter for aArrayConstructorReferenceExpression
.- Overrides:
createArrayConstructorReferenceExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
ArrayConstructorReferenceExpression
- Generated class or method.
-
createLambdaExpressionAdapter
public Adapter createLambdaExpressionAdapter()
This creates an adapter for aLambdaExpression
.- Overrides:
createLambdaExpressionAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
LambdaExpression
- Generated class or method.
-
createExplicitlyTypedLambdaParametersAdapter
public Adapter createExplicitlyTypedLambdaParametersAdapter()
This creates an adapter for aExplicitlyTypedLambdaParameters
.- Overrides:
createExplicitlyTypedLambdaParametersAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
ExplicitlyTypedLambdaParameters
- Generated class or method.
-
createImplicitlyTypedLambdaParametersAdapter
public Adapter createImplicitlyTypedLambdaParametersAdapter()
This creates an adapter for aImplicitlyTypedLambdaParameters
.- Overrides:
createImplicitlyTypedLambdaParametersAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
ImplicitlyTypedLambdaParameters
- Generated class or method.
-
createSingleImplicitLambdaParameterAdapter
public Adapter createSingleImplicitLambdaParameterAdapter()
This creates an adapter for aSingleImplicitLambdaParameter
.- Overrides:
createSingleImplicitLambdaParameterAdapter
in classExpressionsAdapterFactory
- Returns:
- the new adapter.
- See Also:
SingleImplicitLambdaParameter
- 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 classExpressionsAdapterFactory
- 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.
-
-