public final class JSONScanner extends JSONLexerBase
| Modifier and Type | Field and Description |
|---|---|
int |
ISO8601_LEN_0 |
int |
ISO8601_LEN_1 |
int |
ISO8601_LEN_2 |
protected static char[] |
typeFieldName |
bp, calendar, ch, digits, eofPos, features, hasSpecial, INT_MULTMIN_RADIX_TEN, INT_N_MULTMAX_RADIX_TEN, keywods, matchStat, MULTMIN_RADIX_TEN, N_MULTMAX_RADIX_TEN, np, pos, sbuf, sp, token, whitespaceFlags| Constructor and Description |
|---|
JSONScanner(char[] input,
int inputLength) |
JSONScanner(char[] input,
int inputLength,
int features) |
JSONScanner(String input) |
JSONScanner(String input,
int features) |
| Modifier and Type | Method and Description |
|---|---|
String |
addSymbol(int offset,
int len,
int hash,
SymbolTable symbolTable) |
protected void |
arrayCopy(int srcPos,
char[] dest,
int destPos,
int length) |
byte[] |
bytesValue() |
boolean |
charArrayCompare(char[] chars) |
char |
charAt(int index) |
protected void |
copyTo(int offset,
int count,
char[] dest) |
int |
indexOf(char ch,
int startIndex) |
boolean |
isEOF() |
char |
next() |
String |
numberString() |
boolean |
scanFieldBoolean(char[] fieldName) |
int |
scanFieldInt(char[] fieldName) |
long |
scanFieldLong(char[] fieldName) |
String |
scanFieldString(char[] fieldName) |
Collection<String> |
scanFieldStringArray(char[] fieldName,
Class<?> type) |
String |
scanFieldSymbol(char[] fieldName,
SymbolTable symbolTable) |
boolean |
scanISO8601DateIfMatch() |
boolean |
scanISO8601DateIfMatch(boolean strict) |
int |
scanType(String type) |
String |
stringVal()
The value of a literal token, recorded as a string.
|
String |
subString(int offset,
int count) |
close, config, decimalValue, decimalValue, doubleValue, floatValue, getBufferPosition, getCalendar, getCurrent, integerValue, intValue, isBlankInput, isEnabled, isRef, isWhitespace, lexError, longValue, matchField, matchStat, nextIdent, nextToken, nextToken, nextTokenWithChar, nextTokenWithChar, nextTokenWithColon, nextTokenWithColon, nextTokenWithComma, nextTokenWithComma, numberValue, pos, putChar, resetStringPosition, scanBoolean, scanEnum, scanFalse, scanFieldDouble, scanFieldDouble, scanFieldFloat, scanFloat, scanIdent, scanInt, scanLong, scanNullOrNew, scanNumber, scanSet, scanString, scanString, scanStringArray, scanSymbol, scanSymbol, scanSymbolUnQuoted, scanSymbolWithSeperator, scanTreeSet, scanTrue, skipWhitespace, stringDefaultValue, token, tokenNameprotected static final char[] typeFieldName
public final int ISO8601_LEN_0
public final int ISO8601_LEN_1
public final int ISO8601_LEN_2
public JSONScanner(String input)
public JSONScanner(String input, int features)
public JSONScanner(char[] input,
int inputLength)
public JSONScanner(char[] input,
int inputLength,
int features)
public final char charAt(int index)
charAt in class JSONLexerBasepublic final char next()
next in interface JSONLexernext in class JSONLexerBaseprotected final void copyTo(int offset,
int count,
char[] dest)
copyTo in class JSONLexerBasepublic final int scanType(String type)
scanType in class JSONLexerBasepublic final boolean charArrayCompare(char[] chars)
charArrayCompare in class JSONLexerBasepublic final int indexOf(char ch,
int startIndex)
indexOf in class JSONLexerBasepublic final String addSymbol(int offset, int len, int hash, SymbolTable symbolTable)
addSymbol in class JSONLexerBasepublic byte[] bytesValue()
bytesValue in interface JSONLexerbytesValue in class JSONLexerBasepublic final String stringVal()
stringVal in interface JSONLexerstringVal in class JSONLexerBasepublic final String subString(int offset, int count)
subString in class JSONLexerBasepublic final String numberString()
numberString in interface JSONLexernumberString in class JSONLexerBasepublic boolean scanISO8601DateIfMatch()
public boolean scanISO8601DateIfMatch(boolean strict)
public boolean isEOF()
isEOF in class JSONLexerBasepublic int scanFieldInt(char[] fieldName)
scanFieldInt in class JSONLexerBasepublic String scanFieldString(char[] fieldName)
scanFieldString in class JSONLexerBasepublic String scanFieldSymbol(char[] fieldName, SymbolTable symbolTable)
scanFieldSymbol in class JSONLexerBasepublic Collection<String> scanFieldStringArray(char[] fieldName, Class<?> type)
scanFieldStringArray in class JSONLexerBasepublic long scanFieldLong(char[] fieldName)
scanFieldLong in class JSONLexerBasepublic boolean scanFieldBoolean(char[] fieldName)
scanFieldBoolean in class JSONLexerBaseprotected final void arrayCopy(int srcPos,
char[] dest,
int destPos,
int length)
arrayCopy in class JSONLexerBaseCopyright © 2016 jufeng. All rights reserved.