Macro substitution

How can i "emulate" a keyword from a String object?

ie.

Image image;

image={load image};

String value = new String("image");

&image.getWidth(null);

The & symbol in my old Visual Fox Pro substitute a keyword. How can i emulate it in Java?

[302 byte] By [~toki] at [2007-9-26 5:29:51]
# 1
Any idea?
~toki at 2007-6-29 19:39:35 > top of Java-index,Archived Forums,Java Programming...
# 2
Java is not a scripting language, so it has no ability to evaluate or do macro substitutions are runtime.You can look into reflection. Use the java.lang.reflect.Field class to get the value of a field, where the field name is given at runtime.
schapel at 2007-6-29 19:39:35 > top of Java-index,Archived Forums,Java Programming...