public class SourceInfoMap
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SourceInfoMap.SourceLineRange
A range of source lines.
|
Constructor and Description |
---|
SourceInfoMap()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 classpublic void read(@WillClose java.io.InputStream inputStream) throws java.io.IOException
inputStream
- the InputStreamjava.io.IOException
- if an I/O error occurs, or if the format is invalidFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.