org.jibx.binding.classes
Class ExistingMethod

java.lang.Object
  extended by org.jibx.binding.classes.BindingMethod
      extended by org.jibx.binding.classes.ExistingMethod

public class ExistingMethod
extends BindingMethod

Information for an existing binding method. It supplies hash code and equality checking based on the method signature and actual byte code of the generated method, ignoring the method name.

Author:
Dennis M. Sosnoski

Field Summary
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 Summary
ExistingMethod(Method method, ClassItem item, ClassFile file)
          Constructor.
 
Method Summary
 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.
 
Methods inherited from class org.jibx.binding.classes.BindingMethod
computeMethodHash, equals, getClassFile, makeAccessible
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_item

private ClassItem m_item
Class item information.


m_method

private Method m_method
Actual method information.


m_hashCode

private int m_hashCode
Accumulated hash code from adding instructions.


m_used

private boolean m_used
Flag for method used in code.

Constructor Detail

ExistingMethod

public ExistingMethod(Method method,
                      ClassItem item,
                      ClassFile file)
Constructor.

Parameters:
method - actual method information
item - class item information for method
file - class file information
Method Detail

getName

public java.lang.String getName()
Get name of method.

Specified by:
getName in class BindingMethod
Returns:
method name

getSignature

public java.lang.String getSignature()
Get signature.

Specified by:
getSignature in class BindingMethod
Returns:
signature for method

getAccessFlags

public int getAccessFlags()
Get access flags.

Specified by:
getAccessFlags in class BindingMethod
Returns:
flags for access type of method

setAccessFlags

public void setAccessFlags(int flags)
Set access flags.

Specified by:
setAccessFlags in class BindingMethod
Parameters:
flags - access type to be set

isUsed

public boolean isUsed()
Check method used status.

Returns:
method used status

setUsed

public void setUsed()
Set method used status.


getMethod

public Method getMethod()
Get the actual method.

Specified by:
getMethod in class BindingMethod
Returns:
method information

getItem

public ClassItem getItem()
Get the method item.

Specified by:
getItem in class BindingMethod
Returns:
method item information

delete

public void delete()
Delete method from class.


hashCode

public int hashCode()
Get hash code.

Specified by:
hashCode in class BindingMethod
Returns:
hash code for this method


Project Web Site