Class QueryTarget.PCTarget

    • Constructor Detail

      • PCTarget

        public PCTarget​(String className,
                        String methodName,
                        String descriptor,
                        int pc)
        Creates a target naming one bytecode offset inside a method.
        Parameters:
        className - the declaring class name
        methodName - the method name
        descriptor - the method descriptor
        pc - the bytecode offset within the method
    • 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
      • pc

        public int pc()
        Returns:
        the bytecode offset within the method
      • getSignature

        public String getSignature()
        Returns:
        the method signature with the bytecode offset appended after an "at" sign
      • equals

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

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

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