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 Method |
m_method
Actual method information.
|
private boolean |
m_used
Flag for method used in code.
|
| Constructor and Description |
|---|
ExistingMethod(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.
|
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, makeAccessibleprivate ClassItem m_item
private Method m_method
private int m_hashCode
private boolean m_used
public java.lang.String getName()
getName in class BindingMethodpublic java.lang.String getSignature()
getSignature in class BindingMethodpublic int getAccessFlags()
getAccessFlags in class BindingMethodpublic void setAccessFlags(int flags)
setAccessFlags in class BindingMethodflags - access type to be setpublic boolean isUsed()
public void setUsed()
public Method getMethod()
getMethod in class BindingMethodpublic ClassItem getItem()
getItem in class BindingMethodpublic void delete()
public int hashCode()
hashCode in class BindingMethod