|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.inject.util.LineNumbers
public class LineNumbers
Looks up line numbers for classes and their members.
| Constructor Summary | |
|---|---|
LineNumbers(java.lang.Class cls)
Reads line number information from the given class, if available. |
|
| Method Summary | |
|---|---|
int |
getFirstLine()
Gets the first line number. |
java.lang.Integer |
getLineNumber(java.lang.reflect.Member member)
Get the line number associated with the given member. |
java.lang.String |
getSource()
Get the source file name as read from the bytecode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LineNumbers(java.lang.Class cls)
throws java.io.IOException
cls - the class to read line number information from
java.lang.IllegalArgumentException - if the bytecode for the class cannot be
found
java.io.IOException - if an error occurs while reading bytecode| Method Detail |
|---|
public java.lang.String getSource()
public java.lang.Integer getLineNumber(java.lang.reflect.Member member)
member - a field, constructor, or method belonging to the class used
during construction
java.lang.IllegalArgumentException - if the member does not belong to the
class used during constructionpublic int getFirstLine()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||