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

12
LINES

< > BotCompany Repo | #1033220 // javaObjectToIJavaExpr

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

Libraryless. Click here for Pure Java version (5398L/31K).

static IJavaExpr javaObjectToIJavaExpr(O o) {
  if (isListOfElementType Int(o))
    ret javaExpr(functionCall lInts(naiveQuote(intsToHex_withLineBreaks((LInt) o))), -> o);
      
  if (o cast L)
    ret javaExpr(
      functionCall ll(map javaObjectToIJavaExpr(o)),
      -> o);

  O code = toJavaOpt(o);
  ret javaExpr(code, -> o);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033220
Snippet name: javaObjectToIJavaExpr
Eternal ID of this version: #1033220/13
Text MD5: 6b4df138498551c13bc4c5043dbf4ee3
Transpilation MD5: 75c4405ca2e46ffb674a841f4b91826f
Author: stefan
Category: javax / recognition by compression
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-26 19:17:40
Source code size: 345 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 204 / 304
Version history: 12 change(s)
Referenced in: [show references]