Class StatementsItemProviderAdapterFactory
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
-
- org.emftext.language.java.statements.util.StatementsAdapterFactory
-
- org.emftext.language.java.statements.provider.StatementsItemProviderAdapterFactory
-
- All Implemented Interfaces:
AdapterFactory
,ComposeableAdapterFactory
,IChangeNotifier
,IDisposable
public class StatementsItemProviderAdapterFactory extends StatementsAdapterFactory 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 AssertItemProvider
assertItemProvider
This keeps track of the one adapter used for allAssert
instances.protected BlockItemProvider
blockItemProvider
This keeps track of the one adapter used for allBlock
instances.protected BreakItemProvider
breakItemProvider
This keeps track of the one adapter used for allBreak
instances.protected CatchBlockItemProvider
catchBlockItemProvider
This keeps track of the one adapter used for allCatchBlock
instances.protected IChangeNotifier
changeNotifier
This is used to implementIChangeNotifier
.protected ConditionItemProvider
conditionItemProvider
This keeps track of the one adapter used for allCondition
instances.protected ContinueItemProvider
continueItemProvider
This keeps track of the one adapter used for allContinue
instances.protected DefaultSwitchCaseItemProvider
defaultSwitchCaseItemProvider
This keeps track of the one adapter used for allDefaultSwitchCase
instances.protected DefaultSwitchRuleItemProvider
defaultSwitchRuleItemProvider
This keeps track of the one adapter used for allDefaultSwitchRule
instances.protected DoWhileLoopItemProvider
doWhileLoopItemProvider
This keeps track of the one adapter used for allDoWhileLoop
instances.protected EmptyStatementItemProvider
emptyStatementItemProvider
This keeps track of the one adapter used for allEmptyStatement
instances.protected ExpressionStatementItemProvider
expressionStatementItemProvider
This keeps track of the one adapter used for allExpressionStatement
instances.protected ForEachLoopItemProvider
forEachLoopItemProvider
This keeps track of the one adapter used for allForEachLoop
instances.protected ForLoopItemProvider
forLoopItemProvider
This keeps track of the one adapter used for allForLoop
instances.protected JumpLabelItemProvider
jumpLabelItemProvider
This keeps track of the one adapter used for allJumpLabel
instances.protected LocalVariableStatementItemProvider
localVariableStatementItemProvider
This keeps track of the one adapter used for allLocalVariableStatement
instances.protected NormalSwitchCaseItemProvider
normalSwitchCaseItemProvider
This keeps track of the one adapter used for allNormalSwitchCase
instances.protected NormalSwitchRuleItemProvider
normalSwitchRuleItemProvider
This keeps track of the one adapter used for allNormalSwitchRule
instances.protected ComposedAdapterFactory
parentAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory.protected ReturnItemProvider
returnItemProvider
This keeps track of the one adapter used for allReturn
instances.protected Collection<Object>
supportedTypes
This keeps track of all the supported types checked byisFactoryForType
.protected SwitchItemProvider
switchItemProvider
This keeps track of the one adapter used for allSwitch
instances.protected SynchronizedBlockItemProvider
synchronizedBlockItemProvider
This keeps track of the one adapter used for allSynchronizedBlock
instances.protected ThrowItemProvider
throwItemProvider
This keeps track of the one adapter used for allThrow
instances.protected TryBlockItemProvider
tryBlockItemProvider
This keeps track of the one adapter used for allTryBlock
instances.protected WhileLoopItemProvider
whileLoopItemProvider
This keeps track of the one adapter used for allWhileLoop
instances.protected YieldStatementItemProvider
yieldStatementItemProvider
This keeps track of the one adapter used for allYieldStatement
instances.-
Fields inherited from class org.emftext.language.java.statements.util.StatementsAdapterFactory
modelPackage, modelSwitch
-
-
Constructor Summary
Constructors Constructor Description StatementsItemProviderAdapterFactory()
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
createAssertAdapter()
This creates an adapter for aAssert
.Adapter
createBlockAdapter()
This creates an adapter for aBlock
.Adapter
createBreakAdapter()
This creates an adapter for aBreak
.Adapter
createCatchBlockAdapter()
This creates an adapter for aCatchBlock
.Adapter
createConditionAdapter()
This creates an adapter for aCondition
.Adapter
createContinueAdapter()
This creates an adapter for aContinue
.Adapter
createDefaultSwitchCaseAdapter()
This creates an adapter for aDefaultSwitchCase
.Adapter
createDefaultSwitchRuleAdapter()
This creates an adapter for aDefaultSwitchRule
.Adapter
createDoWhileLoopAdapter()
This creates an adapter for aDoWhileLoop
.Adapter
createEmptyStatementAdapter()
This creates an adapter for aEmptyStatement
.Adapter
createExpressionStatementAdapter()
This creates an adapter for aExpressionStatement
.Adapter
createForEachLoopAdapter()
This creates an adapter for aForEachLoop
.Adapter
createForLoopAdapter()
This creates an adapter for aForLoop
.Adapter
createJumpLabelAdapter()
This creates an adapter for aJumpLabel
.Adapter
createLocalVariableStatementAdapter()
This creates an adapter for aLocalVariableStatement
.Adapter
createNormalSwitchCaseAdapter()
This creates an adapter for aNormalSwitchCase
.Adapter
createNormalSwitchRuleAdapter()
This creates an adapter for aNormalSwitchRule
.Adapter
createReturnAdapter()
This creates an adapter for aReturn
.Adapter
createSwitchAdapter()
This creates an adapter for aSwitch
.Adapter
createSynchronizedBlockAdapter()
This creates an adapter for aSynchronizedBlock
.Adapter
createThrowAdapter()
This creates an adapter for aThrow
.Adapter
createTryBlockAdapter()
This creates an adapter for aTryBlock
.Adapter
createWhileLoopAdapter()
This creates an adapter for aWhileLoop
.Adapter
createYieldStatementAdapter()
This creates an adapter for aYieldStatement
.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.statements.util.StatementsAdapterFactory
createAdapter, createAdditiveExpressionChildAdapter, createAndExpressionChildAdapter, createAnnotationValueAdapter, createArrayInitializationValueAdapter, createAssignmentExpressionChildAdapter, createBlockContainerAdapter, createCommentableAdapter, createConditionalAdapter, createConditionalAndExpressionChildAdapter, createConditionalExpressionChildAdapter, createConditionalOrExpressionChildAdapter, createEObjectAdapter, createEqualityExpressionChildAdapter, createExclusiveOrExpressionChildAdapter, createExpressionAdapter, createForLoopInitializerAdapter, createInclusiveOrExpressionChildAdapter, createInstanceOfExpressionChildAdapter, createJumpAdapter, createLambdaBodyAdapter, createMemberAdapter, createModifiableAdapter, createMultiplicativeExpressionChildAdapter, createNamedElementAdapter, createRelationExpressionChildAdapter, createShiftExpressionChildAdapter, createStatementAdapter, createStatementContainerAdapter, createStatementListContainerAdapter, createSwitchCaseAdapter, createSwitchRuleAdapter, 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.
-
assertItemProvider
protected AssertItemProvider assertItemProvider
This keeps track of the one adapter used for allAssert
instances.- Generated class or method.
-
breakItemProvider
protected BreakItemProvider breakItemProvider
This keeps track of the one adapter used for allBreak
instances.- Generated class or method.
-
blockItemProvider
protected BlockItemProvider blockItemProvider
This keeps track of the one adapter used for allBlock
instances.- Generated class or method.
-
catchBlockItemProvider
protected CatchBlockItemProvider catchBlockItemProvider
This keeps track of the one adapter used for allCatchBlock
instances.- Generated class or method.
-
conditionItemProvider
protected ConditionItemProvider conditionItemProvider
This keeps track of the one adapter used for allCondition
instances.- Generated class or method.
-
continueItemProvider
protected ContinueItemProvider continueItemProvider
This keeps track of the one adapter used for allContinue
instances.- Generated class or method.
-
defaultSwitchCaseItemProvider
protected DefaultSwitchCaseItemProvider defaultSwitchCaseItemProvider
This keeps track of the one adapter used for allDefaultSwitchCase
instances.- Generated class or method.
-
doWhileLoopItemProvider
protected DoWhileLoopItemProvider doWhileLoopItemProvider
This keeps track of the one adapter used for allDoWhileLoop
instances.- Generated class or method.
-
emptyStatementItemProvider
protected EmptyStatementItemProvider emptyStatementItemProvider
This keeps track of the one adapter used for allEmptyStatement
instances.- Generated class or method.
-
expressionStatementItemProvider
protected ExpressionStatementItemProvider expressionStatementItemProvider
This keeps track of the one adapter used for allExpressionStatement
instances.- Generated class or method.
-
forLoopItemProvider
protected ForLoopItemProvider forLoopItemProvider
This keeps track of the one adapter used for allForLoop
instances.- Generated class or method.
-
forEachLoopItemProvider
protected ForEachLoopItemProvider forEachLoopItemProvider
This keeps track of the one adapter used for allForEachLoop
instances.- Generated class or method.
-
jumpLabelItemProvider
protected JumpLabelItemProvider jumpLabelItemProvider
This keeps track of the one adapter used for allJumpLabel
instances.- Generated class or method.
-
localVariableStatementItemProvider
protected LocalVariableStatementItemProvider localVariableStatementItemProvider
This keeps track of the one adapter used for allLocalVariableStatement
instances.- Generated class or method.
-
normalSwitchCaseItemProvider
protected NormalSwitchCaseItemProvider normalSwitchCaseItemProvider
This keeps track of the one adapter used for allNormalSwitchCase
instances.- Generated class or method.
-
returnItemProvider
protected ReturnItemProvider returnItemProvider
This keeps track of the one adapter used for allReturn
instances.- Generated class or method.
-
switchItemProvider
protected SwitchItemProvider switchItemProvider
This keeps track of the one adapter used for allSwitch
instances.- Generated class or method.
-
synchronizedBlockItemProvider
protected SynchronizedBlockItemProvider synchronizedBlockItemProvider
This keeps track of the one adapter used for allSynchronizedBlock
instances.- Generated class or method.
-
throwItemProvider
protected ThrowItemProvider throwItemProvider
This keeps track of the one adapter used for allThrow
instances.- Generated class or method.
-
tryBlockItemProvider
protected TryBlockItemProvider tryBlockItemProvider
This keeps track of the one adapter used for allTryBlock
instances.- Generated class or method.
-
whileLoopItemProvider
protected WhileLoopItemProvider whileLoopItemProvider
This keeps track of the one adapter used for allWhileLoop
instances.- Generated class or method.
-
yieldStatementItemProvider
protected YieldStatementItemProvider yieldStatementItemProvider
This keeps track of the one adapter used for allYieldStatement
instances.- Generated class or method.
-
defaultSwitchRuleItemProvider
protected DefaultSwitchRuleItemProvider defaultSwitchRuleItemProvider
This keeps track of the one adapter used for allDefaultSwitchRule
instances.- Generated class or method.
-
normalSwitchRuleItemProvider
protected NormalSwitchRuleItemProvider normalSwitchRuleItemProvider
This keeps track of the one adapter used for allNormalSwitchRule
instances.- Generated class or method.
-
-
Method Detail
-
createAssertAdapter
public Adapter createAssertAdapter()
This creates an adapter for aAssert
.- Overrides:
createAssertAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
Assert
- Generated class or method.
-
createBreakAdapter
public Adapter createBreakAdapter()
This creates an adapter for aBreak
.- Overrides:
createBreakAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
Break
- Generated class or method.
-
createBlockAdapter
public Adapter createBlockAdapter()
This creates an adapter for aBlock
.- Overrides:
createBlockAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
Block
- Generated class or method.
-
createCatchBlockAdapter
public Adapter createCatchBlockAdapter()
This creates an adapter for aCatchBlock
.- Overrides:
createCatchBlockAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
CatchBlock
- Generated class or method.
-
createConditionAdapter
public Adapter createConditionAdapter()
This creates an adapter for aCondition
.- Overrides:
createConditionAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
Condition
- Generated class or method.
-
createContinueAdapter
public Adapter createContinueAdapter()
This creates an adapter for aContinue
.- Overrides:
createContinueAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
Continue
- Generated class or method.
-
createDefaultSwitchCaseAdapter
public Adapter createDefaultSwitchCaseAdapter()
This creates an adapter for aDefaultSwitchCase
.- Overrides:
createDefaultSwitchCaseAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
DefaultSwitchCase
- Generated class or method.
-
createDoWhileLoopAdapter
public Adapter createDoWhileLoopAdapter()
This creates an adapter for aDoWhileLoop
.- Overrides:
createDoWhileLoopAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
DoWhileLoop
- Generated class or method.
-
createEmptyStatementAdapter
public Adapter createEmptyStatementAdapter()
This creates an adapter for aEmptyStatement
.- Overrides:
createEmptyStatementAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
EmptyStatement
- Generated class or method.
-
createExpressionStatementAdapter
public Adapter createExpressionStatementAdapter()
This creates an adapter for aExpressionStatement
.- Overrides:
createExpressionStatementAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
ExpressionStatement
- Generated class or method.
-
createForLoopAdapter
public Adapter createForLoopAdapter()
This creates an adapter for aForLoop
.- Overrides:
createForLoopAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
ForLoop
- Generated class or method.
-
createForEachLoopAdapter
public Adapter createForEachLoopAdapter()
This creates an adapter for aForEachLoop
.- Overrides:
createForEachLoopAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
ForEachLoop
- Generated class or method.
-
createJumpLabelAdapter
public Adapter createJumpLabelAdapter()
This creates an adapter for aJumpLabel
.- Overrides:
createJumpLabelAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
JumpLabel
- Generated class or method.
-
createLocalVariableStatementAdapter
public Adapter createLocalVariableStatementAdapter()
This creates an adapter for aLocalVariableStatement
.- Overrides:
createLocalVariableStatementAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
LocalVariableStatement
- Generated class or method.
-
createNormalSwitchCaseAdapter
public Adapter createNormalSwitchCaseAdapter()
This creates an adapter for aNormalSwitchCase
.- Overrides:
createNormalSwitchCaseAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
NormalSwitchCase
- Generated class or method.
-
createReturnAdapter
public Adapter createReturnAdapter()
This creates an adapter for aReturn
.- Overrides:
createReturnAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
Return
- Generated class or method.
-
createSwitchAdapter
public Adapter createSwitchAdapter()
This creates an adapter for aSwitch
.- Overrides:
createSwitchAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
Switch
- Generated class or method.
-
createSynchronizedBlockAdapter
public Adapter createSynchronizedBlockAdapter()
This creates an adapter for aSynchronizedBlock
.- Overrides:
createSynchronizedBlockAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
SynchronizedBlock
- Generated class or method.
-
createThrowAdapter
public Adapter createThrowAdapter()
This creates an adapter for aThrow
.- Overrides:
createThrowAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
Throw
- Generated class or method.
-
createTryBlockAdapter
public Adapter createTryBlockAdapter()
This creates an adapter for aTryBlock
.- Overrides:
createTryBlockAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
TryBlock
- Generated class or method.
-
createWhileLoopAdapter
public Adapter createWhileLoopAdapter()
This creates an adapter for aWhileLoop
.- Overrides:
createWhileLoopAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
WhileLoop
- Generated class or method.
-
createYieldStatementAdapter
public Adapter createYieldStatementAdapter()
This creates an adapter for aYieldStatement
.- Overrides:
createYieldStatementAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
YieldStatement
- Generated class or method.
-
createDefaultSwitchRuleAdapter
public Adapter createDefaultSwitchRuleAdapter()
This creates an adapter for aDefaultSwitchRule
.- Overrides:
createDefaultSwitchRuleAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
DefaultSwitchRule
- Generated class or method.
-
createNormalSwitchRuleAdapter
public Adapter createNormalSwitchRuleAdapter()
This creates an adapter for aNormalSwitchRule
.- Overrides:
createNormalSwitchRuleAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
NormalSwitchRule
- 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 classStatementsAdapterFactory
- 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.
-
-