hecl

Accesing a function via string stored in Hashtable

孤人 提交于 2019-12-24 04:25:05
问题 If I have function names stored as strings in a Hashtable. Is there a way to access the functions via the stored strings? EDIT I'm afraid the platform that i'm working on CLDC1.1/MIDP2.0 does not support Reflection. Any workaround possible? 回答1: Just use a big long list of else-ifs: [...] } else if ("foo".equals(function)) { target. foo(); } else if ("bar".equals(function)) { target. bar(); [...] (Although I generally don't like attempting vertical alignments in source, I think in cases like

Blackberry development on scripting language?

走远了吗. 提交于 2019-12-07 13:25:19
问题 From what I've seen, the preferred way to develop Blackberry applications is Java. Is this the only way? I'm dreaming of a rapid application environment where you can create GUIs (using the Blackberry UI components). Something like a port of Tcl/Tk on Blackberry... or Python/Tkinter... or something new, but similar. Does something like that exist ? (I doubt it) Can something like that exist ? (i.e., given the money, is it feasible/reasonable/...) 回答1: If you can use Java/J2ME, you could

Blackberry development on scripting language?

↘锁芯ラ 提交于 2019-12-06 01:22:56
From what I've seen, the preferred way to develop Blackberry applications is Java. Is this the only way? I'm dreaming of a rapid application environment where you can create GUIs (using the Blackberry UI components). Something like a port of Tcl/Tk on Blackberry... or Python/Tkinter... or something new, but similar. Does something like that exist ? (I doubt it) Can something like that exist ? (i.e., given the money, is it feasible/reasonable/...) If you can use Java/J2ME, you could always use Hecl: www.hecl.org Edit - as of late summer 2009, I have started work on an official BlackBerry port