Class 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 Detail

      • ExistingMethod

        public ExistingMethod​(org.apache.bcel.classfile.Method method,
                              ClassItem item,
                              ClassFile file)
        Constructor.
        Parameters:
        method - actual method information
        item - class item information for method
        file - class file information
    • Method Detail

      • 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 org.apache.bcel.classfile.Method getMethod()
        Get the actual method.
        Specified by:
        getMethod in class BindingMethod
        Returns:
        method 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