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) |
Object |
get(int index) |
TokenBuffer.Segment |
next() |
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 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 void set(int index, JsonToken tokenType)