Class ParserCursor


  • public class ParserCursor
    extends java.lang.Object
    This class represents a context of a parsing operation:
    • the current position the parsing operation is expected to start at
    • the bounds limiting the scope of the parsing operation
    Since:
    4.0
    • Constructor Detail

      • ParserCursor

        public ParserCursor​(int lowerBound,
                            int upperBound)
    • Method Detail

      • getLowerBound

        public int getLowerBound()
      • getUpperBound

        public int getUpperBound()
      • getPos

        public int getPos()
      • updatePos

        public void updatePos​(int pos)
      • atEnd

        public boolean atEnd()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object