public final class JSONScanner extends JSONLexerBase
matchStatARRAY, 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, tokenNamepublic 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 JSONLexerBasepublic final boolean charArrayCompare(char[] chars)
public 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 char[] sub_chars(int offset,
int count)
public final String numberString()
numberString in interface JSONLexernumberString in class JSONLexerBasepublic final BigDecimal decimalValue()
decimalValue in interface JSONLexerdecimalValue 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 Date scanFieldDate(char[] fieldName)
scanFieldDate in class JSONLexerBasepublic long scanFieldSymbol(char[] fieldName)
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 JSONLexerBasepublic final int scanInt(char expectNext)
scanInt in interface JSONLexerscanInt in class JSONLexerBasepublic double scanDouble(char seperator)
scanDouble in interface JSONLexerscanDouble in class JSONLexerBasepublic long scanLong(char seperator)
scanLong in interface JSONLexerscanLong in class JSONLexerBasepublic Date scanDate(char seperator)
scanDate in class JSONLexerBasepublic String info()
info in interface JSONLexerinfo in class JSONLexerBasepublic String[] scanFieldStringArray(char[] fieldName, int argTypesCount, SymbolTable typeSymbolTable)
JSONLexerBasescanFieldStringArray in class JSONLexerBasepublic boolean matchField2(char[] fieldName)
matchField2 in class JSONLexerBasepublic final void skipObject()
skipObject in class JSONLexerBasepublic final void skipObject(boolean valid)
skipObject in class JSONLexerBasepublic final void skipArray()
skipArray in class JSONLexerBasepublic final void skipArray(boolean valid)
public final void skipString()
public boolean seekArrayToItem(int index)
seekArrayToItem in class JSONLexerBasepublic int seekObjectToField(long fieldNameHash,
boolean deepScan)
seekObjectToField in class JSONLexerBasepublic int seekObjectToField(long[] fieldNameHash)
seekObjectToField in class JSONLexerBasepublic String scanTypeName(SymbolTable symbolTable)
scanTypeName in interface JSONLexerscanTypeName in class JSONLexerBaseCopyright © 2012–2022 Alibaba Group. All rights reserved.