org.joni
Class ScannerSupport

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

abstract class ScannerSupport
extends org.jcodings.IntHolder
implements ErrorMessages


Field Summary
protected  int _p
           
private  int begin
           
protected  byte[] bytes
           
protected  int c
           
protected  org.jcodings.Encoding enc
           
private  int end
           
private  int INT_SIGN_BIT
           
private  int lastFetched
           
protected  int p
           
protected  int stop
           
 
Fields inherited from class org.jcodings.IntHolder
value
 
Fields inherited from interface org.joni.exception.ErrorMessages
ERR_CHAR_CLASS_VALUE_AT_END_OF_RANGE, ERR_CHAR_CLASS_VALUE_AT_START_OF_RANGE, ERR_CONTROL_CODE_SYNTAX, ERR_DEFAULT_ENCODING_IS_NOT_SETTED, ERR_EMPTY_CHAR_CLASS, ERR_EMPTY_GROUP_NAME, ERR_EMPTY_RANGE_IN_CHAR_CLASS, ERR_END_PATTERN_AT_CONTROL, ERR_END_PATTERN_AT_ESCAPE, ERR_END_PATTERN_AT_LEFT_BRACE, ERR_END_PATTERN_AT_LEFT_BRACKET, ERR_END_PATTERN_AT_META, ERR_END_PATTERN_IN_GROUP, ERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS, ERR_GROUP_NUMBER_OVER_FOR_CAPTURE_HISTORY, ERR_INVALID_ARGUMENT, ERR_INVALID_BACKREF, ERR_INVALID_CHAR_IN_GROUP_NAME, ERR_INVALID_COMBINATION_OF_OPTIONS, ERR_INVALID_GROUP_NAME, ERR_INVALID_LOOK_BEHIND_PATTERN, ERR_INVALID_POSIX_BRACKET_TYPE, ERR_INVALID_REPEAT_RANGE_PATTERN, ERR_INVALID_WIDE_CHAR_VALUE, ERR_MATCH_STACK_LIMIT_OVER, ERR_MEMORY, ERR_META_CODE_SYNTAX, ERR_MISMATCH_CODE_LENGTH_IN_CLASS_RANGE, ERR_MULTIPLEX_DEFINED_NAME, ERR_MULTIPLEX_DEFINITION_NAME_CALL, ERR_NESTED_REPEAT_OPERATOR, ERR_NEVER_ENDING_RECURSION, ERR_NOT_SUPPORTED_ENCODING_COMBINATION, ERR_NUMBERED_BACKREF_OR_CALL_NOT_ALLOWED, ERR_OVER_THREAD_PASS_LIMIT_COUNT, ERR_PARSER_BUG, ERR_PREMATURE_END_OF_CHAR_CLASS, ERR_SPECIFIED_ENCODING_CANT_CONVERT_TO_WIDE_CHAR, ERR_STACK_BUG, ERR_TARGET_OF_REPEAT_OPERATOR_INVALID, ERR_TARGET_OF_REPEAT_OPERATOR_NOT_SPECIFIED, ERR_TOO_BIG_BACKREF_NUMBER, ERR_TOO_BIG_NUMBER, ERR_TOO_BIG_NUMBER_FOR_REPEAT_RANGE, ERR_TOO_BIG_SB_CHAR_VALUE, ERR_TOO_MANY_MULTI_BYTE_RANGES, ERR_TOO_SHORT_MULTI_BYTE_STRING, ERR_TYPE_BUG, ERR_UNDEFINED_BYTECODE, ERR_UNDEFINED_GROUP_OPTION, ERR_UNDEFINED_GROUP_REFERENCE, ERR_UNDEFINED_NAME_REFERENCE, ERR_UNEXPECTED_BYTECODE, ERR_UNMATCHED_CLOSE_PARENTHESIS, ERR_UNMATCHED_RANGE_SPECIFIER_IN_CHAR_CLASS, ERR_UPPER_SMALLER_THAN_LOWER_IN_REPEAT_RANGE, MISMATCH, NO_SUPPORT_CONFIG
 
Fields inherited from interface org.jcodings.exception.ErrorMessages
ERR_COULD_NOT_REPLICATE, ERR_ENCODING_ALIAS_ALREADY_REGISTERED, ERR_ENCODING_ALREADY_REGISTERED, ERR_ENCODING_CLASS_DEF_NOT_FOUND, ERR_ENCODING_LOAD_ERROR, ERR_ENCODING_REPLICA_ALREADY_REGISTERED, ERR_ILLEGAL_CHARACTER, ERR_INVALID_CHAR_PROPERTY_NAME, ERR_INVALID_CODE_POINT_VALUE, ERR_NO_SUCH_ENCODNG, ERR_TOO_BIG_WIDE_CHAR_VALUE, ERR_TOO_LONG_WIDE_CHAR_VALUE, ERR_TRANSCODER_ALREADY_REGISTERED, ERR_TRANSCODER_CLASS_DEF_NOT_FOUND, ERR_TRANSCODER_LOAD_ERROR
 
Constructor Summary
protected ScannerSupport(org.jcodings.Encoding enc, byte[] bytes, int p, int end)
           
 
Method Summary
protected  void fetch()
           
protected  int fetchTo()
           
protected  int getBegin()
           
protected  int getEnd()
           
protected  void inc()
           
protected  boolean left()
           
protected  void mark()
           
protected  void newInternalException(String message)
           
protected  void newSyntaxException(String message)
           
protected  void newValueException(String message)
           
protected  void newValueException(String message, int p, int end)
           
protected  void newValueException(String message, String str)
           
protected  int peek()
           
protected  boolean peekIs(int c)
           
protected  void reset()
           
protected  void restore()
           
protected  int scanUnsignedHexadecimalNumber(int maxLength)
           
protected  int scanUnsignedNumber()
           
protected  int scanUnsignedOctalNumber(int maxLength)
           
protected  void unfetch()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

INT_SIGN_BIT

private final int INT_SIGN_BIT
See Also:
Constant Field Values
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(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)


Copyright © 2013. All Rights Reserved.