Class QueryTarget.MethodTarget

    • Constructor Detail

      • MethodTarget

        public MethodTarget​(String className,
                            String methodName,
                            String descriptor)
        Creates a target naming one method.
        Parameters:
        className - the declaring class name
        methodName - the method name
        descriptor - the method descriptor
    • Method Detail

      • className

        public String className()
        Returns:
        the declaring class name
      • methodName

        public String methodName()
        Returns:
        the method name
      • descriptor

        public String descriptor()
        Returns:
        the method descriptor
      • getSignature

        public String getSignature()
        Returns:
        the class, method and descriptor joined into one signature string
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class Object
        Parameters:
        o - the object to compare against
        Returns:
        true when o is a MethodTarget with the same class, method name and descriptor
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
        Returns:
        a hash over the class, method name and descriptor
      • toString

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        the signature wrapped in a MethodTarget marker