next up previous contents
Next: java.lang.reflect.Method Up: The API Previous: java.lang.Class   Contents

java.lang.reflect.Field

Again, instances of this class are only created by the JVM, upon calls to Class::getField().

Implementation: the class contains private variables:

    private Class               clazz;     // returned by getDeclaringClass()
    private int                 slot;       // ???
    private String              name;      // ret. by getName()
    private Class               type;      // ret. by getType()
    private int                 modifiers; // ret. by getModifiers()

The get() and set() methods are native- most others are Java code.



Nadeem Hamid 2000-07-24