Package edu.umd.cs.findbugs
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
- Author:
- pugh
- See Also:
-
Field Summary
FieldsFields inherited from interface edu.umd.cs.findbugs.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 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.umd.cs.findbugs.BugAnnotation
accept, format, getDescription, isSignificant, setDescriptionMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface edu.umd.cs.findbugs.xml.XMLWriteable
writeXMLMethods inherited from interface edu.umd.cs.findbugs.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
-