public final class JSONLexer extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static char[] |
CA |
boolean |
disableCircularReferenceDetect |
static int |
END |
static char |
EOI |
int |
features |
static boolean[] |
firstIdentifierFlags |
static boolean[] |
identifierFlags |
Locale |
locale |
int |
matchStat |
static int |
NOT_MATCH |
static int |
NOT_MATCH_NAME |
TimeZone |
timeZone |
static int |
UNKNOWN |
static int |
VALUE |
| 构造器和说明 |
|---|
JSONLexer(char[] input,
int inputLength) |
JSONLexer(char[] input,
int inputLength,
int features) |
JSONLexer(String input) |
JSONLexer(String input,
int features) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
bytesValue() |
void |
close() |
void |
config(Feature feature,
boolean state) |
BigDecimal |
decimalValue() |
Number |
decimalValue(boolean decimal) |
static byte[] |
decodeFast(char[] chars,
int offset,
int charsLen)
Decodes a BASE64 encoded char array that is known to be resonably well formatted.
|
static byte[] |
decodeFast(String s)
Decodes a BASE64 encoded string that is known to be resonably well formatted.
|
static byte[] |
decodeFast(String chars,
int offset,
int charsLen) |
Calendar |
getCalendar() |
String |
info() |
Number |
integerValue() |
int |
intValue() |
boolean |
isBlankInput() |
boolean |
isEnabled(Feature feature) |
boolean |
isRef() |
long |
longValue() |
boolean |
matchField(char[] fieldName) |
char |
next() |
void |
nextIdent() |
void |
nextToken() |
void |
nextToken(int expect) |
void |
nextTokenWithChar(char expect) |
String |
numberString() |
boolean |
scanBoolean() |
boolean |
scanFieldBoolean(char[] fieldName) |
double |
scanFieldDouble(char[] fieldName) |
float |
scanFieldFloat(char[] fieldName) |
int |
scanFieldInt(char[] fieldName) |
long |
scanFieldLong(char[] fieldName) |
String |
scanFieldString(char[] fieldName) |
String |
scanFieldSymbol(char[] fieldName,
SymbolTable symbolTable) |
boolean |
scanISO8601DateIfMatch(boolean strict) |
long |
scanLongValue() |
void |
scanNumber() |
Number |
scanNumberValue() |
void |
scanString() |
String |
scanStringValue(char quoteChar) |
String |
scanSymbol(SymbolTable symbolTable) |
String |
scanSymbol(SymbolTable symbolTable,
char quoteChar) |
String |
scanSymbolUnQuoted(SymbolTable symbolTable) |
String |
stringVal() |
int |
token() |
String |
tokenName() |
public static final char EOI
public static final int NOT_MATCH
public static final int NOT_MATCH_NAME
public static final int UNKNOWN
public static final int VALUE
public static final int END
public int features
public TimeZone timeZone
public Locale locale
public int matchStat
public boolean disableCircularReferenceDetect
public static final char[] CA
public static final boolean[] firstIdentifierFlags
public static final boolean[] identifierFlags
public JSONLexer(String input)
public JSONLexer(char[] input,
int inputLength)
public JSONLexer(char[] input,
int inputLength,
int features)
public JSONLexer(String input, int features)
public final int token()
public void close()
public char next()
public final void config(Feature feature, boolean state)
public final boolean isEnabled(Feature feature)
public final void nextTokenWithChar(char expect)
public final boolean isRef()
public final String numberString()
public final void nextToken()
public final void nextToken(int expect)
public final void nextIdent()
public final String tokenName()
public final Number integerValue() throws NumberFormatException
public final String scanSymbol(SymbolTable symbolTable)
public String scanSymbol(SymbolTable symbolTable, char quoteChar)
public String info()
public final String scanSymbolUnQuoted(SymbolTable symbolTable)
public final void scanString()
public String scanStringValue(char quoteChar)
public Calendar getCalendar()
public final int intValue()
public byte[] bytesValue()
public final String stringVal()
public final boolean isBlankInput()
public final void scanNumber()
public boolean scanBoolean()
public final Number scanNumberValue()
public final long scanLongValue()
public final long longValue()
throws NumberFormatException
public final Number decimalValue(boolean decimal)
public final BigDecimal decimalValue()
public boolean matchField(char[] fieldName)
public int scanFieldInt(char[] fieldName)
public long scanFieldLong(char[] fieldName)
public String scanFieldString(char[] fieldName)
public boolean scanFieldBoolean(char[] fieldName)
public final float scanFieldFloat(char[] fieldName)
public final double scanFieldDouble(char[] fieldName)
public String scanFieldSymbol(char[] fieldName, SymbolTable symbolTable)
public boolean scanISO8601DateIfMatch(boolean strict)
public static final byte[] decodeFast(char[] chars,
int offset,
int charsLen)
chars - The source array. Length 0 will return an empty array. null will throw an exception.public static final byte[] decodeFast(String chars, int offset, int charsLen)
public static final byte[] decodeFast(String s)
s - The source string. Length 0 will return an empty array. null will throw an exception.Copyright © 2012–2016 Alibaba Group. All rights reserved.