public final class JSONScanner extends JSONLexerBase
matchStatARRAY, END, EOI, NOT_MATCH, NOT_MATCH_NAME, OBJECT, UNKNOWN, VALUE, VALUE_NULL| 构造器和说明 |
|---|
JSONScanner(char[] input,
int inputLength) |
JSONScanner(char[] input,
int inputLength,
int features) |
JSONScanner(String input) |
JSONScanner(String input,
int features) |
| 限定符和类型 | 方法和说明 |
|---|---|
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, 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 在类中 JSONLexerBasepublic final char next()
next 在接口中 JSONLexernext 在类中 JSONLexerBasepublic final boolean charArrayCompare(char[] chars)
public final int indexOf(char ch,
int startIndex)
indexOf 在类中 JSONLexerBasepublic final String addSymbol(int offset, int len, int hash, SymbolTable symbolTable)
addSymbol 在类中 JSONLexerBasepublic byte[] bytesValue()
bytesValue 在接口中 JSONLexerbytesValue 在类中 JSONLexerBasepublic final String stringVal()
stringVal 在接口中 JSONLexerstringVal 在类中 JSONLexerBasepublic final String subString(int offset, int count)
subString 在类中 JSONLexerBasepublic final char[] sub_chars(int offset,
int count)
public final String numberString()
numberString 在接口中 JSONLexernumberString 在类中 JSONLexerBasepublic final BigDecimal decimalValue()
decimalValue 在接口中 JSONLexerdecimalValue 在类中 JSONLexerBasepublic boolean scanISO8601DateIfMatch()
public boolean scanISO8601DateIfMatch(boolean strict)
public boolean isEOF()
isEOF 在类中 JSONLexerBasepublic int scanFieldInt(char[] fieldName)
scanFieldInt 在类中 JSONLexerBasepublic String scanFieldString(char[] fieldName)
scanFieldString 在类中 JSONLexerBasepublic Date scanFieldDate(char[] fieldName)
scanFieldDate 在类中 JSONLexerBasepublic long scanFieldSymbol(char[] fieldName)
scanFieldSymbol 在类中 JSONLexerBasepublic Collection<String> scanFieldStringArray(char[] fieldName, Class<?> type)
scanFieldStringArray 在类中 JSONLexerBasepublic long scanFieldLong(char[] fieldName)
scanFieldLong 在类中 JSONLexerBasepublic boolean scanFieldBoolean(char[] fieldName)
scanFieldBoolean 在类中 JSONLexerBasepublic final int scanInt(char expectNext)
scanInt 在接口中 JSONLexerscanInt 在类中 JSONLexerBasepublic double scanDouble(char seperator)
scanDouble 在接口中 JSONLexerscanDouble 在类中 JSONLexerBasepublic long scanLong(char seperator)
scanLong 在接口中 JSONLexerscanLong 在类中 JSONLexerBasepublic Date scanDate(char seperator)
scanDate 在类中 JSONLexerBasepublic String info()
info 在接口中 JSONLexerinfo 在类中 JSONLexerBasepublic String[] scanFieldStringArray(char[] fieldName, int argTypesCount, SymbolTable typeSymbolTable)
JSONLexerBasescanFieldStringArray 在类中 JSONLexerBasepublic boolean matchField2(char[] fieldName)
matchField2 在类中 JSONLexerBasepublic final void skipObject()
skipObject 在类中 JSONLexerBasepublic final void skipObject(boolean valid)
skipObject 在类中 JSONLexerBasepublic final void skipArray()
skipArray 在类中 JSONLexerBasepublic final void skipArray(boolean valid)
public final void skipString()
public boolean seekArrayToItem(int index)
seekArrayToItem 在类中 JSONLexerBasepublic int seekObjectToField(long fieldNameHash,
boolean deepScan)
seekObjectToField 在类中 JSONLexerBasepublic int seekObjectToField(long[] fieldNameHash)
seekObjectToField 在类中 JSONLexerBasepublic String scanTypeName(SymbolTable symbolTable)
scanTypeName 在接口中 JSONLexerscanTypeName 在类中 JSONLexerBaseCopyright © 2012–2020 Alibaba Group. All rights reserved.