protected static final class TokenBuffer.Segment extends Object
Modifier and Type | Field and Description |
---|---|
protected TokenBuffer.Segment |
_next |
protected Object[] |
_tokens |
protected long |
_tokenTypes
Bit field used to store types of buffered tokens; 4 bits per token.
|
static int |
TOKENS_PER_SEGMENT |
Constructor and Description |
---|
TokenBuffer.Segment() |
Modifier and Type | Method and Description |
---|---|
TokenBuffer.Segment |
append(int index,
JsonToken tokenType) |
TokenBuffer.Segment |
append(int index,
JsonToken tokenType,
Object value) |
TokenBuffer.Segment |
appendRaw(int index,
int rawTokenType,
Object value) |
Object |
get(int index) |
TokenBuffer.Segment |
next() |
int |
rawType(int index) |
void |
set(int index,
JsonToken tokenType) |
void |
set(int index,
JsonToken tokenType,
Object value) |
JsonToken |
type(int index) |
public static final int TOKENS_PER_SEGMENT
protected TokenBuffer.Segment _next
protected long _tokenTypes
protected final Object[] _tokens
public JsonToken type(int index)
public int rawType(int index)
public Object get(int index)
public TokenBuffer.Segment next()
public TokenBuffer.Segment append(int index, JsonToken tokenType)
public TokenBuffer.Segment append(int index, JsonToken tokenType, Object value)
public TokenBuffer.Segment appendRaw(int index, int rawTokenType, Object value)
public void set(int index, JsonToken tokenType)
Copyright © 2012-2013 FasterXML. All Rights Reserved.