Class BugAnnotationWithSourceLines

java.lang.Object
edu.umd.cs.findbugs.BugAnnotationWithSourceLines
All Implemented Interfaces:
BugAnnotation, XMLWriteable, XMLWriteableWithMessages, Serializable, Cloneable, Comparable<BugAnnotation>
Direct Known Subclasses:
PackageMemberAnnotation, TypeAnnotation

public abstract class BugAnnotationWithSourceLines extends Object implements BugAnnotation
Author:
pugh
See Also:
  • Field Details

  • Constructor Details

    • BugAnnotationWithSourceLines

      public BugAnnotationWithSourceLines()
  • Method Details

    • clone

      public Object clone()
      Specified by:
      clone in interface BugAnnotation
      Overrides:
      clone in class Object
    • getSourceFileName

      public final String getSourceFileName()
      Get the source file name.
    • setSourceLines

      public void setSourceLines(SourceLineAnnotation sourceLines)
      Set a SourceLineAnnotation describing the source lines where the package element is defined.
    • getSourceLines

      public SourceLineAnnotation getSourceLines()
      Get the SourceLineAnnotation describing the source lines where the method is defined.
      Returns:
      the SourceLineAnnotation, or null if there is no source information for this package element
    • toString

      public String toString(ClassAnnotation primaryClass)
      Specified by:
      toString in interface BugAnnotation