public final class JSONScanner extends JSONLexerBase
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ISO8601_LEN_0 |
static int |
ISO8601_LEN_1 |
static int |
ISO8601_LEN_2 |
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) |
int |
indexOf(char ch,
int startIndex) |
String |
info() |
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) |
int |
scanInt(char expectNext) |
boolean |
scanISO8601DateIfMatch() |
boolean |
scanISO8601DateIfMatch(boolean strict) |
long |
scanLong(char expectNextChar) |
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, decimalValue, doubleValue, floatValue, getCalendar, getCurrent, getLocale, getTimeZone, integerValue, intValue, isBlankInput, isEnabled, isEnabled, isEnabled, isRef, isWhitespace, longValue, matchField, matchStat, nextIdent, nextToken, nextToken, nextTokenWithChar, nextTokenWithColon, nextTokenWithColon, pos, readString, resetStringPosition, scanBoolean, scanDouble, scanEnum, scanFalse, scanFieldDouble, scanFieldFloat, scanFloat, scanIdent, scanNullOrNew, scanNumber, scanString, scanString, scanStringArray, scanSymbol, scanSymbol, scanSymbolUnQuoted, scanSymbolWithSeperator, scanTrue, scanType, setLocale, setTimeZone, setToken, skipWhitespace, stringDefaultValue, token, tokenNamepublic static final int ISO8601_LEN_0
public static final int ISO8601_LEN_1
public static 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 在类中 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 boolean scanISO8601DateIfMatch()
public boolean scanISO8601DateIfMatch(boolean strict)
public boolean isEOF()
isEOF 在类中 JSONLexerBasepublic int scanFieldInt(char[] fieldName)
scanFieldInt 在类中 JSONLexerBasepublic String scanFieldString(char[] fieldName)
scanFieldString 在类中 JSONLexerBasepublic String scanFieldSymbol(char[] fieldName, SymbolTable symbolTable)
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 long scanLong(char expectNextChar)
scanLong 在接口中 JSONLexerscanLong 在类中 JSONLexerBasepublic String info()
info 在接口中 JSONLexerinfo 在类中 JSONLexerBaseCopyright © 2012–2016 Alibaba Group. All rights reserved.