Package org.eclipse.xtext.util
Class XtextAdapterFactory
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
-
- org.eclipse.xtext.util.XtextAdapterFactory
-
- All Implemented Interfaces:
org.eclipse.emf.common.notify.AdapterFactory
public class XtextAdapterFactory extends org.eclipse.emf.common.notify.impl.AdapterFactoryImplThe Adapter Factory for the model. It provides an adaptercreateXXXmethod for each class of the model.- See Also:
XtextPackage- Generated:
-
-
Field Summary
Fields Modifier and Type Field Description protected static XtextPackagemodelPackageThe cached model package.protected XtextSwitch<org.eclipse.emf.common.notify.Adapter>modelSwitchThe switch that delegates to thecreateXXXmethods.
-
Constructor Summary
Constructors Constructor Description XtextAdapterFactory()Creates an instance of the adapter factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.common.notify.AdaptercreateAbstractElementAdapter()Creates a new adapter for an object of class 'Abstract Element'.org.eclipse.emf.common.notify.AdaptercreateAbstractMetamodelDeclarationAdapter()Creates a new adapter for an object of class 'Abstract Metamodel Declaration'.org.eclipse.emf.common.notify.AdaptercreateAbstractNegatedTokenAdapter()Creates a new adapter for an object of class 'Abstract Negated Token'.org.eclipse.emf.common.notify.AdaptercreateAbstractRuleAdapter()Creates a new adapter for an object of class 'Abstract Rule'.org.eclipse.emf.common.notify.AdaptercreateActionAdapter()Creates a new adapter for an object of class 'Action'.org.eclipse.emf.common.notify.AdaptercreateAdapter(org.eclipse.emf.common.notify.Notifier target)Creates an adapter for thetarget.org.eclipse.emf.common.notify.AdaptercreateAlternativesAdapter()Creates a new adapter for an object of class 'Alternatives'.org.eclipse.emf.common.notify.AdaptercreateAnnotationAdapter()Creates a new adapter for an object of class 'Annotation'.org.eclipse.emf.common.notify.AdaptercreateAssignmentAdapter()Creates a new adapter for an object of class 'Assignment'.org.eclipse.emf.common.notify.AdaptercreateCharacterRangeAdapter()Creates a new adapter for an object of class 'Character Range'.org.eclipse.emf.common.notify.AdaptercreateCompositeConditionAdapter()Creates a new adapter for an object of class 'Composite Condition'.org.eclipse.emf.common.notify.AdaptercreateCompoundElementAdapter()Creates a new adapter for an object of class 'Compound Element'.org.eclipse.emf.common.notify.AdaptercreateConditionAdapter()Creates a new adapter for an object of class 'Condition'.org.eclipse.emf.common.notify.AdaptercreateConjunctionAdapter()Creates a new adapter for an object of class 'Conjunction'.org.eclipse.emf.common.notify.AdaptercreateCrossReferenceAdapter()Creates a new adapter for an object of class 'Cross Reference'.org.eclipse.emf.common.notify.AdaptercreateDisjunctionAdapter()Creates a new adapter for an object of class 'Disjunction'.org.eclipse.emf.common.notify.AdaptercreateEnumLiteralDeclarationAdapter()Creates a new adapter for an object of class 'Enum Literal Declaration'.org.eclipse.emf.common.notify.AdaptercreateEnumRuleAdapter()Creates a new adapter for an object of class 'Enum Rule'.org.eclipse.emf.common.notify.AdaptercreateEObjectAdapter()Creates a new adapter for the default case.org.eclipse.emf.common.notify.AdaptercreateEOFAdapter()Creates a new adapter for an object of class 'EOF'.org.eclipse.emf.common.notify.AdaptercreateGeneratedMetamodelAdapter()Creates a new adapter for an object of class 'Generated Metamodel'.org.eclipse.emf.common.notify.AdaptercreateGrammarAdapter()Creates a new adapter for an object of class 'Grammar'.org.eclipse.emf.common.notify.AdaptercreateGroupAdapter()Creates a new adapter for an object of class 'Group'.org.eclipse.emf.common.notify.AdaptercreateKeywordAdapter()Creates a new adapter for an object of class 'Keyword'.org.eclipse.emf.common.notify.AdaptercreateLiteralConditionAdapter()Creates a new adapter for an object of class 'Literal Condition'.org.eclipse.emf.common.notify.AdaptercreateNamedArgumentAdapter()Creates a new adapter for an object of class 'Named Argument'.org.eclipse.emf.common.notify.AdaptercreateNegatedTokenAdapter()Creates a new adapter for an object of class 'Negated Token'.org.eclipse.emf.common.notify.AdaptercreateNegationAdapter()Creates a new adapter for an object of class 'Negation'.org.eclipse.emf.common.notify.AdaptercreateParameterAdapter()Creates a new adapter for an object of class 'Parameter'.org.eclipse.emf.common.notify.AdaptercreateParameterReferenceAdapter()Creates a new adapter for an object of class 'Parameter Reference'.org.eclipse.emf.common.notify.AdaptercreateParserRuleAdapter()Creates a new adapter for an object of class 'Parser Rule'.org.eclipse.emf.common.notify.AdaptercreateReferencedMetamodelAdapter()Creates a new adapter for an object of class 'Referenced Metamodel'.org.eclipse.emf.common.notify.AdaptercreateRuleCallAdapter()Creates a new adapter for an object of class 'Rule Call'.org.eclipse.emf.common.notify.AdaptercreateTerminalRuleAdapter()Creates a new adapter for an object of class 'Terminal Rule'.org.eclipse.emf.common.notify.AdaptercreateTypeRefAdapter()Creates a new adapter for an object of class 'Type Ref'.org.eclipse.emf.common.notify.AdaptercreateUnorderedGroupAdapter()Creates a new adapter for an object of class 'Unordered Group'.org.eclipse.emf.common.notify.AdaptercreateUntilTokenAdapter()Creates a new adapter for an object of class 'Until Token'.org.eclipse.emf.common.notify.AdaptercreateWildcardAdapter()Creates a new adapter for an object of class 'Wildcard'.booleanisFactoryForType(java.lang.Object object)Returns whether this factory is applicable for the type of the object.
-
-
-
Field Detail
-
modelPackage
protected static XtextPackage modelPackage
The cached model package.- Generated:
-
modelSwitch
protected XtextSwitch<org.eclipse.emf.common.notify.Adapter> modelSwitch
The switch that delegates to thecreateXXXmethods.- Generated:
-
-
Method Detail
-
isFactoryForType
public boolean isFactoryForType(java.lang.Object object)
Returns whether this factory is applicable for the type of the object. This implementation returnstrueif the object is either the model's package or is an instance object of the model.- Specified by:
isFactoryForTypein interfaceorg.eclipse.emf.common.notify.AdapterFactory- Overrides:
isFactoryForTypein classorg.eclipse.emf.common.notify.impl.AdapterFactoryImpl- Returns:
- whether this factory is applicable for the type of the object.
- Generated:
-
createAdapter
public org.eclipse.emf.common.notify.Adapter createAdapter(org.eclipse.emf.common.notify.Notifier target)
Creates an adapter for thetarget.- Overrides:
createAdapterin classorg.eclipse.emf.common.notify.impl.AdapterFactoryImpl- Parameters:
target- the object to adapt.- Returns:
- the adapter for the
target. - Generated:
-
createGrammarAdapter
public org.eclipse.emf.common.notify.Adapter createGrammarAdapter()
Creates a new adapter for an object of class 'Grammar'. 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:
Grammar- Generated:
-
createAbstractRuleAdapter
public org.eclipse.emf.common.notify.Adapter createAbstractRuleAdapter()
Creates a new adapter for an object of class 'Abstract Rule'. 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:
AbstractRule- Generated:
-
createAbstractMetamodelDeclarationAdapter
public org.eclipse.emf.common.notify.Adapter createAbstractMetamodelDeclarationAdapter()
Creates a new adapter for an object of class 'Abstract Metamodel Declaration'. 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:
AbstractMetamodelDeclaration- Generated:
-
createGeneratedMetamodelAdapter
public org.eclipse.emf.common.notify.Adapter createGeneratedMetamodelAdapter()
Creates a new adapter for an object of class 'Generated Metamodel'. 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:
GeneratedMetamodel- Generated:
-
createReferencedMetamodelAdapter
public org.eclipse.emf.common.notify.Adapter createReferencedMetamodelAdapter()
Creates a new adapter for an object of class 'Referenced Metamodel'. 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:
ReferencedMetamodel- Generated:
-
createParserRuleAdapter
public org.eclipse.emf.common.notify.Adapter createParserRuleAdapter()
Creates a new adapter for an object of class 'Parser Rule'. 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:
ParserRule- Generated:
-
createTypeRefAdapter
public org.eclipse.emf.common.notify.Adapter createTypeRefAdapter()
Creates a new adapter for an object of class 'Type Ref'. 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:
TypeRef- Generated:
-
createAbstractElementAdapter
public org.eclipse.emf.common.notify.Adapter createAbstractElementAdapter()
Creates a new adapter for an object of class 'Abstract Element'. 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:
AbstractElement- Generated:
-
createActionAdapter
public org.eclipse.emf.common.notify.Adapter createActionAdapter()
Creates a new adapter for an object of class 'Action'. 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:
Action- Generated:
-
createKeywordAdapter
public org.eclipse.emf.common.notify.Adapter createKeywordAdapter()
Creates a new adapter for an object of class 'Keyword'. 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:
Keyword- Generated:
-
createRuleCallAdapter
public org.eclipse.emf.common.notify.Adapter createRuleCallAdapter()
Creates a new adapter for an object of class 'Rule Call'. 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:
RuleCall- Generated:
-
createAssignmentAdapter
public org.eclipse.emf.common.notify.Adapter createAssignmentAdapter()
Creates a new adapter for an object of class 'Assignment'. 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:
Assignment- Generated:
-
createCrossReferenceAdapter
public org.eclipse.emf.common.notify.Adapter createCrossReferenceAdapter()
Creates a new adapter for an object of class 'Cross Reference'. 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:
CrossReference- Generated:
-
createTerminalRuleAdapter
public org.eclipse.emf.common.notify.Adapter createTerminalRuleAdapter()
Creates a new adapter for an object of class 'Terminal Rule'. 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:
TerminalRule- Generated:
-
createAbstractNegatedTokenAdapter
public org.eclipse.emf.common.notify.Adapter createAbstractNegatedTokenAdapter()
Creates a new adapter for an object of class 'Abstract Negated Token'. 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:
AbstractNegatedToken- Generated:
-
createNegatedTokenAdapter
public org.eclipse.emf.common.notify.Adapter createNegatedTokenAdapter()
Creates a new adapter for an object of class 'Negated Token'. 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:
NegatedToken- Generated:
-
createUntilTokenAdapter
public org.eclipse.emf.common.notify.Adapter createUntilTokenAdapter()
Creates a new adapter for an object of class 'Until Token'. 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:
UntilToken- Generated:
-
createWildcardAdapter
public org.eclipse.emf.common.notify.Adapter createWildcardAdapter()
Creates a new adapter for an object of class 'Wildcard'. 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:
Wildcard- Generated:
-
createEnumRuleAdapter
public org.eclipse.emf.common.notify.Adapter createEnumRuleAdapter()
Creates a new adapter for an object of class 'Enum Rule'. 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:
EnumRule- Generated:
-
createEnumLiteralDeclarationAdapter
public org.eclipse.emf.common.notify.Adapter createEnumLiteralDeclarationAdapter()
Creates a new adapter for an object of class 'Enum Literal Declaration'. 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:
EnumLiteralDeclaration- Generated:
-
createAlternativesAdapter
public org.eclipse.emf.common.notify.Adapter createAlternativesAdapter()
Creates a new adapter for an object of class 'Alternatives'. 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:
Alternatives- Generated:
-
createUnorderedGroupAdapter
public org.eclipse.emf.common.notify.Adapter createUnorderedGroupAdapter()
Creates a new adapter for an object of class 'Unordered Group'. 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:
UnorderedGroup- Generated:
-
createGroupAdapter
public org.eclipse.emf.common.notify.Adapter createGroupAdapter()
Creates a new adapter for an object of class 'Group'. 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:
Group- Generated:
-
createCharacterRangeAdapter
public org.eclipse.emf.common.notify.Adapter createCharacterRangeAdapter()
Creates a new adapter for an object of class 'Character Range'. 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:
CharacterRange- Generated:
-
createCompoundElementAdapter
public org.eclipse.emf.common.notify.Adapter createCompoundElementAdapter()
Creates a new adapter for an object of class 'Compound Element'. 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:
CompoundElement- Generated:
-
createEOFAdapter
public org.eclipse.emf.common.notify.Adapter createEOFAdapter()
Creates a new adapter for an object of class 'EOF'. 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:
EOF- Generated:
-
createParameterAdapter
public org.eclipse.emf.common.notify.Adapter createParameterAdapter()
Creates a new adapter for an object of class 'Parameter'. 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.
- Since:
- 2.9
- See Also:
Parameter- Generated:
-
createNamedArgumentAdapter
public org.eclipse.emf.common.notify.Adapter createNamedArgumentAdapter()
Creates a new adapter for an object of class 'Named Argument'. 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.
- Since:
- 2.9
- See Also:
NamedArgument- Generated:
-
createConditionAdapter
public org.eclipse.emf.common.notify.Adapter createConditionAdapter()
Creates a new adapter for an object of class 'Condition'. 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.
- Since:
- 2.9
- See Also:
Condition- Generated:
-
createConjunctionAdapter
public org.eclipse.emf.common.notify.Adapter createConjunctionAdapter()
Creates a new adapter for an object of class 'Conjunction'. 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.
- Since:
- 2.9
- See Also:
Conjunction- Generated:
-
createNegationAdapter
public org.eclipse.emf.common.notify.Adapter createNegationAdapter()
Creates a new adapter for an object of class 'Negation'. 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.
- Since:
- 2.9
- See Also:
Negation- Generated:
-
createDisjunctionAdapter
public org.eclipse.emf.common.notify.Adapter createDisjunctionAdapter()
Creates a new adapter for an object of class 'Disjunction'. 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.
- Since:
- 2.9
- See Also:
Disjunction- Generated:
-
createCompositeConditionAdapter
public org.eclipse.emf.common.notify.Adapter createCompositeConditionAdapter()
Creates a new adapter for an object of class 'Composite Condition'. 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.
- Since:
- 2.9
- See Also:
CompositeCondition- Generated:
-
createParameterReferenceAdapter
public org.eclipse.emf.common.notify.Adapter createParameterReferenceAdapter()
Creates a new adapter for an object of class 'Parameter Reference'. 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.
- Since:
- 2.9
- See Also:
ParameterReference- Generated:
-
createLiteralConditionAdapter
public org.eclipse.emf.common.notify.Adapter createLiteralConditionAdapter()
Creates a new adapter for an object of class 'Literal Condition'. 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.
- Since:
- 2.9
- See Also:
LiteralCondition- Generated:
-
createAnnotationAdapter
public org.eclipse.emf.common.notify.Adapter createAnnotationAdapter()
Creates a new adapter for an object of class 'Annotation'. 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:
Annotation- Generated:
-
createEObjectAdapter
public org.eclipse.emf.common.notify.Adapter createEObjectAdapter()
Creates a new adapter for the default case. This default implementation returns null.- Returns:
- the new adapter.
- Generated:
-
-