gnu.bytecode
public class Field extends Location implements AttrContainer, Member
Constructor Summary | |
---|---|
Field(ClassType ctype) Add a new Field to a ClassType. |
Method Summary | |
---|---|
Attribute | getAttributes() |
ClassType | getDeclaringClass() |
int | getFlags() |
int | getModifiers() |
Field | getNext() |
Field | getReflectField() |
String | getSourceName() |
boolean | getStaticFlag() |
static Field | searchField(Field fields, String name) Find a field with the given name. |
void | setAttributes(Attribute attributes) |
void | setConstantValue(Object value, ClassType ctype) Set the ConstantValue attribute for this field. |
void | setSourceName(String name) |
void | setStaticFlag(boolean is_static) |
String | toString() |
Parameters: fields list of fields to search name (interned source) name of field to look for
Parameters: value the value to use for the ConstantValue attribute of this field ctype the class that contains this field This field's type is used to determine the kind of constant.