Class TaintLocation


  • public class TaintLocation
    extends Object
    Global comparable specification of a taint source (or path node) location
    Author:
    David Formanek (Y Soft Corporation, a.s.)
    • Constructor Detail

      • TaintLocation

        public TaintLocation​(edu.umd.cs.findbugs.classfile.MethodDescriptor methodDescriptor,
                             int position)
        Constructs a location from the specified method and position inside
        Parameters:
        methodDescriptor - method of the location
        position - position in the method
        Throws:
        NullPointerException - if method is null
        IllegalArgumentException - if position is negative
    • Method Detail

      • getMethodDescriptor

        public edu.umd.cs.findbugs.classfile.MethodDescriptor getMethodDescriptor()
        Returns the method of this location
        Returns:
        descriptor of the method
      • getPosition

        public int getPosition()
        Returns the position in the method of this location
        Returns:
        index of the position
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object