protected static final class TokenBuffer.Segment
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected TokenBuffer.Segment |
_next |
protected java.lang.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 |
---|
Segment() |
Modifier and Type | Method and Description |
---|---|
TokenBuffer.Segment |
append(int index,
JsonToken tokenType) |
TokenBuffer.Segment |
append(int index,
JsonToken tokenType,
java.lang.Object value) |
java.lang.Object |
get(int index) |
TokenBuffer.Segment |
next() |
void |
set(int index,
JsonToken tokenType) |
void |
set(int index,
JsonToken tokenType,
java.lang.Object value) |
JsonToken |
type(int index) |
public static final int TOKENS_PER_SEGMENT
protected TokenBuffer.Segment _next
protected long _tokenTypes
protected final java.lang.Object[] _tokens
public JsonToken type(int index)
public java.lang.Object get(int index)
public TokenBuffer.Segment next()
public TokenBuffer.Segment append(int index, JsonToken tokenType)
public TokenBuffer.Segment append(int index, JsonToken tokenType, java.lang.Object value)
public void set(int index, JsonToken tokenType)
public void set(int index, JsonToken tokenType, java.lang.Object value)