com.alibaba.fastjson.parser
Interface JSONLexer

All Known Implementing Classes:
JSONScanner

public interface JSONLexer

Author:
wenshao

Method Summary
 byte[] bytesValue()
           
 void close()
           
 void config(Feature feature, boolean state)
           
 BigDecimal decimalValue()
           
 Number decimalValue(boolean decimal)
           
 double doubleValue()
           
 float floatValue()
           
 int getBufferPosition()
           
 Calendar getCalendar()
           
 char getCurrent()
           
 void incrementBufferPosition()
           
 Number integerValue()
           
 int intValue()
           
 boolean isBlankInput()
           
 boolean isEnabled(Feature feature)
           
 boolean isEOF()
           
 boolean isResetFlag()
           
 long longValue()
           
 void nextToken()
           
 void nextToken(int expect)
           
 void nextTokenWithColon(int expect)
           
 String numberString()
           
 int pos()
           
 void resetStringPosition()
           
 boolean scanISO8601DateIfMatch()
           
 void scanNumber()
           
 void scanString()
           
 String scanSymbol(SymbolTable symbolTable)
           
 String scanSymbol(SymbolTable symbolTable, char quote)
           
 String scanSymbolUnQuoted(SymbolTable symbolTable)
           
 void setResetFlag(boolean resetFlag)
           
 void skipWhitespace()
           
 String stringVal()
           
 String symbol(SymbolTable symbolTable)
           
 int token()
           
 String tokenName()
           
 

Method Detail

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.