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

11
LINES

< > BotCompany Repo | #1011231 // printJavaParserTree

JavaX fragment (include)

1  
static void printJavaParserTree(Node node) {
2  
  if (node == null) ret with print("null");
3  
  print(shortClassName(node));
4  
  threadIndent();
5  
  try {
6  
    for (Node child : node.getChildNodes())
7  
      printJavaParserTree(child);
8  
  } finally {
9  
    threadUnindent();
10  
  }
11  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1011231
Snippet name: printJavaParserTree
Eternal ID of this version: #1011231/1
Text MD5: 6b3337313086e0829d4f4603a5efee52
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-19 16:19:11
Source code size: 275 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 348 / 364
Referenced in: [show references]