public interface JSONLexer
Modifier and Type | Field and Description |
---|---|
static int |
ARRAY |
static int |
END |
static char |
EOI |
static int |
NOT_MATCH |
static int |
NOT_MATCH_NAME |
static int |
OBJECT |
static int |
UNKNOWN |
static int |
VALUE |
static int |
VALUE_NULL |
Modifier and Type | Method and Description |
---|---|
byte[] |
bytesValue() |
void |
close() |
void |
config(Feature feature,
boolean state) |
BigDecimal |
decimalValue() |
Number |
decimalValue(boolean decimal) |
float |
floatValue() |
char |
getCurrent() |
int |
getFeatures() |
Locale |
getLocale() |
TimeZone |
getTimeZone() |
String |
info() |
Number |
integerValue() |
int |
intValue() |
boolean |
isBlankInput() |
boolean |
isEnabled(Feature feature) |
boolean |
isEnabled(int feature) |
boolean |
isRef() |
long |
longValue() |
char |
next() |
void |
nextToken() |
void |
nextToken(int expect) |
void |
nextTokenWithColon() |
void |
nextTokenWithColon(int expect) |
String |
numberString() |
int |
pos() |
void |
resetStringPosition() |
boolean |
scanBoolean(char expectNext) |
BigDecimal |
scanDecimal(char seperator) |
double |
scanDouble(char seperator) |
Enum<?> |
scanEnum(Class<?> enumClass,
SymbolTable symbolTable,
char serperator) |
float |
scanFloat(char seperator) |
int |
scanInt(char expectNext) |
long |
scanLong(char expectNextChar) |
void |
scanNumber() |
void |
scanString() |
String |
scanString(char expectNextChar) |
void |
scanStringArray(Collection<String> collection,
char seperator) |
String |
scanSymbol(SymbolTable symbolTable) |
String |
scanSymbol(SymbolTable symbolTable,
char quote) |
String |
scanSymbolUnQuoted(SymbolTable symbolTable) |
String |
scanSymbolWithSeperator(SymbolTable symbolTable,
char serperator) |
String |
scanTypeName(SymbolTable symbolTable) |
void |
setFeatures(int features) |
void |
setLocale(Locale locale) |
void |
setTimeZone(TimeZone timeZone) |
void |
skipWhitespace() |
String |
stringVal() |
int |
token() |
String |
tokenName() |
static final char EOI
static final int NOT_MATCH
static final int NOT_MATCH_NAME
static final int UNKNOWN
static final int OBJECT
static final int ARRAY
static final int VALUE
static final int END
static final int VALUE_NULL
int token()
String tokenName()
void skipWhitespace()
void nextToken()
void nextToken(int expect)
char getCurrent()
char next()
String scanSymbol(SymbolTable symbolTable)
String scanSymbol(SymbolTable symbolTable, char quote)
void resetStringPosition()
void scanNumber()
int pos()
Number integerValue()
BigDecimal decimalValue()
Number decimalValue(boolean decimal)
String scanSymbolUnQuoted(SymbolTable symbolTable)
String stringVal()
boolean isEnabled(int feature)
boolean isEnabled(Feature feature)
void config(Feature feature, boolean state)
void scanString()
int intValue()
void nextTokenWithColon()
void nextTokenWithColon(int expect)
boolean isBlankInput()
void close()
long longValue()
boolean isRef()
String scanTypeName(SymbolTable symbolTable)
String numberString()
byte[] bytesValue()
float floatValue()
int scanInt(char expectNext)
long scanLong(char expectNextChar)
float scanFloat(char seperator)
double scanDouble(char seperator)
boolean scanBoolean(char expectNext)
BigDecimal scanDecimal(char seperator)
String scanString(char expectNextChar)
Enum<?> scanEnum(Class<?> enumClass, SymbolTable symbolTable, char serperator)
String scanSymbolWithSeperator(SymbolTable symbolTable, char serperator)
void scanStringArray(Collection<String> collection, char seperator)
TimeZone getTimeZone()
void setTimeZone(TimeZone timeZone)
Locale getLocale()
void setLocale(Locale locale)
String info()
int getFeatures()
void setFeatures(int features)
Copyright © 2012–2022 Alibaba Group. All rights reserved.