com.alibaba.fastjson.parser
Interface JSONLexer
- All Known Implementing Classes:
- JSONScanner
public interface JSONLexer
- Author:
- wenshao
isResetFlag
boolean isResetFlag()
setResetFlag
void setResetFlag(boolean resetFlag)
nextToken
void nextToken()
nextToken
void nextToken(int expect)
token
int token()
tokenName
String tokenName()
pos
int pos()
getBufferPosition
int getBufferPosition()
stringVal
String stringVal()
integerValue
Number integerValue()
nextTokenWithColon
void nextTokenWithColon(int expect)
decimalValue
BigDecimal decimalValue()
decimalValue
Number decimalValue(boolean decimal)
doubleValue
double doubleValue()
floatValue
float floatValue()
config
void config(Feature feature,
boolean state)
isEnabled
boolean isEnabled(Feature feature)
numberString
String numberString()
isEOF
boolean isEOF()
symbol
String symbol(SymbolTable symbolTable)
isBlankInput
boolean isBlankInput()
getCurrent
char getCurrent()
skipWhitespace
void skipWhitespace()
incrementBufferPosition
void incrementBufferPosition()
scanSymbol
String scanSymbol(SymbolTable symbolTable)
scanSymbol
String scanSymbol(SymbolTable symbolTable,
char quote)
resetStringPosition
void resetStringPosition()
scanSymbolUnQuoted
String scanSymbolUnQuoted(SymbolTable symbolTable)
scanString
void scanString()
scanNumber
void scanNumber()
scanISO8601DateIfMatch
boolean scanISO8601DateIfMatch()
getCalendar
Calendar getCalendar()
intValue
int intValue()
throws NumberFormatException
- Throws:
NumberFormatException
longValue
long longValue()
throws NumberFormatException
- Throws:
NumberFormatException
bytesValue
byte[] bytesValue()
close
void close()
Copyright © 2012
Alibaba Group. All Rights Reserved.