public abstract class FieldOrMethod extends AccessFlags implements Cloneable, Node
| 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(FieldOrMethod c)
Initialize from another object.
|
protected |
FieldOrMethod(int access_flags,
int name_index,
int signature_index,
Attribute[] attributes,
ConstantPool constant_pool) |
| Modifier and Type | Method and Description |
|---|---|
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) |
getAccessFlags, getModifiers, isAbstract, isAbstract, isFinal, isFinal, isInterface, isInterface, isNative, isNative, isPrivate, isPrivate, isProtected, isProtected, isPublic, isPublic, isStatic, isStatic, isStrictfp, isStrictfp, isSynchronized, isSynchronized, isTransient, isTransient, isVolatile, isVolatile, setAccessFlags, setModifiersprotected int name_index
protected int signature_index
protected int attributes_count
protected Attribute[] attributes
protected ConstantPool constant_pool
protected FieldOrMethod(FieldOrMethod c)
protected FieldOrMethod(DataInputStream file, ConstantPool constant_pool) throws IOException, ClassFormatException
file - Input streamIOExceptionClassFormatExceptionprotected 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 dump(DataOutputStream file) throws IOException
file - Output file streamIOExceptionpublic final Attribute[] getAttributes()
public final void setAttributes(Attribute[] attributes)
attributes - Collection of object attributes.public final ConstantPool getConstantPool()
public final void setConstantPool(ConstantPool constant_pool)
constant_pool - Constant pool to be used for this object.public final int getNameIndex()
public final void setNameIndex(int name_index)
name_index - Index in constant pool of object's name.public final int getSignatureIndex()
public final void setSignatureIndex(int signature_index)
signature_index - Index in constant pool of field signature.public final String getName()
public final String getSignature()
protected FieldOrMethod copy_(ConstantPool constant_pool)
Copyright © 2018–2021 mhoffrogge. All rights reserved.