| java.lang.Object edu.umd.cs.findbugs.ba.SourceInfoMap
SourceInfoMap | public class SourceInfoMap (Code) | | 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.
author: David Hovemeyer |
Inner Class :static class FieldDescriptor implements Comparable<FieldDescriptor> | |
Inner Class :static class MethodDescriptor implements Comparable<MethodDescriptor> | |
Inner Class :public static class SourceLineRange | |
SourceInfoMap | public SourceInfoMap()(Code) | | Constructor.
Creates an empty object.
|
addClassLine | public void addClassLine(String className, SourceLineRange range)(Code) | | Add line number entry for a class.
Parameters: className - name of class Parameters: range - the line numbers of the class |
addFieldLine | public void addFieldLine(String className, String fieldName, SourceLineRange range)(Code) | | Add a line number entry for a field.
Parameters: className - name of class containing the field Parameters: fieldName - name of field Parameters: range - the line number(s) of the field |
addMethodLine | public void addMethodLine(String className, String methodName, String methodSignature, SourceLineRange range)(Code) | | Add a line number entry for a method.
Parameters: className - name of class containing the method Parameters: methodName - name of method Parameters: methodSignature - signature of method Parameters: range - the line number of the method |
fallBackToClassfile | public boolean fallBackToClassfile()(Code) | | |
getClassLine | public SourceLineRange getClassLine(String className)(Code) | | Look up the line number range for a class.
Parameters: className - name of the class the line number range, or null if no line number is known for the class |
getFieldLine | public SourceLineRange getFieldLine(String className, String fieldName)(Code) | | Look up the line number range for a field.
Parameters: className - name of class containing the field Parameters: fieldName - name of field the line number range, or null if no line number is known for the field |
getMethodLine | public SourceLineRange getMethodLine(String className, String methodName, String methodSignature)(Code) | | Look up the line number range for a method.
Parameters: className - name of class containing the method Parameters: methodName - name of method Parameters: methodSignature - signature of method the line number range, or null if no line number is known for the method |
isEmpty | public boolean isEmpty()(Code) | | |
read | public void read(InputStream inputStream) throws IOException(Code) | | Read source info from given InputStream.
The stream is guaranteed to be closed.
Parameters: inputStream - the InputStream throws: IOException - if an I/O error occurs, or if the format is invalid |
|
|