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

字段摘要
 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()
           
 boolean charArrayCompare(char[] chars)
           
 char charAt(int index)
           
 int indexOf(char ch, int startIndex)
           
 boolean isEOF()
           
 char next()
           
 String numberString()
           
 boolean scanFieldBoolean(char[] fieldName)
           
 int scanFieldInt(char[] fieldName)
           
 long scanFieldLong(char[] fieldName)
           
 String scanFieldString(char[] fieldName)
           
 Collection<String> scanFieldStringArray(char[] fieldName, Class<?> type)
           
 String scanFieldSymbol(char[] fieldName, SymbolTable symbolTable)
           
 boolean scanISO8601DateIfMatch()
           
 boolean scanISO8601DateIfMatch(boolean strict)
           
 int scanType(String type)
           
 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, integerValue, intValue, isBlankInput, isEnabled, isRef, isWhitespace, longValue, matchField, matchStat, nextIdent, nextToken, nextToken, nextTokenWithChar, nextTokenWithChar, nextTokenWithColon, nextTokenWithColon, nextTokenWithComma, nextTokenWithComma, numberValue, pos, resetStringPosition, scanBoolean, scanEnum, scanFalse, scanFieldDouble, scanFieldDouble, scanFieldFloat, scanFloat, scanIdent, scanInt, scanLong, scanNullOrNew, scanNumber, scanSet, scanString, scanString, scanStringArray, 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

scanType

public final int scanType(String type)
覆盖:
JSONLexerBase 中的 scanType

charArrayCompare

public final boolean charArrayCompare(char[] chars)

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

scanFieldInt

public int scanFieldInt(char[] fieldName)
覆盖:
JSONLexerBase 中的 scanFieldInt

scanFieldString

public String scanFieldString(char[] fieldName)
覆盖:
JSONLexerBase 中的 scanFieldString

scanFieldSymbol

public String scanFieldSymbol(char[] fieldName,
                              SymbolTable symbolTable)
覆盖:
JSONLexerBase 中的 scanFieldSymbol

scanFieldStringArray

public Collection<String> scanFieldStringArray(char[] fieldName,
                                               Class<?> type)
覆盖:
JSONLexerBase 中的 scanFieldStringArray

scanFieldLong

public long scanFieldLong(char[] fieldName)
覆盖:
JSONLexerBase 中的 scanFieldLong

scanFieldBoolean

public boolean scanFieldBoolean(char[] fieldName)
覆盖:
JSONLexerBase 中的 scanFieldBoolean


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