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

9
LINES

< > BotCompany Repo | #1014458 - javaParser_reparse_keepComments

JavaX fragment (include)

please include function javaParser_makeAllPublic.
please include function javaParseCompilationUnit.

static S javaParser_reparse_keepComments(S src) {
  CompilationUnit cu = JavaParser.parse(src);
  new PrettyPrinterConfiguration ppconf;
  ppconf.setIndent("  ");
  ret cu.toString(ppconf);
}

Author comment

Began life as a copy of #1011643

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: #1014458
Snippet name: javaParser_reparse_keepComments
Eternal ID of this version: #1014458/4
Text MD5: 8ac88644bb9c0b477df31ba950f66d99
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-22 01:01:15
Source code size: 300 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 156 / 172
Version history: 3 change(s)
Referenced in: [show references]

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