public final class JSONScanner extends JSONLexerBase
matchStat
ARRAY, END, EOI, NOT_MATCH, NOT_MATCH_NAME, OBJECT, UNKNOWN, VALUE, VALUE_NULL
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) |
byte[] |
bytesValue() |
boolean |
charArrayCompare(char[] chars) |
char |
charAt(int index) |
BigDecimal |
decimalValue() |
int |
indexOf(char ch,
int startIndex) |
String |
info() |
boolean |
isEOF() |
boolean |
matchField2(char[] fieldName) |
char |
next() |
String |
numberString() |
Date |
scanDate(char seperator) |
double |
scanDouble(char seperator) |
boolean |
scanFieldBoolean(char[] fieldName) |
Date |
scanFieldDate(char[] fieldName) |
int |
scanFieldInt(char[] fieldName) |
long |
scanFieldLong(char[] fieldName) |
String |
scanFieldString(char[] fieldName) |
Collection<String> |
scanFieldStringArray(char[] fieldName,
Class<?> type) |
String[] |
scanFieldStringArray(char[] fieldName,
int argTypesCount,
SymbolTable typeSymbolTable)
hsf support
|
long |
scanFieldSymbol(char[] fieldName) |
int |
scanInt(char expectNext) |
boolean |
scanISO8601DateIfMatch() |
boolean |
scanISO8601DateIfMatch(boolean strict) |
long |
scanLong(char seperator) |
String |
scanTypeName(SymbolTable symbolTable) |
boolean |
seekArrayToItem(int index) |
int |
seekObjectToField(long[] fieldNameHash) |
int |
seekObjectToField(long fieldNameHash,
boolean deepScan) |
void |
skipArray() |
void |
skipArray(boolean valid) |
void |
skipObject() |
void |
skipObject(boolean valid) |
void |
skipString() |
String |
stringVal()
The value of a literal token, recorded as a string.
|
char[] |
sub_chars(int offset,
int count) |
String |
subString(int offset,
int count) |
close, config, decimalValue, doubleValue, floatValue, getCalendar, getCurrent, getFeatures, getLocale, getTimeZone, integerValue, intValue, isBlankInput, isEnabled, isEnabled, isEnabled, isRef, isWhitespace, longValue, matchField, matchField, matchStat, newCollectionByType, nextIdent, nextToken, nextToken, nextTokenWithChar, nextTokenWithColon, nextTokenWithColon, pos, readString, resetStringPosition, scanBoolean, scanDecimal, scanEnum, scanEnumSymbol, scanFalse, scanFieldBigInteger, scanFieldDecimal, scanFieldDouble, scanFieldFloat, scanFieldFloatArray, scanFieldFloatArray2, scanFieldIntArray, scanFieldUUID, scanFloat, scanHex, scanIdent, scanNullOrNew, scanNullOrNew, scanNumber, scanString, scanString, scanStringArray, scanSymbol, scanSymbol, scanSymbolUnQuoted, scanSymbolWithSeperator, scanTrue, scanType, scanUUID, seekObjectToFieldDeepScan, setFeatures, setLocale, setTimeZone, setToken, skipWhitespace, stringDefaultValue, token, tokenName
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 JSONLexerBase
public final char next()
next
in interface JSONLexer
next
in class JSONLexerBase
public final boolean charArrayCompare(char[] chars)
public final int indexOf(char ch, int startIndex)
indexOf
in class JSONLexerBase
public final String addSymbol(int offset, int len, int hash, SymbolTable symbolTable)
addSymbol
in class JSONLexerBase
public byte[] bytesValue()
bytesValue
in interface JSONLexer
bytesValue
in class JSONLexerBase
public final String stringVal()
stringVal
in interface JSONLexer
stringVal
in class JSONLexerBase
public final String subString(int offset, int count)
subString
in class JSONLexerBase
public final char[] sub_chars(int offset, int count)
public final String numberString()
numberString
in interface JSONLexer
numberString
in class JSONLexerBase
public final BigDecimal decimalValue()
decimalValue
in interface JSONLexer
decimalValue
in class JSONLexerBase
public boolean scanISO8601DateIfMatch()
public boolean scanISO8601DateIfMatch(boolean strict)
public boolean isEOF()
isEOF
in class JSONLexerBase
public int scanFieldInt(char[] fieldName)
scanFieldInt
in class JSONLexerBase
public String scanFieldString(char[] fieldName)
scanFieldString
in class JSONLexerBase
public Date scanFieldDate(char[] fieldName)
scanFieldDate
in class JSONLexerBase
public long scanFieldSymbol(char[] fieldName)
scanFieldSymbol
in class JSONLexerBase
public Collection<String> scanFieldStringArray(char[] fieldName, Class<?> type)
scanFieldStringArray
in class JSONLexerBase
public long scanFieldLong(char[] fieldName)
scanFieldLong
in class JSONLexerBase
public boolean scanFieldBoolean(char[] fieldName)
scanFieldBoolean
in class JSONLexerBase
public final int scanInt(char expectNext)
scanInt
in interface JSONLexer
scanInt
in class JSONLexerBase
public double scanDouble(char seperator)
scanDouble
in interface JSONLexer
scanDouble
in class JSONLexerBase
public long scanLong(char seperator)
scanLong
in interface JSONLexer
scanLong
in class JSONLexerBase
public Date scanDate(char seperator)
scanDate
in class JSONLexerBase
public String info()
info
in interface JSONLexer
info
in class JSONLexerBase
public String[] scanFieldStringArray(char[] fieldName, int argTypesCount, SymbolTable typeSymbolTable)
JSONLexerBase
scanFieldStringArray
in class JSONLexerBase
public boolean matchField2(char[] fieldName)
matchField2
in class JSONLexerBase
public final void skipObject()
skipObject
in class JSONLexerBase
public final void skipObject(boolean valid)
skipObject
in class JSONLexerBase
public final void skipArray()
skipArray
in class JSONLexerBase
public final void skipArray(boolean valid)
public final void skipString()
public boolean seekArrayToItem(int index)
seekArrayToItem
in class JSONLexerBase
public int seekObjectToField(long fieldNameHash, boolean deepScan)
seekObjectToField
in class JSONLexerBase
public int seekObjectToField(long[] fieldNameHash)
seekObjectToField
in class JSONLexerBase
public String scanTypeName(SymbolTable symbolTable)
scanTypeName
in interface JSONLexer
scanTypeName
in class JSONLexerBase
Copyright © 2012–2022 Alibaba Group. All rights reserved.