Package org.joni

Class ScannerSupport

  • All Implemented Interfaces:
    org.jcodings.exception.ErrorMessages, ErrorMessages
    Direct Known Subclasses:
    Lexer

    abstract class ScannerSupport
    extends org.jcodings.IntHolder
    implements ErrorMessages
    • Field Detail

      • enc

        protected final org.jcodings.Encoding enc
      • bytes

        protected final byte[] bytes
      • p

        protected int p
      • stop

        protected int stop
      • lastFetched

        private int lastFetched
      • c

        protected int c
      • begin

        private final int begin
      • end

        private final int end
      • _p

        protected int _p
    • Constructor Detail

      • ScannerSupport

        protected ScannerSupport​(org.jcodings.Encoding enc,
                                 byte[] bytes,
                                 int p,
                                 int end)
    • Method Detail

      • getBegin

        protected int getBegin()
      • getEnd

        protected int getEnd()
      • scanUnsignedNumber

        protected final int scanUnsignedNumber()
      • scanUnsignedHexadecimalNumber

        protected final int scanUnsignedHexadecimalNumber​(int maxLength)
      • scanUnsignedOctalNumber

        protected final int scanUnsignedOctalNumber​(int maxLength)
      • reset

        protected final void reset()
      • mark

        protected final void mark()
      • restore

        protected final void restore()
      • inc

        protected final void inc()
      • fetch

        protected final void fetch()
      • fetchTo

        protected int fetchTo()
      • unfetch

        protected final void unfetch()
      • peek

        protected final int peek()
      • peekIs

        protected final boolean peekIs​(int c)
      • left

        protected final boolean left()
      • newSyntaxException

        protected void newSyntaxException​(java.lang.String message)
      • newValueException

        protected void newValueException​(java.lang.String message)
      • newValueException

        protected void newValueException​(java.lang.String message,
                                         java.lang.String str)
      • newValueException

        protected void newValueException​(java.lang.String message,
                                         int p,
                                         int end)
      • newInternalException

        protected void newInternalException​(java.lang.String message)