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

6
LINES

< > BotCompany Repo | #1013475 // addReturnTypeToMethod

JavaX fragment (include)

static S addReturnTypeToMethod(S src, S returnType) {
  L<S> tok = javaTok(src);
  int i = tok_skipModifiers(tok, 1);
  tokPrepend(tok, i, returnType + " ");
  ret join(tok);
}

Author comment

Began life as a copy of #1013473

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: #1013475
Snippet name: addReturnTypeToMethod
Eternal ID of this version: #1013475/4
Text MD5: c829579ae8257a139493d240da53e4d4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-07 13:52:17
Source code size: 181 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 434 / 472
Version history: 3 change(s)
Referenced in: [show references]