polyglot.types.reflect
Class Field

java.lang.Object
  extended by polyglot.types.reflect.Field

public class Field
extends java.lang.Object

Field models a field (member variable) in a class. The Field class grants access to information such as the field's modifiers, its name and type descriptor (represented as indices into the constant pool), and any attributes of the field. Static fields have a ConstantValue attribute.

Author:
Nate Nystrom (nystrom@cs.purdue.edu)
See Also:
ConstantValue

Method Summary
 FieldInstance fieldInstance(TypeSystem ts, ClassType ct)
           
 void initialize()
           
 int modifiers()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

modifiers

public int modifiers()

fieldInstance

public FieldInstance fieldInstance(TypeSystem ts,
                                   ClassType ct)

initialize

public void initialize()
                throws java.io.IOException
Throws:
java.io.IOException