Class PatternStringParser.ParserState

  • Enclosing class:
    PatternStringParser

    private static class PatternStringParser.ParserState
    extends java.lang.Object
    An internal class used for tracking the cursor during parsing of a pattern string.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int offset  
      (package private) java.lang.String pattern  
    • Constructor Summary

      Constructors 
      Constructor Description
      ParserState​(java.lang.String pattern)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) int next()
      Returns the next code point and then steps forward.
      (package private) int peek()
      Returns the next code point, or -1 if string is too short.
      (package private) int peek2()
      Returns the code point after the next code point, or -1 if string is too short.
      (package private) java.lang.IllegalArgumentException toParseException​(java.lang.String message)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pattern

        final java.lang.String pattern
      • offset

        int offset
    • Constructor Detail

      • ParserState

        ParserState​(java.lang.String pattern)
    • Method Detail

      • peek

        int peek()
        Returns the next code point, or -1 if string is too short.
      • peek2

        int peek2()
        Returns the code point after the next code point, or -1 if string is too short.
      • next

        int next()
        Returns the next code point and then steps forward.
      • toParseException

        java.lang.IllegalArgumentException toParseException​(java.lang.String message)