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

13
LINES

< > BotCompany Repo | #1001959 // callHtmlMethod

JavaX fragment (include)

1  
// o can be a class, then we search for a static method called "html".
2  
static S callHtmlMethod(Object o, S uri) {
3  
  ret callHtmlMethod(o, uri, null);
4  
}
5  
6  
static S callHtmlMethod(Object o, S uri, Map<S, S> params) {
7  
  S s = (S) callOpt(o, "html", uri, params);
8  
  if (s == null)
9  
    s = (S) callOpt(o, "html", uri);
10  
  if (s == null)
11  
    s = (S) callOpt(o, "html");
12  
  ret s;
13  
}

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: #1001959
Snippet name: callHtmlMethod
Eternal ID of this version: #1001959/1
Text MD5: b4dca0af9328e02fd15d4d61d997714b
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-13 21:26:45
Source code size: 386 bytes / 13 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 678 / 1405
Referenced in: [show references]