Libraryless. Click here for Pure Java version (8775L/49K).
// represents a JavaX expression that can both // -be evaluated right now (quickEval()) // -be transformed into Java source code (str()) // // A is the expression's return type. sinterface ICachedJavaXExpr<A> extends IMeta { // override to provide an evaluation result public default A quickEval() { fail("Can't quick eval: " + toStringWithClassName(this)); } public default O javaConstruct() { this; } // overridable default int sourceCodeLength() { ret l(toString()); } }
Began life as a copy of #1033208
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033243 |
| Snippet name: | ICachedJavaXExpr |
| Eternal ID of this version: | #1033243/7 |
| Text MD5: | 6424cf216528f37ae9d7a75fa323b33d |
| Transpilation MD5: | a6b63218a325195886d31ec44ea8aae5 |
| Author: | stefan |
| Category: | javax / code generation |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-27 02:06:50 |
| Source code size: | 504 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 422 / 583 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |