org.apache.bcel.classfile
public abstract class FieldOrMethod extends AccessFlags implements Cloneable, Node
Field Summary | |
---|---|
protected Attribute[] | attributes |
protected int | attributes_count |
protected ConstantPool | constant_pool |
protected int | name_index |
protected int | signature_index |
Constructor Summary | |
---|---|
protected | FieldOrMethod(FieldOrMethod c)
Initialize from another object. |
protected | FieldOrMethod(DataInputStream file, ConstantPool constant_pool)
Construct object from file stream. |
protected | FieldOrMethod(int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool) |
Method Summary | |
---|---|
protected FieldOrMethod | copy_(ConstantPool _constant_pool) |
void | dump(DataOutputStream file)
Dump object to file stream on binary format.
|
Attribute[] | getAttributes() |
ConstantPool | getConstantPool() |
String | getName() |
int | getNameIndex() |
String | getSignature() |
int | getSignatureIndex() |
void | setAttributes(Attribute[] attributes) |
void | setConstantPool(ConstantPool constant_pool) |
void | setNameIndex(int name_index) |
void | setSignatureIndex(int signature_index) |
Parameters: file Input stream
Throws: IOException ClassFormatException
Parameters: access_flags Access rights of method name_index Points to field name in constant pool signature_index Points to encoded signature attributes Collection of attributes constant_pool Array of constants
Returns: deep copy of this field
Parameters: file Output file stream
Throws: IOException
Returns: Collection of object attributes.
Returns: Constant pool used by this object.
Returns: Name of object, i.e., method name or field name
Returns: Index in constant pool of object's name.
Returns: String representation of object's type signature (java style)
Returns: Index in constant pool of field signature.
Parameters: attributes Collection of object attributes.
Parameters: constant_pool Constant pool to be used for this object.
Parameters: name_index Index in constant pool of object's name.
Parameters: signature_index Index in constant pool of field signature.