| java.lang.Object org.jibx.binding.classes.BindingMethod
All known Subclasses: org.jibx.binding.classes.ExistingMethod, org.jibx.binding.classes.MethodBuilder,
BindingMethod | abstract public class BindingMethod (Code) | | Binding method information. Tracks a method used by the binding code,
supplying hash code and equality checking based on the method signature and
actual byte code of the method, ignoring the method name. This allows
comparisons between methods generated by different bindings, and between
generated and existing methods.
author: Dennis M. Sosnoski version: 1.0 |
BindingMethod | protected BindingMethod(ClassFile cf)(Code) | | Constructor.
Parameters: cf - owning class file information |
computeMethodHash | public static int computeMethodHash(Method method)(Code) | | Computes the hash code for a method. The hash code is based on the
method signature, the exceptions thrown, and the actual byte code
(including the exception handlers).
computed hash code for method |
equals | public boolean equals(Object obj)(Code) | | Check if objects are equal. Compares first based on hash code, then on
the actual byte code sequence.
true if equal objects, false if not |
getAccessFlags | abstract public int getAccessFlags()(Code) | | Get access flags. This abstract method must be implemented by every
subclass.
flags for access type of method |
getClassFile | public ClassFile getClassFile()(Code) | | Get class file containing method.
class file owning this method |
getItem | abstract public ClassItem getItem()(Code) | | Get the method item.
method item information |
getMethod | abstract public Method getMethod()(Code) | | Get the actual method.
method information |
getName | abstract public String getName()(Code) | | Get name of method. This abstract method must be implemented by every
subclass.
method name |
getSignature | abstract public String getSignature()(Code) | | Get signature. This abstract method must be implemented by every
subclass.
signature for method |
hashCode | abstract public int hashCode()(Code) | | Get hash code. This abstract method must be implemented by every
subclass, using the same algorithm in each case. See one of the existing
subclasses for details.
hash code for this method |
makeAccessible | public void makeAccessible(ClassFile src)(Code) | | Make accessible method. Check if this method is accessible from another
class, and if not decreases the access restrictions to make it
accessible.
Parameters: src - class file for required access |
setAccessFlags | abstract public void setAccessFlags(int flags)(Code) | | Set access flags. This abstract method must be implemented by every
subclass.
Parameters: flags - access type to be set |
|
|