public abstract class FieldOrMethod extends AccessFlags implements Cloneable
Modifier and Type | Field and Description |
---|---|
protected Attribute[] |
attributes |
protected int |
attributes_count |
protected ConstantPool |
constant_pool |
protected int |
name_index |
protected int |
signature_index |
access_flags
Modifier | Constructor and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String |
getSignature() |
void |
setAttributes(Attribute[] attributes) |
getAccessFlags
protected int name_index
protected int signature_index
protected int attributes_count
protected Attribute[] attributes
protected ConstantPool constant_pool
protected FieldOrMethod(DataInputStream file, ConstantPool constant_pool) throws IOException, ClassFormatException
file
- Input streamIOException
ClassFormatException
protected FieldOrMethod(int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool)
access_flags
- Access rights of methodname_index
- Points to field name in constant poolsignature_index
- Points to encoded signatureattributes
- Collection of attributesconstant_pool
- Array of constantspublic final void setAttributes(Attribute[] attributes)
attributes
- Collection of object attributes.public final String getName()
public final String getSignature()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.