org.eclipse.xtext.generator.parser.antlr.debug.simpleAntlr.util
Class SimpleAntlrAdapterFactory

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
      extended by org.eclipse.xtext.generator.parser.antlr.debug.simpleAntlr.util.SimpleAntlrAdapterFactory
All Implemented Interfaces:
org.eclipse.emf.common.notify.AdapterFactory

public class SimpleAntlrAdapterFactory
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:
SimpleAntlrPackage
EMF generated code

Field Summary
protected static SimpleAntlrPackage modelPackage
          The cached model package
protected  SimpleAntlrSwitch<org.eclipse.emf.common.notify.Adapter> modelSwitch
          The switch that delegates to the createXXX methods
 
Constructor Summary
SimpleAntlrAdapterFactory()
          Creates an instance of the adapter factory
 
Method Summary
 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 createAntlrGrammarAdapter()
          Creates a new adapter for an object of class 'Antlr Grammar'
 org.eclipse.emf.common.notify.Adapter createElementWithCardinalityAdapter()
          Creates a new adapter for an object of class 'Element With Cardinality'
 org.eclipse.emf.common.notify.Adapter createEObjectAdapter()
          Creates a new adapter for the default case
 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 createNegatedElementAdapter()
          Creates a new adapter for an object of class 'Negated Element'
 org.eclipse.emf.common.notify.Adapter createOptionsAdapter()
          Creates a new adapter for an object of class 'Options'
 org.eclipse.emf.common.notify.Adapter createOptionValueAdapter()
          Creates a new adapter for an object of class 'Option Value'
 org.eclipse.emf.common.notify.Adapter createPredicatedAdapter()
          Creates a new adapter for an object of class 'Predicated'
 org.eclipse.emf.common.notify.Adapter createRuleAdapter()
          Creates a new adapter for an object of class 'Rule'
 org.eclipse.emf.common.notify.Adapter createRuleCallAdapter()
          Creates a new adapter for an object of class 'Rule Call'
 org.eclipse.emf.common.notify.Adapter createRuleElementAdapter()
          Creates a new adapter for an object of class 'Rule Element'
 org.eclipse.emf.common.notify.Adapter createRuleOptionsAdapter()
          Creates a new adapter for an object of class 'Rule Options'
 org.eclipse.emf.common.notify.Adapter createSkipAdapter()
          Creates a new adapter for an object of class 'Skip'
 org.eclipse.emf.common.notify.Adapter createUntilElementAdapter()
          Creates a new adapter for an object of class 'Until Element'
 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 SimpleAntlrPackage modelPackage
The cached model package.

EMF generated code

modelSwitch

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

EMF generated code
Constructor Detail

SimpleAntlrAdapterFactory

public SimpleAntlrAdapterFactory()
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

createAntlrGrammarAdapter

public org.eclipse.emf.common.notify.Adapter createAntlrGrammarAdapter()
Creates a new adapter for an object of class 'Antlr 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:
AntlrGrammar
EMF generated code

createOptionsAdapter

public org.eclipse.emf.common.notify.Adapter createOptionsAdapter()
Creates a new adapter for an object of class 'Options'. 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:
Options
EMF generated code

createOptionValueAdapter

public org.eclipse.emf.common.notify.Adapter createOptionValueAdapter()
Creates a new adapter for an object of class 'Option Value'. 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:
OptionValue
EMF generated code

createRuleAdapter

public org.eclipse.emf.common.notify.Adapter createRuleAdapter()
Creates a new adapter for an object of class '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:
Rule
EMF generated code

createRuleElementAdapter

public org.eclipse.emf.common.notify.Adapter createRuleElementAdapter()
Creates a new adapter for an object of class 'Rule 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:
RuleElement
EMF generated code

createPredicatedAdapter

public org.eclipse.emf.common.notify.Adapter createPredicatedAdapter()
Creates a new adapter for an object of class 'Predicated'. 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:
Predicated
EMF generated code

createRuleOptionsAdapter

public org.eclipse.emf.common.notify.Adapter createRuleOptionsAdapter()
Creates a new adapter for an object of class 'Rule Options'. 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:
RuleOptions
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

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

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

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

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

createElementWithCardinalityAdapter

public org.eclipse.emf.common.notify.Adapter createElementWithCardinalityAdapter()
Creates a new adapter for an object of class 'Element With Cardinality'. 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:
ElementWithCardinality
EMF generated code

createNegatedElementAdapter

public org.eclipse.emf.common.notify.Adapter createNegatedElementAdapter()
Creates a new adapter for an object of class 'Negated 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:
NegatedElement
EMF generated code

createUntilElementAdapter

public org.eclipse.emf.common.notify.Adapter createUntilElementAdapter()
Creates a new adapter for an object of class 'Until 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:
UntilElement
EMF generated code

createSkipAdapter

public org.eclipse.emf.common.notify.Adapter createSkipAdapter()
Creates a new adapter for an object of class 'Skip'. 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:
Skip
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