Modifier and Type | Method and Description |
---|---|
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.
|
getDeclaredAnnotations, getDeclaredRuntimeAnnotations, removeDeclaredAnnotations, removeDeclaredRuntimeAnnotations
addAttribute, addAttribute, clearAttributes, getAttribute, getAttributes, getAttributes, removeAttribute, removeAttribute, setAttributes
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
Copyright © 2002–2019. All rights reserved.