Class ParserBase

  • Direct Known Subclasses:
    PathParser

    public class ParserBase
    extends java.lang.Object
    • Field Detail

      • input

        @NotNull
        protected final @NotNull java.lang.String input
      • inputLength

        private final int inputLength
      • index

        private int index
    • Constructor Detail

      • ParserBase

        public ParserBase​(@NotNull
                          @NotNull java.lang.String input,
                          int startIndex)
    • Method Detail

      • peek

        protected char peek()
      • consume

        protected void consume()
      • hasNext

        public boolean hasNext()
      • consumeWhiteSpaceOrSeparator

        public void consumeWhiteSpaceOrSeparator()
      • isWhiteSpaceOrSeparator

        private boolean isWhiteSpaceOrSeparator​(char c)
      • nextNumberString

        private java.lang.String nextNumberString()
      • nextFloatOrUnspecified

        protected float nextFloatOrUnspecified()
      • nextFloat

        public float nextFloat()
                        throws java.lang.NumberFormatException
        Throws:
        java.lang.NumberFormatException
      • nextDouble

        public double nextDouble()
                          throws java.lang.NumberFormatException
        Throws:
        java.lang.NumberFormatException
      • currentLocation

        @NotNull
        protected @NotNull java.lang.String currentLocation()