Java 类org.antlr.runtime.tree.TreeParser 实例源码

项目:JavaGraph    文件:ParseTree.java   
/** Creates a tree parser for a given tree of this kind. */
public <P extends TreeParser> P createTreeParser(Class<P> parserType, I info) {
    try {
        // instantiate the parser
        ParseTreeAdaptor<T,I> adaptor = new ParseTreeAdaptor<>(this);
        Constructor<P> parserConstructor = parserType.getConstructor(TreeNodeStream.class);
        P result = parserConstructor.newInstance(adaptor.createTreeNodeStream(this));
        Method adaptorSetter = parserType.getMethod("setTreeAdaptor", TreeAdaptor.class);
        adaptorSetter.invoke(result, adaptor);
        callInitialise(result, info);
        return result;
    } catch (Exception e) {
        throw toRuntime(e);
    }
}
项目:zjdroid    文件:smaliTreeWalker.java   
public TreeParser[] getDelegates() {
    return new TreeParser[] {};
}
项目:AppTroy    文件:smaliTreeWalker.java   
public TreeParser[] getDelegates() {
    return new TreeParser[] {};
}
项目:ZJDroid    文件:smaliTreeWalker.java   
public TreeParser[] getDelegates() {
    return new TreeParser[] {};
}
项目:ZjDroid-master    文件:smaliTreeWalker.java   
public TreeParser[] getDelegates() {
    return new TreeParser[] {};
}
项目:HeyGirl    文件:smaliTreeWalker.java   
public TreeParser[] getDelegates() {
    return new TreeParser[] {};
}
项目:VectorAttackScanner    文件:smaliTreeWalker.java   
public TreeParser[] getDelegates() {
    return new TreeParser[] {};
}
项目:ZjDroid    文件:smaliTreeWalker.java   
public TreeParser[] getDelegates() {
    return new TreeParser[] {};
}
项目:tesora-dve-pub    文件:Utils.java   
public String extractLine(TreeParser parser, RecognitionException e) {
    return extractLine(parser.getTreeNodeStream().getTokenStream(), e);
}
项目:cordovastudio    文件:CSSTreeParser.java   
public TreeParser[] getDelegates() {
    return new TreeParser[] {};
}