public class ExistingMethod extends BindingMethod
Modifier and Type | Field and Description |
---|---|
private int |
m_hashCode
Accumulated hash code from adding instructions.
|
private ClassItem |
m_item
Class item information.
|
private org.apache.bcel.classfile.Method |
m_method
Actual method information.
|
private boolean |
m_used
Flag for method used in code.
|
Constructor and Description |
---|
ExistingMethod(org.apache.bcel.classfile.Method method,
ClassItem item,
ClassFile file)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Delete method from class.
|
int |
getAccessFlags()
Get access flags.
|
ClassItem |
getItem()
Get the method item.
|
org.apache.bcel.classfile.Method |
getMethod()
Get the actual method.
|
java.lang.String |
getName()
Get name of method.
|
java.lang.String |
getSignature()
Get signature.
|
int |
hashCode()
Get hash code.
|
boolean |
isUsed()
Check method used status.
|
void |
setAccessFlags(int flags)
Set access flags.
|
void |
setUsed()
Set method used status.
|
computeMethodHash, equals, getClassFile, makeAccessible
private ClassItem m_item
private org.apache.bcel.classfile.Method m_method
private int m_hashCode
private boolean m_used
public java.lang.String getName()
getName
in class BindingMethod
public java.lang.String getSignature()
getSignature
in class BindingMethod
public int getAccessFlags()
getAccessFlags
in class BindingMethod
public void setAccessFlags(int flags)
setAccessFlags
in class BindingMethod
flags
- access type to be setpublic boolean isUsed()
public void setUsed()
public org.apache.bcel.classfile.Method getMethod()
getMethod
in class BindingMethod
public ClassItem getItem()
getItem
in class BindingMethod
public void delete()
public int hashCode()
hashCode
in class BindingMethod