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

8
LINES

< > BotCompany Repo | #1033359 // tok_selfNestedType

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5284L/30K).

svoid tok_selfNestedType(LS tok, S nestedName, S simpleName, bool legacy) {
  jreplace(tok, nestedName + "< <id> >", "\*simpleName*/<\*simpleName*/<$3>>");
  jreplace(tok, nestedName + "< <id><<id>> >", "\*simpleName*/<\*simpleName*/<$3<$5>>>");
  jreplace(tok, nestedName + "<?>", "\*simpleName*/<\*simpleName*/<?>>");
  jreplace(tok, nestedName, legacy
    ? "\*simpleName*/<\*simpleName*/>"
    : "\*simpleName*/<\*simpleName*/<?>>");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033359
Snippet name: tok_selfNestedType
Eternal ID of this version: #1033359/1
Text MD5: c9885bb343f1f650c65d7ccba3a53077
Transpilation MD5: 657e589d45821105ea761a7eb5e789e3
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-25 02:11:33
Source code size: 446 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 171 / 240
Referenced in: [show references]