org.eclipse.xtext.generator.parser.antlr.ex.common
Class KeywordHelper

java.lang.Object
  extended by org.eclipse.xtext.generator.parser.antlr.ex.common.KeywordHelper
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter

public class KeywordHelper
extends java.lang.Object
implements org.eclipse.emf.common.notify.Adapter

Author:
Sebastian Zarnekow - Initial contribution and API, Heiko Behrens

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Field Summary
static java.util.Comparator<java.lang.String> keywordComparator
           
 
Constructor Summary
KeywordHelper(Grammar grammar, boolean ignoreCase)
           
 
Method Summary
 void discardHelper(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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keywordComparator

public static final java.util.Comparator<java.lang.String> keywordComparator
Constructor Detail

KeywordHelper

public KeywordHelper(Grammar grammar,
                     boolean ignoreCase)
Method Detail

discardHelper

public void discardHelper(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 interface org.eclipse.emf.common.notify.Adapter

isAdapterForType

public boolean isAdapterForType(java.lang.Object type)
Specified by:
isAdapterForType in interface org.eclipse.emf.common.notify.Adapter

notifyChanged

public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
Specified by:
notifyChanged in interface org.eclipse.emf.common.notify.Adapter

setTarget

public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
Specified by:
setTarget in interface org.eclipse.emf.common.notify.Adapter