please include function javaParser_makeAllPublic. please include function javaParseCompilationUnit. static S javaParser_makeAllPublic_keepComments(S src) { //CompilationUnit cu = javaParseCompilationUnit(src); CompilationUnit cu = JavaParser.parse(src); new PrettyPrinterConfiguration ppconf; ppconf.setPrintComments(true); ppconf.setIndent(" "); new javaParser_makeAllPublic_Visitor().visit(cu, null); ret cu.toString(ppconf); }