Package org.jibx.binding.classes
Class ExistingMethod
- java.lang.Object
-
- org.jibx.binding.classes.BindingMethod
-
- 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
-
-
Constructor Summary
Constructors Constructor Description ExistingMethod(org.apache.bcel.classfile.Method method, ClassItem item, ClassFile file)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()Delete method from class.intgetAccessFlags()Get access flags.ClassItemgetItem()Get the method item.org.apache.bcel.classfile.MethodgetMethod()Get the actual method.StringgetName()Get name of method.StringgetSignature()Get signature.inthashCode()Get hash code.booleanisUsed()Check method used status.voidsetAccessFlags(int flags)Set access flags.voidsetUsed()Set method used status.-
Methods inherited from class org.jibx.binding.classes.BindingMethod
computeMethodHash, equals, getClassFile, makeAccessible
-
-
-
-
Method Detail
-
getName
public String getName()
Get name of method.- Specified by:
getNamein classBindingMethod- Returns:
- method name
-
getSignature
public String getSignature()
Get signature.- Specified by:
getSignaturein classBindingMethod- Returns:
- signature for method
-
getAccessFlags
public int getAccessFlags()
Get access flags.- Specified by:
getAccessFlagsin classBindingMethod- Returns:
- flags for access type of method
-
setAccessFlags
public void setAccessFlags(int flags)
Set access flags.- Specified by:
setAccessFlagsin classBindingMethod- 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 org.apache.bcel.classfile.Method getMethod()
Get the actual method.- Specified by:
getMethodin classBindingMethod- Returns:
- method information
-
getItem
public ClassItem getItem()
Get the method item.- Specified by:
getItemin classBindingMethod- Returns:
- method item information
-
delete
public void delete()
Delete method from class.
-
hashCode
public int hashCode()
Get hash code.- Specified by:
hashCodein classBindingMethod- Returns:
- hash code for this method
-
-