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 to
fireNotifyChanged
.
The adapters also support Eclipse property sheets.
Note that most of the adapters are shared among multiple instances.
- Generated class or method.
-
Field Summary
Modifier and TypeFieldDescriptionprotected AssertItemProvider
This keeps track of the one adapter used for allAssert
instances.protected BlockItemProvider
This keeps track of the one adapter used for allBlock
instances.protected BreakItemProvider
This keeps track of the one adapter used for allBreak
instances.protected CatchBlockItemProvider
This keeps track of the one adapter used for allCatchBlock
instances.protected IChangeNotifier
This is used to implementIChangeNotifier
.protected ConditionItemProvider
This keeps track of the one adapter used for allCondition
instances.protected ContinueItemProvider
This keeps track of the one adapter used for allContinue
instances.protected DefaultSwitchCaseItemProvider
This keeps track of the one adapter used for allDefaultSwitchCase
instances.protected DefaultSwitchRuleItemProvider
This keeps track of the one adapter used for allDefaultSwitchRule
instances.protected DoWhileLoopItemProvider
This keeps track of the one adapter used for allDoWhileLoop
instances.protected EmptyStatementItemProvider
This keeps track of the one adapter used for allEmptyStatement
instances.protected ExpressionStatementItemProvider
This keeps track of the one adapter used for allExpressionStatement
instances.protected ForEachLoopItemProvider
This keeps track of the one adapter used for allForEachLoop
instances.protected ForLoopItemProvider
This keeps track of the one adapter used for allForLoop
instances.protected JumpLabelItemProvider
This keeps track of the one adapter used for allJumpLabel
instances.protected LocalVariableStatementItemProvider
This keeps track of the one adapter used for allLocalVariableStatement
instances.protected NormalSwitchCaseItemProvider
This keeps track of the one adapter used for allNormalSwitchCase
instances.protected NormalSwitchRuleItemProvider
This keeps track of the one adapter used for allNormalSwitchRule
instances.protected ComposedAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory.protected ReturnItemProvider
This keeps track of the one adapter used for allReturn
instances.protected Collection<Object>
This keeps track of all the supported types checked byisFactoryForType
.protected SwitchItemProvider
This keeps track of the one adapter used for allSwitch
instances.protected SynchronizedBlockItemProvider
This keeps track of the one adapter used for allSynchronizedBlock
instances.protected ThrowItemProvider
This keeps track of the one adapter used for allThrow
instances.protected TryBlockItemProvider
This keeps track of the one adapter used for allTryBlock
instances.protected WhileLoopItemProvider
This keeps track of the one adapter used for allWhileLoop
instances.protected 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
-
Method Summary
Modifier and TypeMethodDescriptionThis implementation substitutes the factory itself as the key for the adapter.void
addListener
(INotifyChangedListener notifyChangedListener) This adds a listener.This creates an adapter for aAssert
.This creates an adapter for aBlock
.This creates an adapter for aBreak
.This creates an adapter for aCatchBlock
.This creates an adapter for aCondition
.This creates an adapter for aContinue
.This creates an adapter for aDefaultSwitchCase
.This creates an adapter for aDefaultSwitchRule
.This creates an adapter for aDoWhileLoop
.This creates an adapter for aEmptyStatement
.This creates an adapter for aExpressionStatement
.This creates an adapter for aForEachLoop
.This creates an adapter for aForLoop
.This creates an adapter for aJumpLabel
.This creates an adapter for aLocalVariableStatement
.This creates an adapter for aNormalSwitchCase
.This creates an adapter for aNormalSwitchRule
.This creates an adapter for aReturn
.This creates an adapter for aSwitch
.This creates an adapter for aSynchronizedBlock
.This creates an adapter for aThrow
.This creates an adapter for aTryBlock
.This creates an adapter for aWhileLoop
.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
.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 Details
-
parentAdapterFactory
This keeps track of the root adapter factory that delegates to this adapter factory.- Generated class or method.
-
changeNotifier
This is used to implementIChangeNotifier
.- Generated class or method.
-
supportedTypes
This keeps track of all the supported types checked byisFactoryForType
.- Generated class or method.
-
assertItemProvider
This keeps track of the one adapter used for allAssert
instances.- Generated class or method.
-
breakItemProvider
This keeps track of the one adapter used for allBreak
instances.- Generated class or method.
-
blockItemProvider
This keeps track of the one adapter used for allBlock
instances.- Generated class or method.
-
catchBlockItemProvider
This keeps track of the one adapter used for allCatchBlock
instances.- Generated class or method.
-
conditionItemProvider
This keeps track of the one adapter used for allCondition
instances.- Generated class or method.
-
continueItemProvider
This keeps track of the one adapter used for allContinue
instances.- Generated class or method.
-
defaultSwitchCaseItemProvider
This keeps track of the one adapter used for allDefaultSwitchCase
instances.- Generated class or method.
-
doWhileLoopItemProvider
This keeps track of the one adapter used for allDoWhileLoop
instances.- Generated class or method.
-
emptyStatementItemProvider
This keeps track of the one adapter used for allEmptyStatement
instances.- Generated class or method.
-
expressionStatementItemProvider
This keeps track of the one adapter used for allExpressionStatement
instances.- Generated class or method.
-
forLoopItemProvider
This keeps track of the one adapter used for allForLoop
instances.- Generated class or method.
-
forEachLoopItemProvider
This keeps track of the one adapter used for allForEachLoop
instances.- Generated class or method.
-
jumpLabelItemProvider
This keeps track of the one adapter used for allJumpLabel
instances.- Generated class or method.
-
localVariableStatementItemProvider
This keeps track of the one adapter used for allLocalVariableStatement
instances.- Generated class or method.
-
normalSwitchCaseItemProvider
This keeps track of the one adapter used for allNormalSwitchCase
instances.- Generated class or method.
-
returnItemProvider
This keeps track of the one adapter used for allReturn
instances.- Generated class or method.
-
switchItemProvider
This keeps track of the one adapter used for allSwitch
instances.- Generated class or method.
-
synchronizedBlockItemProvider
This keeps track of the one adapter used for allSynchronizedBlock
instances.- Generated class or method.
-
throwItemProvider
This keeps track of the one adapter used for allThrow
instances.- Generated class or method.
-
tryBlockItemProvider
This keeps track of the one adapter used for allTryBlock
instances.- Generated class or method.
-
whileLoopItemProvider
This keeps track of the one adapter used for allWhileLoop
instances.- Generated class or method.
-
yieldStatementItemProvider
This keeps track of the one adapter used for allYieldStatement
instances.- Generated class or method.
-
defaultSwitchRuleItemProvider
This keeps track of the one adapter used for allDefaultSwitchRule
instances.- Generated class or method.
-
normalSwitchRuleItemProvider
This keeps track of the one adapter used for allNormalSwitchRule
instances.- Generated class or method.
-
-
Constructor Details
-
StatementsItemProviderAdapterFactory
public StatementsItemProviderAdapterFactory()This constructs an instance.- Generated class or method.
-
-
Method Details
-
createAssertAdapter
This creates an adapter for aAssert
.- Overrides:
createAssertAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createBreakAdapter
This creates an adapter for aBreak
.- Overrides:
createBreakAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createBlockAdapter
This creates an adapter for aBlock
.- Overrides:
createBlockAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createCatchBlockAdapter
This creates an adapter for aCatchBlock
.- Overrides:
createCatchBlockAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createConditionAdapter
This creates an adapter for aCondition
.- Overrides:
createConditionAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createContinueAdapter
This creates an adapter for aContinue
.- Overrides:
createContinueAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createDefaultSwitchCaseAdapter
This creates an adapter for aDefaultSwitchCase
.- Overrides:
createDefaultSwitchCaseAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createDoWhileLoopAdapter
This creates an adapter for aDoWhileLoop
.- Overrides:
createDoWhileLoopAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createEmptyStatementAdapter
This creates an adapter for aEmptyStatement
.- Overrides:
createEmptyStatementAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createExpressionStatementAdapter
This creates an adapter for aExpressionStatement
.- Overrides:
createExpressionStatementAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createForLoopAdapter
This creates an adapter for aForLoop
.- Overrides:
createForLoopAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createForEachLoopAdapter
This creates an adapter for aForEachLoop
.- Overrides:
createForEachLoopAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createJumpLabelAdapter
This creates an adapter for aJumpLabel
.- Overrides:
createJumpLabelAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createLocalVariableStatementAdapter
This creates an adapter for aLocalVariableStatement
.- Overrides:
createLocalVariableStatementAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createNormalSwitchCaseAdapter
This creates an adapter for aNormalSwitchCase
.- Overrides:
createNormalSwitchCaseAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createReturnAdapter
This creates an adapter for aReturn
.- Overrides:
createReturnAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createSwitchAdapter
This creates an adapter for aSwitch
.- Overrides:
createSwitchAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createSynchronizedBlockAdapter
This creates an adapter for aSynchronizedBlock
.- Overrides:
createSynchronizedBlockAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createThrowAdapter
This creates an adapter for aThrow
.- Overrides:
createThrowAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createTryBlockAdapter
This creates an adapter for aTryBlock
.- Overrides:
createTryBlockAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createWhileLoopAdapter
This creates an adapter for aWhileLoop
.- Overrides:
createWhileLoopAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createYieldStatementAdapter
This creates an adapter for aYieldStatement
.- Overrides:
createYieldStatementAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createDefaultSwitchRuleAdapter
This creates an adapter for aDefaultSwitchRule
.- Overrides:
createDefaultSwitchRuleAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
createNormalSwitchRuleAdapter
This creates an adapter for aNormalSwitchRule
.- Overrides:
createNormalSwitchRuleAdapter
in classStatementsAdapterFactory
- Returns:
- the new adapter.
- See Also:
- Generated class or method.
-
getRootAdapterFactory
This returns the root adapter factory that contains this factory.- Specified by:
getRootAdapterFactory
in interfaceComposeableAdapterFactory
- Generated class or method.
-
setParentAdapterFactory
This sets the composed adapter factory that contains this factory.- Specified by:
setParentAdapterFactory
in interfaceComposeableAdapterFactory
- Generated class or method.
-
isFactoryForType
- 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
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
- Specified by:
adapt
in interfaceAdapterFactory
- Overrides:
adapt
in classAdapterFactoryImpl
- Generated class or method.
-
addListener
This adds a listener.- Specified by:
addListener
in interfaceIChangeNotifier
- Generated class or method.
-
removeListener
This removes a listener.- Specified by:
removeListener
in interfaceIChangeNotifier
- Generated class or method.
-
fireNotifyChanged
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.
-