public class JsonToken extends Slice
Modifier and Type | Class and Description |
---|---|
static class |
JsonToken.Type |
Modifier and Type | Field and Description |
---|---|
static char |
kKeyValSep |
static char |
kListEnd |
static char |
kListSep |
static char |
kListStart |
static char |
kMapEnd |
static char |
kMapStart |
int |
lineNo |
int |
linePos |
JsonToken.Type |
type |
Constructor and Description |
---|
JsonToken(JsonToken.Type type,
byte[] lineBuffer,
int offset,
int len,
int lineNo,
int linePos) |
Modifier and Type | Method and Description |
---|---|
boolean |
booleanValue() |
byte |
byteValue() |
String |
decodeJsonLiteral()
Get the whole slice as a string.
|
double |
doubleValue() |
boolean |
equals(Object o) |
int |
getLineNo() |
int |
getLinePos() |
JsonToken.Type |
getType() |
int |
hashCode() |
int |
intValue() |
boolean |
isBoolean() |
boolean |
isDouble() |
boolean |
isInteger() |
boolean |
isLiteral() |
boolean |
isNull() |
boolean |
isNumber() |
boolean |
isSymbol() |
boolean |
isSymbol(char c) |
long |
longValue() |
short |
shortValue() |
String |
toString() |
asString, charAt, compareTo, contains, contains, containsAny, length, parseDouble, parseInteger, strEquals, strEquals, substring
public static final char kListStart
public static final char kListEnd
public static final char kListSep
public static final char kMapStart
public static final char kMapEnd
public static final char kKeyValSep
public final JsonToken.Type type
public final int lineNo
public final int linePos
public JsonToken(JsonToken.Type type, byte[] lineBuffer, int offset, int len, int lineNo, int linePos)
public JsonToken.Type getType()
public int getLineNo()
public int getLinePos()
public boolean isNull()
public boolean isSymbol()
public final boolean isSymbol(char c)
public boolean isLiteral()
public boolean isBoolean()
public boolean isNumber()
public boolean isInteger()
public boolean isDouble()
public boolean booleanValue()
public byte byteValue()
public short shortValue()
public int intValue()
public long longValue()
public double doubleValue()
public String decodeJsonLiteral()
Copyright © 2017. All rights reserved.