Does Java have something like any of the following
- macros
- way to iterate over all private fields
- something like smalltalk characters - that is, for quick comparison of static strings?
note I am trying to emulate the enumerations for blackckbery (and a little worried about speed for a simple dictionary string-> int), which I am sure does not have them please try not to include links only to the code, I would like to encode it myself.
Reflection seems interesting, is it difficult to use? can you access these names? can you use it with regular java blackbery program?
source
share