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

13
LINES

< > BotCompany Repo | #1020878 // javaParser_makeAllPublic_shorter - use our own pretty printer with less empty lines [dev.]

JavaX fragment (include)

1  
please include function javaParser_makeAllPublic.
2  
3  
!include once #1020877 // PrettyPrintVisitor2
4  
5  
static S javaParser_makeAllPublic_shorter(S src) {
6  
  CompilationUnit cu = javaParseCompilationUnit(src);
7  
  new PrettyPrinterConfiguration ppconf;
8  
  ppconf.setIndent("  ");
9  
  ppconf.setPrintComments(false);
10  
  new javaParser_makeAllPublic_Visitor().visit(cu, null);
11  
  ppconf.setVisitorFactory(\conf -> PrettyPrintVisitor2(conf));
12  
  ret new PrettyPrinter(ppconf).print(cu);
13  
}

Author comment

Began life as a copy of #1011234

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020878
Snippet name: javaParser_makeAllPublic_shorter - use our own pretty printer with less empty lines [dev.]
Eternal ID of this version: #1020878/4
Text MD5: 95143b0e2cc0175544acb2f18b442de6
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-07 15:11:04
Source code size: 482 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 299 / 364
Version history: 3 change(s)
Referenced in: [show references]