Class LineNumberRangeFinder

  • All Implemented Interfaces:
    LineNumberInfoVisitor

    public class LineNumberRangeFinder
    extends java.lang.Object
    implements LineNumberInfoVisitor
    This 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 Detail

      • LineNumberRangeFinder

        public LineNumberRangeFinder()
    • 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.