Transpiled version (7868L) is out of date.
sclass ToJava { O get(O o) { try object getOpt(o); fail("Can't ToJava: " + className(o)); } O getOpt(O o) { if (o == null) ret "null"; if (o instanceof String) ret quote(o); if (o instanceof Number) ret str(o); //if (o instanceof Int) ret str(o); if (o cast IFieldsToList) ret formatFunctionCall("new " + shortName(o), map get(o._fieldsToList())); if (o cast L) ret functionCall_list ll(map get(o)); if (o cast Class) ret shortClassName(o) + ".class"; if (o cast int[]) ret "new int[] {" + joinWithComma(toList(o)) + "}"; null; } }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033278 |
Snippet name: | ToJava |
Eternal ID of this version: | #1033278/8 |
Text MD5: | 44ff0e864f8813df6d7892a286a8b129 |
Author: | stefan |
Category: | javax / audio analysis |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-04-15 02:45:58 |
Source code size: | 635 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 197 / 329 |
Version history: | 7 change(s) |
Referenced in: | [show references] |