Class KeywordHelper
- java.lang.Object
-
- org.eclipse.xtext.xtext.generator.parser.antlr.KeywordHelper
-
- All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter
public class KeywordHelper extends java.lang.Object implements org.eclipse.emf.common.notify.Adapter
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<java.lang.String>
keywordComparator
-
Constructor Summary
Constructors Constructor Description KeywordHelper(org.eclipse.xtext.Grammar grammar, boolean ignoreCase, GrammarAccessExtensions grammarUtil)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
discardHelper(org.eclipse.xtext.Grammar grammar)
java.util.Set<java.lang.String>
getAllKeywords()
static KeywordHelper
getHelper(org.eclipse.emf.ecore.EObject context)
java.lang.String
getKeywordValue(java.lang.String ruleName)
java.lang.String
getRuleName(java.lang.String keywordValue)
org.eclipse.emf.common.notify.Notifier
getTarget()
boolean
isAdapterForType(java.lang.Object type)
boolean
isKeywordRule(java.lang.String ruleName)
void
notifyChanged(org.eclipse.emf.common.notify.Notification notification)
void
setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
-
-
-
Constructor Detail
-
KeywordHelper
public KeywordHelper(org.eclipse.xtext.Grammar grammar, boolean ignoreCase, GrammarAccessExtensions grammarUtil)
-
-
Method Detail
-
discardHelper
public void discardHelper(org.eclipse.xtext.Grammar grammar)
-
getHelper
public static KeywordHelper getHelper(org.eclipse.emf.ecore.EObject context)
-
getRuleName
public java.lang.String getRuleName(java.lang.String keywordValue)
-
getKeywordValue
public java.lang.String getKeywordValue(java.lang.String ruleName)
-
isKeywordRule
public boolean isKeywordRule(java.lang.String ruleName)
-
getAllKeywords
public java.util.Set<java.lang.String> getAllKeywords()
-
getTarget
public org.eclipse.emf.common.notify.Notifier getTarget()
- Specified by:
getTarget
in interfaceorg.eclipse.emf.common.notify.Adapter
-
isAdapterForType
public boolean isAdapterForType(java.lang.Object type)
- Specified by:
isAdapterForType
in interfaceorg.eclipse.emf.common.notify.Adapter
-
notifyChanged
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
- Specified by:
notifyChanged
in interfaceorg.eclipse.emf.common.notify.Adapter
-
setTarget
public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
- Specified by:
setTarget
in interfaceorg.eclipse.emf.common.notify.Adapter
-
-