Class LineNumberRangeFinder
- java.lang.Object
-
- proguard.classfile.attribute.visitor.LineNumberRangeFinder
-
- All Implemented Interfaces:
LineNumberInfoVisitor
public class LineNumberRangeFinder extends java.lang.Object implements LineNumberInfoVisitor
ThisLineNumberInfoVisitor
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 Summary
Constructors Constructor Description LineNumberRangeFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getLowestLineNumber
public int getLowestLineNumber()
Returns the lowest line number that has been visited so far.
-
getHighestLineNumber
public int getHighestLineNumber()
Returns the highest line number that has been visited so far.
-
hasSource
public boolean hasSource()
Returns whether any of the visited line numbers has a non-null source.
-
visitLineNumberInfo
public void visitLineNumberInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, LineNumberInfo lineNumberInfo)
- Specified by:
visitLineNumberInfo
in interfaceLineNumberInfoVisitor
-
-