|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.ba.SourceInfoMap
public class SourceInfoMap
Global information about the source code for an application. Currently, this object contains a map of source line information for fields and classes (items we don't get line number information for directly in classfiles), and also source line information for methods that don't appear directly in classfiles, such as abstract and native methods.
Nested Class Summary | |
---|---|
static class |
SourceInfoMap.SourceLineRange
A range of source lines. |
Constructor Summary | |
---|---|
SourceInfoMap()
Constructor. |
Method Summary | |
---|---|
void |
addClassLine(java.lang.String className,
SourceInfoMap.SourceLineRange range)
Add line number entry for a class. |
void |
addFieldLine(java.lang.String className,
java.lang.String fieldName,
SourceInfoMap.SourceLineRange range)
Add a line number entry for a field. |
void |
addMethodLine(java.lang.String className,
java.lang.String methodName,
java.lang.String methodSignature,
SourceInfoMap.SourceLineRange range)
Add a line number entry for a method. |
boolean |
fallBackToClassfile()
|
SourceInfoMap.SourceLineRange |
getClassLine(java.lang.String className)
Look up the line number range for a class. |
SourceInfoMap.SourceLineRange |
getFieldLine(java.lang.String className,
java.lang.String fieldName)
Look up the line number range for a field. |
SourceInfoMap.SourceLineRange |
getMethodLine(java.lang.String className,
java.lang.String methodName,
java.lang.String methodSignature)
Look up the line number range for a method. |
boolean |
isEmpty()
|
void |
read(java.io.InputStream inputStream)
Read source info from given InputStream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceInfoMap()
Method Detail |
---|
public boolean fallBackToClassfile()
public boolean isEmpty()
public void addFieldLine(java.lang.String className, java.lang.String fieldName, SourceInfoMap.SourceLineRange range)
className
- name of class containing the fieldfieldName
- name of fieldrange
- the line number(s) of the fieldpublic void addMethodLine(java.lang.String className, java.lang.String methodName, java.lang.String methodSignature, SourceInfoMap.SourceLineRange range)
className
- name of class containing the methodmethodName
- name of methodmethodSignature
- signature of methodrange
- the line number of the methodpublic void addClassLine(java.lang.String className, SourceInfoMap.SourceLineRange range)
className
- name of classrange
- the line numbers of the class@CheckForNull public SourceInfoMap.SourceLineRange getFieldLine(java.lang.String className, java.lang.String fieldName)
className
- name of class containing the fieldfieldName
- name of field
@CheckForNull public SourceInfoMap.SourceLineRange getMethodLine(java.lang.String className, java.lang.String methodName, java.lang.String methodSignature)
className
- name of class containing the methodmethodName
- name of methodmethodSignature
- signature of method
@CheckForNull public SourceInfoMap.SourceLineRange getClassLine(java.lang.String className)
className
- name of the class
public void read(@WillClose java.io.InputStream inputStream) throws java.io.IOException
inputStream
- the InputStream
java.io.IOException
- if an I/O error occurs, or if the format is invalid
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |