|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectserp.bytecode.Attributes
serp.bytecode.Annotated
serp.bytecode.BCMember
public abstract class BCMember
A member field or method of a class.
Method Summary | |
---|---|
int |
getAccessFlags()
Return the access flags for this member as a bit array of ACCESS_XXX constants from Constants . |
ClassLoader |
getClassLoader()
Return the class loader to use when loading related classes. |
BCClass |
getDeclarer()
Return the BCClass that declares this member. |
String |
getDescriptor()
Return the descriptor of this member, in internal form. |
int |
getDescriptorIndex()
Return the index in the class ConstantPool of the
UTF8Entry holding the descriptor of this member. |
String |
getName()
Return the name of this member. |
int |
getNameIndex()
Return the index in the class ConstantPool of the
UTF8Entry holding the name of this member. |
ConstantPool |
getPool()
Return the constant pool of the current class. |
Project |
getProject()
Return the project of the current class. |
boolean |
isDeprecated()
Convenience method to return deprecation information for the member. |
boolean |
isFinal()
Manipulate the member access flags. |
boolean |
isPackage()
Manipulate the member access flags. |
boolean |
isPrivate()
Manipulate the member access flags. |
boolean |
isProtected()
Manipulate the member access flags. |
boolean |
isPublic()
Manipulate the member access flags. |
boolean |
isStatic()
Manipulate the member access flags. |
boolean |
isSynthetic()
Manipulate the field access flags. |
boolean |
isValid()
Return false if this entity has been removed from its parent; in this case the results of any operations on the entity are undefined. |
void |
makePackage()
Manipulate the member access flags. |
void |
makePrivate()
Manipulate the member access flags. |
void |
makeProtected()
Manipulate the member access flags. |
void |
makePublic()
Manipulate the member access flags. |
void |
setAccessFlags(int access)
Set the access flags for this member as a bit array of ACCESS_XXX constants from Constants . |
void |
setDeprecated(boolean on)
Convenience method to set whether this member should be considered deprecated. |
void |
setDescriptor(String desc)
Set the descriptor of this member. |
void |
setDescriptorIndex(int index)
Set the index in the class ConstantPool of the
UTF8Entry holding the descriptor of this member. |
void |
setFinal(boolean on)
Manipulate the member access flags. |
void |
setName(String name)
Set the name of this member. |
void |
setNameIndex(int index)
Set the index in the class ConstantPool of the
UTF8Entry holding the name of this member. |
void |
setStatic(boolean on)
Manipulate the member access flags. |
void |
setSynthetic(boolean on)
Manipulate the field access flags. |
Methods inherited from class serp.bytecode.Annotated |
---|
getDeclaredAnnotations, getDeclaredRuntimeAnnotations, removeDeclaredAnnotations, removeDeclaredRuntimeAnnotations |
Methods inherited from class serp.bytecode.Attributes |
---|
addAttribute, addAttribute, clearAttributes, getAttribute, getAttributes, getAttributes, removeAttribute, removeAttribute, setAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public BCClass getDeclarer()
BCClass
that declares this member.
public int getAccessFlags()
Constants
. This can be used to
transfer access flags between members without getting/setting each
possible access flag. Defaults to Constants.ACCESS_PRIVATE
public void setAccessFlags(int access)
Constants
. This can be used to
transfer access flags between members without getting/setting each
possible access flag. Defaults to Constants.ACCESS_PRIVATE
public boolean isPublic()
public void makePublic()
public boolean isProtected()
public void makeProtected()
public boolean isPrivate()
public void makePrivate()
public boolean isPackage()
public void makePackage()
public boolean isFinal()
public void setFinal(boolean on)
public boolean isStatic()
public void setStatic(boolean on)
public boolean isSynthetic()
public void setSynthetic(boolean on)
public int getNameIndex()
ConstantPool
of the
UTF8Entry
holding the name of this member.
public void setNameIndex(int index)
ConstantPool
of the
UTF8Entry
holding the name of this member.
public int getDescriptorIndex()
ConstantPool
of the
UTF8Entry
holding the descriptor of this member.
public void setDescriptorIndex(int index)
ConstantPool
of the
UTF8Entry
holding the descriptor of this member.
public String getName()
public void setName(String name)
public String getDescriptor()
public void setDescriptor(String desc)
public boolean isDeprecated()
Attributes
interface.
public void setDeprecated(boolean on)
Attributes
interface.
public Project getProject()
BCEntity
public ConstantPool getPool()
BCEntity
public ClassLoader getClassLoader()
BCEntity
public boolean isValid()
BCEntity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |