public class LineNumbers extends Object
| Constructor and Description |
|---|
LineNumbers(Class cls)
Reads line number information from the given class, if available.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFirstLine()
Gets the first line number.
|
Integer |
getLineNumber(Member member)
Get the line number associated with the given member.
|
String |
getSource()
Get the source file name as read from the bytecode.
|
public LineNumbers(Class cls) throws IOException
cls - the class to read line number information fromIllegalArgumentException - if the bytecode for the class cannot be
foundIOException - if an error occurs while reading bytecodepublic String getSource()
public Integer getLineNumber(Member member)
member - a field, constructor, or method belonging to the class used
during constructionIllegalArgumentException - if the member does not belong to the
class used during constructionpublic int getFirstLine()
Copyright © 2013. All Rights Reserved.