public class LineNumberRangeFinder extends java.lang.Object implements LineNumberInfoVisitor
LineNumberInfoVisitor
remembers the lowest and the highest line numbers that it
finds in all the line numbers that it visits. It ignores the sources of the line numbers.Constructor and Description |
---|
LineNumberRangeFinder() |
Modifier and Type | Method and Description |
---|---|
int |
getHighestLineNumber()
Returns the highest line number that has been visited so far.
|
int |
getLowestLineNumber()
Returns the lowest line number that has been visited so far.
|
boolean |
hasSource()
Returns whether any of the visited line numbers has a non-null source.
|
void |
visitLineNumberInfo(Clazz clazz,
Method method,
CodeAttribute codeAttribute,
LineNumberInfo lineNumberInfo) |
public int getLowestLineNumber()
public int getHighestLineNumber()
public boolean hasSource()
public void visitLineNumberInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, LineNumberInfo lineNumberInfo)
visitLineNumberInfo
in interface LineNumberInfoVisitor