Class KeywordStandardProvider


  • public class KeywordStandardProvider
    extends Object
    This is keyword provider. It maps grammars keywords to be able provide standard keyword register as they are declared in grammar or in CamelCase as some of them are terminal rules.
    • Constructor Detail

      • KeywordStandardProvider

        public KeywordStandardProvider​(BslGrammarAccess bslGrammar)
        Creates new instance with given bslGrammar
        Parameters:
        bslGrammar - The grammar to be used to get keywords, cannot be null
    • Method Detail

      • getStandard

        public String getStandard​(String keyword)
        Returns standard representation of the given keyword
        Parameters:
        keyword - The keyword to which standard shall be returned, cannot be null
        Returns:
        The standard representation of the keyword, cannot be null