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).

1  
static IJavaExpr javaObjectToIJavaExpr(O o) {
2  
  if (isListOfElementType Int(o))
3  
    ret javaExpr(functionCall lInts(naiveQuote(intsToHex_withLineBreaks((LInt) o))), -> o);
4  
      
5  
  if (o cast L)
6  
    ret javaExpr(
7  
      functionCall ll(map javaObjectToIJavaExpr(o)),
8  
      -> o);
9  
10  
  O code = toJavaOpt(o);
11  
  ret javaExpr(code, -> o);
12  
}

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: 206 / 308
Version history: 12 change(s)
Referenced in: [show references]