Package org.joni

Class ScannerSupport

java.lang.Object
org.jcodings.IntHolder
org.joni.ScannerSupport
All Implemented Interfaces:
org.jcodings.exception.ErrorMessages, ErrorMessages
Direct Known Subclasses:
Lexer

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

    • 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
    • INT_SIGN_BIT

      private static final int INT_SIGN_BIT
      See Also:
  • Constructor Details

    • ScannerSupport

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

    • getBegin

      protected final int getBegin()
    • getEnd

      protected final int getEnd()
    • scanUnsignedNumber

      protected final int scanUnsignedNumber()
    • scanUnsignedHexadecimalNumber

      protected final int scanUnsignedHexadecimalNumber(int minLength, 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(String message)
    • newValueException

      protected void newValueException(String message)
    • newValueException

      protected void newValueException(String message, String str)
    • newValueException

      protected void newValueException(String message, int p, int end)
    • newInternalException

      protected void newInternalException(String message)