public abstract class MemberInfo
extends java.lang.Object
FieldInfo,
MethodInfo| Modifier and Type | Field and Description |
|---|---|
protected ClassFile |
cf
The class file in which this method is defined.
|
static java.lang.String |
DEPRECATED
Attribute marking a member as deprecated.
|
static java.lang.String |
RUNTIME_VISIBLE_ANNOTATIONS
Attribute containing runtime-visible annotations.
|
static java.lang.String |
SIGNATURE
Attribute containing index of the member's signature.
|
| Modifier | Constructor and Description |
|---|---|
protected |
MemberInfo(ClassFile cf,
int accessFlags)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAccessFlags()
Returns the access flags for this field.
|
ClassFile |
getClassFile()
Returns the parent class file.
|
abstract java.lang.String |
getDescriptor()
Returns the descriptor of this member.
|
abstract java.lang.String |
getName()
Returns the name of this member.
|
boolean |
isDeprecated()
Returns whether this member is deprecated.
|
boolean |
isFinal()
Returns whether this member is final.
|
boolean |
isStatic()
Returns whether this member is static.
|
protected AttributeInfo |
readAttribute(java.io.DataInputStream in,
java.lang.String attrName,
int attrLength)
Reads attributes common to all members.
|
protected ClassFile cf
public static final java.lang.String DEPRECATED
public static final java.lang.String SIGNATURE
public static final java.lang.String RUNTIME_VISIBLE_ANNOTATIONS
protected MemberInfo(ClassFile cf, int accessFlags)
cf - The class file defining this member.public int getAccessFlags()
AccessFlagspublic ClassFile getClassFile()
public abstract java.lang.String getName()
public boolean isDeprecated()
public abstract java.lang.String getDescriptor()
public boolean isFinal()
public boolean isStatic()
protected AttributeInfo readAttribute(java.io.DataInputStream in, java.lang.String attrName, int attrLength) throws java.io.IOException
in - attrName - attrLength - null if it was purposely skipped
for some reason (known to be useless for our purposes, etc.).java.io.IOException