classfile
Class fieldInfo
java.lang.Object
|
+--util.dataRead
|
+--classfile.fieldInfo
- class fieldInfo
- extends dataRead
As described in the JVM Specification, the field_info
is:
field_info {
u2 access_flags;
u2 name_index; (Utf8 in the constant pool)
u2 descriptor_index; (Utf8 in the constant pool)
u2 attributes_cnt;
attribute_info attributes[ attributes_cnt ];
}
The only attribute defined for the attributes table of a
field_info structure by the JVM Specification is the
ConstantValue attribute
- Author:
- Ian Kaplan
Constructor Summary |
(package private) |
fieldInfo(java.io.DataInputStream dStream,
constPool constPoolSec)
|
Method Summary |
(package private) java.lang.String |
fieldString()
Create a string for the field in something like Java
source format. |
(package private) void |
pr()
Print the field |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
access_flags
int access_flags
name
constUtf8 name
descriptor
constUtf8 descriptor
attributes
attrInfo[] attributes
fieldInfo
fieldInfo(java.io.DataInputStream dStream,
constPool constPoolSec)
fieldString
java.lang.String fieldString()
- Create a string for the field in something like Java
source format. Field strings have the format:
The access modifiers are described by the access_flags.
The type is described by the descriptor and the name
is referenced by the "name" object.
pr
void pr()
- Print the field