org.eclipse.xtext.util
Class XtextAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by org.eclipse.xtext.util.XtextAdapterFactory
All Implemented Interfaces:
org.eclipse.emf.common.notify.AdapterFactory

public class XtextAdapterFactory
extends org.eclipse.emf.common.notify.impl.AdapterFactoryImpl

The Adapter Factory for the model. It provides an adapter createXXX method for each class of the model.

See Also:
XtextPackage
EMF generated code

Field Summary
protected static XtextPackage modelPackage
          The cached model package.
protected  XtextSwitch<org.eclipse.emf.common.notify.Adapter> modelSwitch
          The switch that delegates to the createXXX methods.
 
Constructor Summary
XtextAdapterFactory()
          Creates an instance of the adapter factory.
 
Method Summary
 org.eclipse.emf.common.notify.Adapter createAbstractElementAdapter()
          Creates a new adapter for an object of class 'Abstract Element'.
 org.eclipse.emf.common.notify.Adapter createAbstractMetamodelDeclarationAdapter()
          Creates a new adapter for an object of class 'Abstract Metamodel Declaration'.
 org.eclipse.emf.common.notify.Adapter createAbstractNegatedTokenAdapter()
          Creates a new adapter for an object of class 'Abstract Negated Token'.
 org.eclipse.emf.common.notify.Adapter createAbstractRuleAdapter()
          Creates a new adapter for an object of class 'Abstract Rule'.
 org.eclipse.emf.common.notify.Adapter createActionAdapter()
          Creates a new adapter for an object of class 'Action'.
 org.eclipse.emf.common.notify.Adapter createAdapter(org.eclipse.emf.common.notify.Notifier target)
          Creates an adapter for the target.
 org.eclipse.emf.common.notify.Adapter createAlternativesAdapter()
          Creates a new adapter for an object of class 'Alternatives'.
 org.eclipse.emf.common.notify.Adapter createAssignmentAdapter()
          Creates a new adapter for an object of class 'Assignment'.
 org.eclipse.emf.common.notify.Adapter createCharacterRangeAdapter()
          Creates a new adapter for an object of class 'Character Range'.
 org.eclipse.emf.common.notify.Adapter createCompoundElementAdapter()
          Creates a new adapter for an object of class 'Compound Element'.
 org.eclipse.emf.common.notify.Adapter createCrossReferenceAdapter()
          Creates a new adapter for an object of class 'Cross Reference'.
 org.eclipse.emf.common.notify.Adapter createEnumLiteralDeclarationAdapter()
          Creates a new adapter for an object of class 'Enum Literal Declaration'.
 org.eclipse.emf.common.notify.Adapter createEnumRuleAdapter()
          Creates a new adapter for an object of class 'Enum Rule'.
 org.eclipse.emf.common.notify.Adapter createEObjectAdapter()
          Creates a new adapter for the default case.
 org.eclipse.emf.common.notify.Adapter createEOFAdapter()
          Creates a new adapter for an object of class 'EOF'.
 org.eclipse.emf.common.notify.Adapter createGeneratedMetamodelAdapter()
          Creates a new adapter for an object of class 'Generated Metamodel'.
 org.eclipse.emf.common.notify.Adapter createGrammarAdapter()
          Creates a new adapter for an object of class 'Grammar'.
 org.eclipse.emf.common.notify.Adapter createGroupAdapter()
          Creates a new adapter for an object of class 'Group'.
 org.eclipse.emf.common.notify.Adapter createKeywordAdapter()
          Creates a new adapter for an object of class 'Keyword'.
 org.eclipse.emf.common.notify.Adapter createNegatedTokenAdapter()
          Creates a new adapter for an object of class 'Negated Token'.
 org.eclipse.emf.common.notify.Adapter createParserRuleAdapter()
          Creates a new adapter for an object of class 'Parser Rule'.
 org.eclipse.emf.common.notify.Adapter createReferencedMetamodelAdapter()
          Creates a new adapter for an object of class 'Referenced Metamodel'.
 org.eclipse.emf.common.notify.Adapter createRuleCallAdapter()
          Creates a new adapter for an object of class 'Rule Call'.
 org.eclipse.emf.common.notify.Adapter createTerminalRuleAdapter()
          Creates a new adapter for an object of class 'Terminal Rule'.
 org.eclipse.emf.common.notify.Adapter createTypeRefAdapter()
          Creates a new adapter for an object of class 'Type Ref'.
 org.eclipse.emf.common.notify.Adapter createUnorderedGroupAdapter()
          Creates a new adapter for an object of class 'Unordered Group'.
 org.eclipse.emf.common.notify.Adapter createUntilTokenAdapter()
          Creates a new adapter for an object of class 'Until Token'.
 org.eclipse.emf.common.notify.Adapter createWildcardAdapter()
          Creates a new adapter for an object of class 'Wildcard'.
 boolean isFactoryForType(java.lang.Object object)
          Returns whether this factory is applicable for the type of the object.
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adapt, adapt, adaptAllNew, adaptNew, associate, createAdapter, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelPackage

protected static XtextPackage modelPackage
The cached model package.

EMF generated code

modelSwitch

protected XtextSwitch<org.eclipse.emf.common.notify.Adapter> modelSwitch
The switch that delegates to the createXXX methods.

EMF generated code
Constructor Detail

XtextAdapterFactory

public XtextAdapterFactory()
Creates an instance of the adapter factory.

EMF generated code
Method Detail

isFactoryForType

public boolean isFactoryForType(java.lang.Object object)
Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package or is an instance object of the model.

Specified by:
isFactoryForType in interface org.eclipse.emf.common.notify.AdapterFactory
Overrides:
isFactoryForType in class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
Returns:
whether this factory is applicable for the type of the object.
EMF generated code

createAdapter

public org.eclipse.emf.common.notify.Adapter createAdapter(org.eclipse.emf.common.notify.Notifier target)
Creates an adapter for the target.

Overrides:
createAdapter in class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
Parameters:
target - the object to adapt.
Returns:
the adapter for the target.
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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.
Since:
2.0
See Also:
EOF
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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
EMF generated code

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.
EMF generated code