Modifier and Type | Field and Description |
---|---|
protected Attribute[] |
attributes
Deprecated.
(since 6.0) will be made private; do not access directly, use getter/setter
|
protected int |
attributes_count
Deprecated.
(since 6.0) will be removed (not needed)
|
protected ConstantPool |
constant_pool
Deprecated.
(since 6.0) will be made private; do not access directly, use getter/setter
|
protected int |
name_index
Deprecated.
(since 6.0) will be made private; do not access directly, use getter/setter
|
protected int |
signature_index
Deprecated.
(since 6.0) will be made private; do not access directly, use getter/setter
|
access_flags
Modifier | Constructor and Description |
---|---|
protected |
FieldOrMethod(DataInput file,
ConstantPool constant_pool)
Construct object from file stream.
|
protected |
FieldOrMethod(DataInputStream file,
ConstantPool constant_pool)
Deprecated.
(6.0) Use
FieldOrMethod(java.io.DataInput, ConstantPool) instead. |
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.
|
AnnotationEntry[] |
getAnnotationEntries() |
Attribute[] |
getAttributes() |
ConstantPool |
getConstantPool() |
String |
getGenericSignature()
Hunts for a signature attribute on the member and returns its contents.
|
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, isAnnotation, isAnnotation, isEnum, isEnum, isFinal, isFinal, isInterface, isInterface, isNative, isNative, isPrivate, isPrivate, isProtected, isProtected, isPublic, isPublic, isStatic, isStatic, isStrictfp, isStrictfp, isSynchronized, isSynchronized, isSynthetic, isSynthetic, isTransient, isTransient, isVarArgs, isVarArgs, isVolatile, isVolatile, setAccessFlags, setModifiers
@Deprecated protected int name_index
@Deprecated protected int signature_index
@Deprecated protected Attribute[] attributes
@Deprecated protected int attributes_count
@Deprecated protected ConstantPool constant_pool
protected FieldOrMethod(FieldOrMethod c)
@Deprecated protected FieldOrMethod(DataInputStream file, ConstantPool constant_pool) throws IOException, ClassFormatException
FieldOrMethod(java.io.DataInput, ConstantPool)
instead.file
- Input streamIOException
ClassFormatException
protected FieldOrMethod(DataInput 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 dump(DataOutputStream file) throws IOException
file
- Output file streamIOException
public 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)
public AnnotationEntry[] getAnnotationEntries()
public final String getGenericSignature()
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.