org.eclipse.xtext
Interface Grammar

All Superinterfaces:
org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier
All Known Implementing Classes:
GrammarImpl

public interface Grammar
extends org.eclipse.emf.ecore.EObject

A representation of the model object 'Grammar'.

The following features are supported:

See Also:
XtextPackage.getGrammar()
EMF generated code
EMF model element

Method Summary
 org.eclipse.emf.common.util.EList<AbstractRule> getHiddenTokens()
          Returns the value of the 'Hidden Tokens' reference list.
 org.eclipse.emf.common.util.EList<AbstractMetamodelDeclaration> getMetamodelDeclarations()
          Returns the value of the 'Metamodel Declarations' containment reference list.
 java.lang.String getName()
          Returns the value of the 'Name' attribute.
 org.eclipse.emf.common.util.EList<AbstractRule> getRules()
          Returns the value of the 'Rules' containment reference list.
 org.eclipse.emf.common.util.EList<Grammar> getUsedGrammars()
          Returns the value of the 'Used Grammars' reference list.
 boolean isDefinesHiddenTokens()
          Returns the value of the 'Defines Hidden Tokens' attribute.
 void setDefinesHiddenTokens(boolean value)
          Sets the value of the 'Defines Hidden Tokens' attribute.
 void setName(java.lang.String value)
          Sets the value of the 'Name' attribute.
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getName

java.lang.String getName()
Returns the value of the 'Name' attribute.

If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Name' attribute.
See Also:
setName(String), XtextPackage.getGrammar_Name()
EMF generated code
EMF model element

setName

void setName(java.lang.String value)
Sets the value of the 'Name' attribute.

Parameters:
value - the new value of the 'Name' attribute.
See Also:
getName()
EMF generated code

getUsedGrammars

org.eclipse.emf.common.util.EList<Grammar> getUsedGrammars()
Returns the value of the 'Used Grammars' reference list. The list contents are of type Grammar.

If the meaning of the 'Used Grammars' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Used Grammars' reference list.
See Also:
XtextPackage.getGrammar_UsedGrammars()
EMF generated code
EMF model element

isDefinesHiddenTokens

boolean isDefinesHiddenTokens()
Returns the value of the 'Defines Hidden Tokens' attribute.

If the meaning of the 'Defines Hidden Tokens' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Defines Hidden Tokens' attribute.
See Also:
setDefinesHiddenTokens(boolean), XtextPackage.getGrammar_DefinesHiddenTokens()
EMF generated code
EMF model element

setDefinesHiddenTokens

void setDefinesHiddenTokens(boolean value)
Sets the value of the 'Defines Hidden Tokens' attribute.

Parameters:
value - the new value of the 'Defines Hidden Tokens' attribute.
See Also:
isDefinesHiddenTokens()
EMF generated code

getHiddenTokens

org.eclipse.emf.common.util.EList<AbstractRule> getHiddenTokens()
Returns the value of the 'Hidden Tokens' reference list. The list contents are of type AbstractRule.

If the meaning of the 'Hidden Tokens' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Hidden Tokens' reference list.
See Also:
XtextPackage.getGrammar_HiddenTokens()
EMF generated code
EMF model element

getMetamodelDeclarations

org.eclipse.emf.common.util.EList<AbstractMetamodelDeclaration> getMetamodelDeclarations()
Returns the value of the 'Metamodel Declarations' containment reference list. The list contents are of type AbstractMetamodelDeclaration.

If the meaning of the 'Metamodel Declarations' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Metamodel Declarations' containment reference list.
See Also:
XtextPackage.getGrammar_MetamodelDeclarations()
EMF generated code
EMF model element
containment="true"

getRules

org.eclipse.emf.common.util.EList<AbstractRule> getRules()
Returns the value of the 'Rules' containment reference list. The list contents are of type AbstractRule.

If the meaning of the 'Rules' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Rules' containment reference list.
See Also:
XtextPackage.getGrammar_Rules()
EMF generated code
EMF model element
containment="true"