Class CodeFilePath

    • Method Detail

      • endLine

        public final Integer endLine()

        The line number of the last line of code that a vulnerability was found in.

        Returns:
        The line number of the last line of code that a vulnerability was found in.
      • fileName

        public final String fileName()

        The name of the file the code vulnerability was found in.

        Returns:
        The name of the file the code vulnerability was found in.
      • filePath

        public final String filePath()

        The file path to the code that a vulnerability was found in.

        Returns:
        The file path to the code that a vulnerability was found in.
      • startLine

        public final Integer startLine()

        The line number of the first line of code that a vulnerability was found in.

        Returns:
        The line number of the first line of code that a vulnerability was found in.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)