Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1011643 - javaParser_makeAllPublic_keepComments

JavaX fragment (include)

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.setIndent("  ");
  new javaParser_makeAllPublic_Visitor().visit(cu, null);
  ret cu.toString(ppconf);
}

Author comment

Began life as a copy of #1011234

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1011643
Snippet name: javaParser_makeAllPublic_keepComments
Eternal ID of this version: #1011643/4
Text MD5: 1a8a24ee258df49299b2db9fd34b4d6f
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-01 20:33:23
Source code size: 422 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 153 / 180
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1011643 & http://1011643.tinybrain.de