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
- See Also:
-
Field Summary
FieldsFields inherited from interface BugAnnotation
MESSAGE_TAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()final StringGet the source file name.Get the SourceLineAnnotation describing the source lines where the method is defined.voidsetSourceLines(SourceLineAnnotation sourceLines) Set a SourceLineAnnotation describing the source lines where the package element is defined.toString(ClassAnnotation primaryClass) Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BugAnnotation
accept, format, getDescription, isSignificant, setDescriptionMethods inherited from interface Comparable
compareToMethods inherited from interface XMLWriteable
writeXMLMethods inherited from interface XMLWriteableWithMessages
writeXML
-
Field Details
-
sourceFileName
-
sourceLines
-
-
Constructor Details
-
BugAnnotationWithSourceLines
protected BugAnnotationWithSourceLines()
-
-
Method Details
-
clone
- Specified by:
clonein interfaceBugAnnotation- Overrides:
clonein classObject
-
getSourceFileName
Get the source file name. -
setSourceLines
Set a SourceLineAnnotation describing the source lines where the package element is defined. -
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
- Specified by:
toStringin interfaceBugAnnotation
-