有人可以给我澄清visit方法的第二个参数arg的用法,如JavaParser documentation example page的以下代码所示? 我在互联网上找不到任何信息。 public class MethodPrinter {
public static void main(String[] args) throws Exception {
// creates
我试图编码rfc度量(响应类),它计数方法声明+方法调用。 方法声明工作正常,但我在使用JavaParser API计数方法调用时遇到了问题。 这里是我的代码: public class MethodPrinter {
public static void main(String[] args) throws Exception {
// creates an input
使用JavaParser类我可以用得到我的方法和字段列表: //List of all methods
System.out.println("Methods: " + this.toString());
List<TypeDeclaration> types = n.getTypes();
for (TypeDeclaration type : types)
{
List<Bo