com.alibaba.fastjson.parser
类 JSONScanner

java.lang.Object
  继承者 com.alibaba.fastjson.parser.JSONLexerBase
      继承者 com.alibaba.fastjson.parser.JSONScanner
所有已实现的接口:
JSONLexer, Closeable

public final class JSONScanner
extends JSONLexerBase

作者:
wenshao[szujobs@hotmail.com]

字段摘要
 int ISO8601_LEN_0
           
 int ISO8601_LEN_1
           
 int ISO8601_LEN_2
           
 
从类 com.alibaba.fastjson.parser.JSONLexerBase 继承的字段
matchStat
 
从接口 com.alibaba.fastjson.parser.JSONLexer 继承的字段
ARRAY, END, EOI, NOT_MATCH, NOT_MATCH_NAME, OBJECT, UNKOWN, VALUE
 
构造方法摘要
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()
           
 char charAt(int index)
           
 int indexOf(char ch, int startIndex)
           
 boolean isEOF()
           
 char next()
           
 String numberString()
           
 boolean scanISO8601DateIfMatch()
           
 boolean scanISO8601DateIfMatch(boolean strict)
           
 String stringVal()
          The value of a literal token, recorded as a string.
 String subString(int offset, int count)
           
 
从类 com.alibaba.fastjson.parser.JSONLexerBase 继承的方法
close, config, decimalValue, decimalValue, doubleValue, floatValue, getBufferPosition, getCalendar, getCurrent, getKeyword, integerValue, intValue, isBlankInput, isEnabled, isRef, isWhitespace, longValue, nextIdent, nextToken, nextToken, nextTokenWithChar, nextTokenWithColon, nextTokenWithColon, pos, resetStringPosition, scanEnum, scanFalse, scanIdent, scanInt, scanLong, scanNullOrNew, scanNumber, scanSet, scanString, scanString, scanSymbol, scanSymbol, scanSymbolUnQuoted, scanSymbolWithSeperator, scanTreeSet, scanTrue, scanUndefined, skipWhitespace, stringDefaultValue, token, tokenName
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

ISO8601_LEN_0

public final int ISO8601_LEN_0

ISO8601_LEN_1

public final int ISO8601_LEN_1

ISO8601_LEN_2

public final int ISO8601_LEN_2
构造方法详细信息

JSONScanner

public JSONScanner(String input)

JSONScanner

public JSONScanner(String input,
                   int features)

JSONScanner

public JSONScanner(char[] input,
                   int inputLength)

JSONScanner

public JSONScanner(char[] input,
                   int inputLength,
                   int features)
方法详细信息

charAt

public final char charAt(int index)
指定者:
JSONLexerBase 中的 charAt

next

public final char next()
指定者:
接口 JSONLexer 中的 next
指定者:
JSONLexerBase 中的 next

indexOf

public final int indexOf(char ch,
                         int startIndex)
指定者:
JSONLexerBase 中的 indexOf

addSymbol

public final String addSymbol(int offset,
                              int len,
                              int hash,
                              SymbolTable symbolTable)
指定者:
JSONLexerBase 中的 addSymbol

bytesValue

public byte[] bytesValue()
指定者:
接口 JSONLexer 中的 bytesValue
指定者:
JSONLexerBase 中的 bytesValue

stringVal

public final String stringVal()
The value of a literal token, recorded as a string. For integers, leading 0x and 'l' suffixes are suppressed.

指定者:
接口 JSONLexer 中的 stringVal
指定者:
JSONLexerBase 中的 stringVal

subString

public final String subString(int offset,
                              int count)
指定者:
JSONLexerBase 中的 subString

numberString

public final String numberString()
指定者:
接口 JSONLexer 中的 numberString
指定者:
JSONLexerBase 中的 numberString

scanISO8601DateIfMatch

public boolean scanISO8601DateIfMatch()

scanISO8601DateIfMatch

public boolean scanISO8601DateIfMatch(boolean strict)

isEOF

public boolean isEOF()
指定者:
JSONLexerBase 中的 isEOF


Copyright © 2012-2015 Alibaba Group. All Rights Reserved.