Libraryless. Click here for Pure Java version (8392L/59K).
static new ThreadLocal<Long> evalJava_myProgramID_main_time; // set this to not null to get reference to main class static new ThreadLocal<O> evalJava_myProgramID_main_mainClass; static O evalJava_myProgramID_main(S main, O... args) { //veryQuickJava_transpiled.set(""); O obj = veryQuickJava(main); //S src = getAndClearThreadLocal(veryQuickJava_transpiled); //saveProgramTextFile("debug.java", src); //print("getOpt sane: " + getOpt_cache.get(Class.class)); //print("programID: " + getOpt(obj, "programID") + ", my=" + programID() + ", fields: " + fieldNames(obj)); //print("programIDXXX: " + getOpt((Class) obj, "programID")); //print("field: " + setOpt_findStaticField(obj, "programID")); setOpt(obj, "programID", programID()); makeDependent(obj); if (evalJava_myProgramID_main_mainClass! != null) evalJava_myProgramID_main_mainClass.set(obj); ret evalJava_myProgramID_main_2(obj, args); } static O evalJava_myProgramID_main_2(O obj, O... args) { //print("programID: " + getOpt(obj, "programID")); long time = sysNow(); try { ret callCalc(obj, args); } finally { evalJava_myProgramID_main_time.set(sysNow()-time); } }
Began life as a copy of #1011860
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012085 |
Snippet name: | evalJava_myProgramID_main |
Eternal ID of this version: | #1012085/19 |
Text MD5: | da1da4563779d55b895ac50daf868773 |
Transpilation MD5: | 3ee56e2d2f01310a2c6f51b8e0c0d3ba |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-11-16 15:53:14 |
Source code size: | 1199 bytes / 30 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 509 / 646 |
Version history: | 18 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1016862 - evalJava_otherCreator_main |