| java.lang.Object com.bm.ejb3guice.internal.LineNumbers
LineNumbers | public class LineNumbers (Code) | | Looks up line numbers for classes and their members.
author: Chris Nokleberg |
Constructor Summary | |
public | LineNumbers(Class cls) Reads line number information from the given class, if available. |
LineNumbers | public LineNumbers(Class cls) throws IOException(Code) | | Reads line number information from the given class, if available.
Parameters: cls - the class to read line number information from throws: IllegalArgumentException - if the bytecode for the class cannot be found throws: IOException - if an error occurs while reading bytecode |
getFirstLine | public int getFirstLine()(Code) | | Gets the first line number.
|
getLineNumber | public Integer getLineNumber(Member member)(Code) | | Get the line number associated with the given member.
Parameters: member - a field, constructor, or method belonging to the class usedduring construction the wrapped line number, or null if not available throws: IllegalArgumentException - if the member does not belong to the class used duringconstruction |
getSource | public String getSource()(Code) | | Get the source file name as read from the bytecode.
the source file name if available, or null |
|
|