Package org.jibx.binding.classes
Class ExistingMethod
java.lang.Object
org.jibx.binding.classes.BindingMethod
org.jibx.binding.classes.ExistingMethod
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
FieldsModifier and TypeFieldDescriptionprivate int
Accumulated hash code from adding instructions.private ClassItem
Class item information.private Method
Actual method information.private boolean
Flag for method used in code. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
Delete method from class.int
Get access flags.getItem()
Get the method item.Method
Get the actual method.getName()
Get name of method.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
-
Field Details
-
m_item
Class item information. -
m_method
private Method m_methodActual method information. -
m_hashCode
private int m_hashCodeAccumulated hash code from adding instructions. -
m_used
private boolean m_usedFlag for method used in code.
-
-
Constructor Details
-
ExistingMethod
Constructor.- Parameters:
method
- actual method informationitem
- class item information for methodfile
- class file information
-
-
Method Details
-
getName
Get name of method.- Specified by:
getName
in classBindingMethod
- Returns:
- method name
-
getSignature
Get signature.- Specified by:
getSignature
in classBindingMethod
- Returns:
- signature for method
-
getAccessFlags
public int getAccessFlags()Get access flags.- Specified by:
getAccessFlags
in classBindingMethod
- Returns:
- flags for access type of method
-
setAccessFlags
public void setAccessFlags(int flags) Set access flags.- Specified by:
setAccessFlags
in 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 Method getMethod()Get the actual method.- Specified by:
getMethod
in classBindingMethod
- Returns:
- method information
-
getItem
Get the method item.- Specified by:
getItem
in classBindingMethod
- Returns:
- method item information
-
delete
public void delete()Delete method from class. -
hashCode
public int hashCode()Get hash code.- Specified by:
hashCode
in classBindingMethod
- Returns:
- hash code for this method
-