|
Java API by Zvi Har’El |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcf.MemberInfo
class MemberInfo
An instance of the class MemberInfo is an in-core representaion
of a class member, that is, of a method or a field.
| Field Summary | |
|---|---|
(package private) short |
access
Member access modifiers. |
(package private) Vector |
attributes
Attributes of this member. |
(package private) CodeAttribute |
ca
The “Code” attribute of this member. |
(package private) short |
descriptorIndex
The descriptor of this member. |
(package private) short |
nameIndex
The name of this member. |
| Constructor Summary | |
|---|---|
MemberInfo(DataInputStream in,
ClassFile cf)
Constructs an MemberInfo object by reading the input stream. |
|
MemberInfo(int acc,
String name,
String desc,
ClassFile cf)
Constructs a MemberInfo object for a new method or field. |
|
| Method Summary | |
|---|---|
(package private) void |
strip()
Strip attributes. |
(package private) void |
write(DataOutputStream out)
Writes the MemberInfo object on an output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
short access
modifiers.
short nameIndex
UTF8 constant.
short descriptorIndex
UTF8
constant.
final Vector attributes
“Code”, the
attributes possible at this level are “ConstantValue”
(for a field) and “Exceptions” (for a method). Each
entry is a byte array.
CodeAttribute ca
“Code” attribute of this member. Null if this is a
field or an abstract method.
| Constructor Detail |
|---|
MemberInfo(DataInputStream in,
ClassFile cf)
throws IOException
MemberInfo object by reading the input stream.
in - the input streamcf - the ClassFile object which contains the
constant pool for this class
IOException - if an input error occurs
MemberInfo(int acc,
String name,
String desc,
ClassFile cf)
MemberInfo object for a new method or field.
If the member is a non-abstract method, a new CodeAttribute
object is constructed for it.
acc - the member access modifiersname - the member namedesc - the member descriptorcf - the ClassFile object which contains the
constant pool for this member| Method Detail |
|---|
final void write(DataOutputStream out)
throws IOException
MemberInfo object on an output stream.
out - the output stream
IOException - if output error occursfinal void strip()
|
Java API by Zvi Har’El |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||