Java 类org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessExtensions 实例源码

项目:xtext-extras    文件:KeywordHelper.java   
public KeywordHelper(Grammar grammar, boolean ignoreCase) {
    super(grammar, ignoreCase, new GrammarAccessExtensions());
}
项目:xtext-extras    文件:GrammarAccessUtil.java   
/**
 * @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;
}
项目:xtext-core    文件:KeywordHelper.java   
public KeywordHelper(Grammar grammar, boolean ignoreCase, GrammarAccessExtensions grammarUtil) {
    this.ignoreCase = ignoreCase;
    this.grammarUtil = grammarUtil;
    keywordValueToToken = createKeywordMap(grammar);
    grammar.eResource().getResourceSet().eAdapters().add(this);
}