FindBugs™ 1.3.9

edu.umd.cs.findbugs
Class BugAnnotationWithSourceLines

java.lang.Object
  extended by 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

Field Summary
protected  java.lang.String sourceFileName
           
protected  SourceLineAnnotation sourceLines
           
 
Fields inherited from interface edu.umd.cs.findbugs.BugAnnotation
MESSAGE_TAG
 
Constructor Summary
BugAnnotationWithSourceLines()
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String getSourceFileName()
          Get the source file name.
 SourceLineAnnotation getSourceLines()
          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.
 java.lang.String 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.XMLWriteableWithMessages
writeXML
 
Methods inherited from interface edu.umd.cs.findbugs.xml.XMLWriteable
writeXML
 

Field Detail

sourceFileName

protected java.lang.String sourceFileName

sourceLines

protected SourceLineAnnotation sourceLines
Constructor Detail

BugAnnotationWithSourceLines

public BugAnnotationWithSourceLines()
Method Detail

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™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.