public KeywordHelper(Grammar grammar, boolean ignoreCase) { super(grammar, ignoreCase, new GrammarAccessExtensions()); }
/** * @since 2.7 */ public static String serialize(EObject obj, String prefix, String lineDelimiter) { ISerializer serializer = getSerializer(lineDelimiter); String result = GrammarAccessExtensions.grammarFragmentToString(serializer, obj, prefix); return result; }
public KeywordHelper(Grammar grammar, boolean ignoreCase, GrammarAccessExtensions grammarUtil) { this.ignoreCase = ignoreCase; this.grammarUtil = grammarUtil; keywordValueToToken = createKeywordMap(grammar); grammar.eResource().getResourceSet().eAdapters().add(this); }