Field
| Modifier and Type | Field and Description |
|---|---|
| private Object |
| Access | Constructor and Description |
|---|---|
| public | FieldGen(int
access qualifiers modifiers, Type field type type, String field name name, ConstantPool constant pool cpool)Declare a field. |
| public | FieldGen(Field
Field object field, ConstantPool constant pool (must contain the same entries as the field's constant pool) cp)Instantiate from existing field. |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| private void | |
| public Field | |
| public String | |
| public String | |
| public void | |
| public void | |
| public void | |
| public final String | toString()
Overrides java. |
| public void |
| value | back to summary |
|---|---|
| private Object value | |
| FieldGen | back to summary |
|---|---|
| public FieldGen(int modifiers, Type type, String name, ConstantPool cpool) Declare a field. If it is static (isStatic() == true) and has a basic type like int or String it may have an initial value associated with it as defined by setInitValue().
| |
| FieldGen | back to summary |
|---|---|
| public FieldGen(Field field, ConstantPool cp) Instantiate from existing field.
| |
| addConstant | back to summary |
|---|---|
| private int addConstant() | |
| checkType | back to summary |
|---|---|
| private void checkType(Type atype) | |
| getField | back to summary |
|---|---|
| public Field getField() Get field object after having set up all necessary values. | |
| getInitialValue | back to summary |
|---|---|
| public String getInitialValue() | |
| getSignature | back to summary |
|---|---|
| public String getSignature() Implements abstract org.
| |
| setInitialStringValue | back to summary |
|---|---|
| public void setInitialStringValue(String value) | |
| setValue | back to summary |
|---|---|
| public void setValue(int index) | |
| setValue | back to summary |
|---|---|
| public void setValue(String constantString) | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Return string representation close to declaration format, `public static final short MAX = 100', e.g..
| |
| wipeValue | back to summary |
|---|---|
| public void wipeValue() | |