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

10
LINES

< > BotCompany Repo | #1029810 - eleu_callModuleHTMLMethod

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

Libraryless. Click here for Pure Java version (2801L/17K).

sO eleu_callModuleHTMLMethod(O module, O req) {
  dm_call(module, 'setEleu, mc());
  Method htmlMethod = first(singleArgumentMethods(findMethodsNamed_nonSynthetic(dm_mod(module), "html")));
  if (htmlMethod == null) fail("HTML method not found in module " + module);
  Class reqType = firstMethodArgumentType(htmlMethod);
  O wrappedReq = req;
  if (isInterface(reqType))
    wrappedReq = proxy(reqType, req);
  ret dm_call(module, 'html, wrappedReq);
}

download  show line numbers  debug dex   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, tvejysmllsmz

No comments. add comment

Snippet ID: #1029810
Snippet name: eleu_callModuleHTMLMethod
Eternal ID of this version: #1029810/1
Text MD5: 6e28c75399f97c323f1472db616bc9a5
Transpilation MD5: 2e4e9554e6a0c546813ec0260456277a
Author: stefan
Category: javax / http
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-09-18 13:00:09
Source code size: 462 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 27 / 51
Referenced in: [show references]

Formerly at http://tinybrain.de/1029810 & http://1029810.tinybrain.de