@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();
}
SyntaxTreeXmlFilter.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:JavaSharp
作者:
评论列表
文章目录