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 constantPool)
Construct object from file stream.
|
protected |
FieldOrMethod(DataInputStream file,
ConstantPool constantPool)
Deprecated.
(6.0) Use
FieldOrMethod(java.io.DataInput, ConstantPool) instead. |
protected |
FieldOrMethod(FieldOrMethod c)
Initialize from another object.
|
protected |
FieldOrMethod(int accessFlags,
int nameIndex,
int signatureIndex,
Attribute[] attributes,
ConstantPool constantPool) |
Modifier and Type | Method and Description |
---|---|
protected FieldOrMethod |
copy_(ConstantPool constantPool) |
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 constantPool) |
void |
setNameIndex(int nameIndex) |
void |
setSignatureIndex(int signatureIndex) |
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(DataInput file, ConstantPool constantPool) throws IOException
file
- Input streamIOException
- if an I/O error occurs.@Deprecated protected FieldOrMethod(DataInputStream file, ConstantPool constantPool) throws IOException
FieldOrMethod(java.io.DataInput, ConstantPool)
instead.file
- Input streamIOException
- if an I/O error occurs.protected FieldOrMethod(FieldOrMethod c)
c
- Source to copy.protected FieldOrMethod(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool)
accessFlags
- Access rights of methodnameIndex
- Points to field name in constant poolsignatureIndex
- Points to encoded signatureattributes
- Collection of attributesconstantPool
- Array of constantsprotected FieldOrMethod copy_(ConstantPool constantPool)
public final void dump(DataOutputStream file) throws IOException
file
- Output file streamIOException
- if an I/O error occurs.public AnnotationEntry[] getAnnotationEntries()
public final Attribute[] getAttributes()
public final ConstantPool getConstantPool()
public final String getGenericSignature()
public final String getName()
public final int getNameIndex()
public final String getSignature()
public final int getSignatureIndex()
public final void setAttributes(Attribute[] attributes)
attributes
- Collection of object attributes.public final void setConstantPool(ConstantPool constantPool)
constantPool
- Constant pool to be used for this object.public final void setNameIndex(int nameIndex)
nameIndex
- Index in constant pool of object's name.public final void setSignatureIndex(int signatureIndex)
signatureIndex
- Index in constant pool of field signature.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.