Package org.eclipse.xtext.impl
Class GrammarImpl
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.BasicNotifierImpl
-
- org.eclipse.emf.ecore.impl.BasicEObjectImpl
-
- org.eclipse.emf.ecore.impl.MinimalEObjectImpl
-
- org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
-
- org.eclipse.xtext.impl.GrammarImpl
-
- All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier
,org.eclipse.emf.ecore.EObject
,org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
,org.eclipse.emf.ecore.InternalEObject
,Grammar
public class GrammarImpl extends org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container implements Grammar
An implementation of the model object 'Grammar'.The following features are implemented:
- Generated:
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container.Dynamic
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
-
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
-
-
Field Summary
Fields Modifier and Type Field Description protected static boolean
DEFINES_HIDDEN_TOKENS_EDEFAULT
The default value of the 'Defines Hidden Tokens
' attribute.protected boolean
definesHiddenTokens
The cached value of the 'Defines Hidden Tokens
' attribute.protected org.eclipse.emf.common.util.EList<AbstractRule>
hiddenTokens
The cached value of the 'Hidden Tokens
' reference list.protected org.eclipse.emf.common.util.EList<AbstractMetamodelDeclaration>
metamodelDeclarations
The cached value of the 'Metamodel Declarations
' containment reference list.protected java.lang.String
name
The cached value of the 'Name
' attribute.protected static java.lang.String
NAME_EDEFAULT
The default value of the 'Name
' attribute.protected org.eclipse.emf.common.util.EList<AbstractRule>
rules
The cached value of the 'Rules
' containment reference list.protected org.eclipse.emf.common.util.EList<Grammar>
usedGrammars
The cached value of the 'Used Grammars
' reference list.-
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrammarImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
eGet(int featureID, boolean resolve, boolean coreType)
org.eclipse.emf.common.notify.NotificationChain
eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
boolean
eIsSet(int featureID)
void
eSet(int featureID, java.lang.Object newValue)
protected org.eclipse.emf.ecore.EClass
eStaticClass()
void
eUnset(int featureID)
org.eclipse.emf.common.util.EList<AbstractRule>
getHiddenTokens()
org.eclipse.emf.common.util.EList<AbstractMetamodelDeclaration>
getMetamodelDeclarations()
java.lang.String
getName()
org.eclipse.emf.common.util.EList<AbstractRule>
getRules()
org.eclipse.emf.common.util.EList<Grammar>
getUsedGrammars()
boolean
isDefinesHiddenTokens()
void
setDefinesHiddenTokens(boolean newDefinesHiddenTokens)
void
setName(java.lang.String newName)
java.lang.String
toString()
-
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eBasicSetContainer, eInternalContainer
-
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapterListeners, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetAdapterListeners, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eContents, eCrossReferences, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetDirectResource, eSetProxyURI, eSettings
-
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
-
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_EDEFAULT
protected static final java.lang.String NAME_EDEFAULT
The default value of the 'Name
' attribute.- See Also:
getName()
- Generated:
- Ordered:
-
name
protected java.lang.String name
The cached value of the 'Name
' attribute.- See Also:
getName()
- Generated:
- Ordered:
-
usedGrammars
protected org.eclipse.emf.common.util.EList<Grammar> usedGrammars
The cached value of the 'Used Grammars
' reference list.- See Also:
getUsedGrammars()
- Generated:
- Ordered:
-
DEFINES_HIDDEN_TOKENS_EDEFAULT
protected static final boolean DEFINES_HIDDEN_TOKENS_EDEFAULT
The default value of the 'Defines Hidden Tokens
' attribute.- See Also:
isDefinesHiddenTokens()
, Constant Field Values- Generated:
- Ordered:
-
definesHiddenTokens
protected boolean definesHiddenTokens
The cached value of the 'Defines Hidden Tokens
' attribute.- See Also:
isDefinesHiddenTokens()
- Generated:
- Ordered:
-
hiddenTokens
protected org.eclipse.emf.common.util.EList<AbstractRule> hiddenTokens
The cached value of the 'Hidden Tokens
' reference list.- See Also:
getHiddenTokens()
- Generated:
- Ordered:
-
metamodelDeclarations
protected org.eclipse.emf.common.util.EList<AbstractMetamodelDeclaration> metamodelDeclarations
The cached value of the 'Metamodel Declarations
' containment reference list.- See Also:
getMetamodelDeclarations()
- Generated:
- Ordered:
-
rules
protected org.eclipse.emf.common.util.EList<AbstractRule> rules
The cached value of the 'Rules
' containment reference list.- See Also:
getRules()
- Generated:
- Ordered:
-
-
Method Detail
-
eStaticClass
protected org.eclipse.emf.ecore.EClass eStaticClass()
- Overrides:
eStaticClass
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
- Generated:
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceGrammar
- Returns:
- the value of the 'Name' attribute.
- See Also:
Grammar.setName(String)
,XtextPackage.getGrammar_Name()
- Generated:
-
setName
public void setName(java.lang.String newName)
- Specified by:
setName
in interfaceGrammar
- Parameters:
newName
- the new value of the 'Name' attribute.- See Also:
Grammar.getName()
- Generated:
-
getUsedGrammars
public org.eclipse.emf.common.util.EList<Grammar> getUsedGrammars()
- Specified by:
getUsedGrammars
in interfaceGrammar
- Returns:
- the value of the 'Used Grammars' reference list.
- See Also:
XtextPackage.getGrammar_UsedGrammars()
- Generated:
-
isDefinesHiddenTokens
public boolean isDefinesHiddenTokens()
- Specified by:
isDefinesHiddenTokens
in interfaceGrammar
- Returns:
- the value of the 'Defines Hidden Tokens' attribute.
- See Also:
Grammar.setDefinesHiddenTokens(boolean)
,XtextPackage.getGrammar_DefinesHiddenTokens()
- Generated:
-
setDefinesHiddenTokens
public void setDefinesHiddenTokens(boolean newDefinesHiddenTokens)
- Specified by:
setDefinesHiddenTokens
in interfaceGrammar
- Parameters:
newDefinesHiddenTokens
- the new value of the 'Defines Hidden Tokens' attribute.- See Also:
Grammar.isDefinesHiddenTokens()
- Generated:
-
getHiddenTokens
public org.eclipse.emf.common.util.EList<AbstractRule> getHiddenTokens()
- Specified by:
getHiddenTokens
in interfaceGrammar
- Returns:
- the value of the 'Hidden Tokens' reference list.
- See Also:
XtextPackage.getGrammar_HiddenTokens()
- Generated:
-
getMetamodelDeclarations
public org.eclipse.emf.common.util.EList<AbstractMetamodelDeclaration> getMetamodelDeclarations()
- Specified by:
getMetamodelDeclarations
in interfaceGrammar
- Returns:
- the value of the 'Metamodel Declarations' containment reference list.
- See Also:
XtextPackage.getGrammar_MetamodelDeclarations()
- Generated:
-
getRules
public org.eclipse.emf.common.util.EList<AbstractRule> getRules()
- Specified by:
getRules
in interfaceGrammar
- Returns:
- the value of the 'Rules' containment reference list.
- See Also:
XtextPackage.getGrammar_Rules()
- Generated:
-
eInverseRemove
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
- Overrides:
eInverseRemove
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
- Generated:
-
eGet
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
- Specified by:
eGet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eGet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
- Generated:
-
eSet
public void eSet(int featureID, java.lang.Object newValue)
- Specified by:
eSet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eSet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
- Generated:
-
eUnset
public void eUnset(int featureID)
- Specified by:
eUnset
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eUnset
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
- Generated:
-
eIsSet
public boolean eIsSet(int featureID)
- Specified by:
eIsSet
in interfaceorg.eclipse.emf.ecore.InternalEObject
- Overrides:
eIsSet
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
- Generated:
-
toString
public java.lang.String toString()
- Overrides:
toString
in classorg.eclipse.emf.ecore.impl.BasicEObjectImpl
- Generated:
-
-