Public Methods | |
FieldGen (int access_flags, Type type, String name, ConstantPoolGen cp) | |
FieldGen (Field field, ConstantPoolGen cp) | |
void | addAttribute (Attribute attr) |
Attribute[] | getAttributes () |
ConstantPoolGen | getConstantPool () |
Field | getField () |
String | getName () |
String | getSignature () |
Type | getType () |
void | setConstantPool (ConstantPoolGen cp) |
void | setInitValue (byte b) |
void | setInitValue (char c) |
void | setInitValue (double d) |
void | setInitValue (float f) |
void | setInitValue (int i) |
void | setInitValue (long l) |
void | setInitValue (String str) |
void | setInitValue (short s) |
void | setInitValue (boolean b) |
void | setName (String name) |
void | setType (Type type) |
FieldGen (int access_flags, Type type, String name, ConstantPoolGen cp) | |
FieldGen (Field field, ConstantPoolGen cp) | |
void | addObserver (FieldObserver o) |
void | cancelInitValue () |
Field | getField () |
String | getInitValue () |
String | getSignature () |
void | removeObserver (FieldObserver o) |
void | setInitValue (byte b) |
void | setInitValue (char c) |
void | setInitValue (double d) |
void | setInitValue (float f) |
void | setInitValue (int i) |
void | setInitValue (long l) |
void | setInitValue (String str) |
void | setInitValue (short s) |
void | setInitValue (boolean b) |
final String | toString () |
void | update () |
Private Methods | |
void | checkType (Type atype) |
Private Attributes | |
Type | type |
String | name |
ConstantPoolGen | cp |
int | index = -1 |
Vector | attributes |
Vector | observers |
Definition at line 16 of file lib/jpf/de/fub/bytecode/generic/FieldGen.java.
|
Declare a field. If it is a static field (access_flags & ACC_STATIC != 0) it may have an initial value associated with it as defined by setInitValue().
Definition at line 32 of file lib/jpf/de/fub/bytecode/generic/FieldGen.java. |
|
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().
Definition at line 33 of file src/de/fub/bytecode/generic/FieldGen.java. |
|
Instantiate from existing method.
Definition at line 45 of file src/de/fub/bytecode/generic/FieldGen.java. |
|
Add an attribute to this method. Currently, the JVM knows about the `Code', `ConstantValue', `Synthetic' and `Exceptions' attributes. Other attributes will be ignored by the JVM but do no harm.
Reimplemented from FieldGenOrMethodGen. Definition at line 41 of file lib/jpf/de/fub/bytecode/generic/FieldGen.java. |
|
Add observer for this object. Definition at line 59 of file src/de/fub/bytecode/generic/FieldGen.java. |
|
Remove any initial value. Definition at line 67 of file src/de/fub/bytecode/generic/FieldGen.java. |
|
Reimplemented from FieldGenOrMethodGen. Definition at line 47 of file lib/jpf/de/fub/bytecode/generic/FieldGen.java. |
|
Get field object after having set up all necessary values. Definition at line 83 of file src/de/fub/bytecode/generic/FieldGen.java. |
|
Get method object. Definition at line 59 of file lib/jpf/de/fub/bytecode/generic/FieldGen.java. |
|
Reimplemented from FieldGenOrMethodGen. Definition at line 74 of file lib/jpf/de/fub/bytecode/generic/FieldGen.java. |
|
Reimplemented from FieldGenOrMethodGen. Definition at line 104 of file src/de/fub/bytecode/generic/FieldGen.java. |
|
Reimplemented from FieldGenOrMethodGen. Definition at line 75 of file lib/jpf/de/fub/bytecode/generic/FieldGen.java. |
|
Remove observer for this object. Definition at line 107 of file src/de/fub/bytecode/generic/FieldGen.java. |
|
Set (optional) initial value of field, otherwise it will be set to null/0/false by the JVM automatically. Definition at line 151 of file src/de/fub/bytecode/generic/FieldGen.java. |
|
Set (optional) initial value of field, otherwise it will be set to null/0/false by the JVM automatically. Definition at line 88 of file lib/jpf/de/fub/bytecode/generic/FieldGen.java. |
|
Return string representation close to declaration format, `public static final short MAX = 100', e.g..
Definition at line 175 of file src/de/fub/bytecode/generic/FieldGen.java. |
|
Call notify() method on all observers. This method is not called automatically whenever the state has changed, but has to be called by the user after he has finished editing the object. Definition at line 195 of file src/de/fub/bytecode/generic/FieldGen.java. |