Class KeywordHelper

  • All Implemented Interfaces:
    org.eclipse.emf.common.notify.Adapter

    public class KeywordHelper
    extends java.lang.Object
    implements org.eclipse.emf.common.notify.Adapter
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter

        org.eclipse.emf.common.notify.Adapter.Internal
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.Comparator<java.lang.String> keywordComparator  
    • Field Detail

      • keywordComparator

        public static final java.util.Comparator<java.lang.String> keywordComparator
    • 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 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