edu.umd.cs.findbugs
Class BugAnnotationWithSourceLines
java.lang.Object
edu.umd.cs.findbugs.BugAnnotationWithSourceLines
- All Implemented Interfaces:
- BugAnnotation, XMLWriteable, XMLWriteableWithMessages, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<BugAnnotation>
- Direct Known Subclasses:
- PackageMemberAnnotation, TypeAnnotation
public abstract class BugAnnotationWithSourceLines
- extends java.lang.Object
- implements BugAnnotation
- Author:
- pugh
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
compareTo |
sourceFileName
protected java.lang.String sourceFileName
sourceLines
protected SourceLineAnnotation sourceLines
BugAnnotationWithSourceLines
public BugAnnotationWithSourceLines()
clone
public java.lang.Object clone()
- Specified by:
clone
in interface BugAnnotation
- Overrides:
clone
in class java.lang.Object
getSourceFileName
public final java.lang.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 java.lang.String toString(ClassAnnotation primaryClass)
- Specified by:
toString
in interface BugAnnotation
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.