SyntaxTreeXmlFilter.java 文件源码

java
阅读 20 收藏 0 点赞 0 评论 0

项目:JavaSharp 作者:
@Override
public void parse(String javaSourcePath) throws SAXException, IOException {
    // parse the Java file(s) with the ANTLR generated parser
    JavaParser.CompilationUnitContext ctx = readSourceFile(javaSourcePath);
    // visit the AST with the XmlEmittingVisitor, which generates SAX events
    startDocument();
    XmlEmittingVisitor visitor = new XmlEmittingVisitor(this, (BufferedTokenStream) parser.getTokenStream());
    visitor.visit(ctx);
    endDocument();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号