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 String
Get the source file name.Get the SourceLineAnnotation describing the source lines where the method is defined.void
setSourceLines
(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, wait
Methods inherited from interface edu.umd.cs.findbugs.BugAnnotation
accept, format, getDescription, isSignificant, setDescription
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface edu.umd.cs.findbugs.xml.XMLWriteable
writeXML
Methods inherited from interface edu.umd.cs.findbugs.XMLWriteableWithMessages
writeXML
-
Field Details
-
sourceFileName
-
sourceLines
-
-
Constructor Details
-
BugAnnotationWithSourceLines
public BugAnnotationWithSourceLines()
-
-
Method Details
-
clone
- Specified by:
clone
in interfaceBugAnnotation
- Overrides:
clone
in 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:
toString
in interfaceBugAnnotation
-