protected static final class TokenBuffer.Segment extends Object
Modifier and Type | Field and Description |
---|---|
protected TreeMap<Integer,Object> |
_nativeIds
Lazily constructed Map for storing native type and object ids, if any
|
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 |
---|
Segment() |
Modifier and Type | Method and Description |
---|---|
TokenBuffer.Segment |
append(int index,
com.fasterxml.jackson.core.JsonToken tokenType) |
TokenBuffer.Segment |
append(int index,
com.fasterxml.jackson.core.JsonToken tokenType,
Object value) |
TokenBuffer.Segment |
append(int index,
com.fasterxml.jackson.core.JsonToken tokenType,
Object objectId,
Object typeId) |
TokenBuffer.Segment |
append(int index,
com.fasterxml.jackson.core.JsonToken tokenType,
Object value,
Object objectId,
Object typeId) |
TokenBuffer.Segment |
appendRaw(int index,
int rawTokenType,
Object value) |
TokenBuffer.Segment |
appendRaw(int index,
int rawTokenType,
Object value,
Object objectId,
Object typeId) |
Object |
findObjectId(int index) |
Object |
findTypeId(int index) |
Object |
get(int index) |
boolean |
hasIds()
Accessor for checking whether this segment may have native
type or object ids.
|
TokenBuffer.Segment |
next() |
int |
rawType(int index) |
com.fasterxml.jackson.core.JsonToken |
type(int index) |
public static final int TOKENS_PER_SEGMENT
protected TokenBuffer.Segment _next
protected long _tokenTypes
protected final Object[] _tokens
public com.fasterxml.jackson.core.JsonToken type(int index)
public int rawType(int index)
public Object get(int index)
public TokenBuffer.Segment next()
public boolean hasIds()
public TokenBuffer.Segment append(int index, com.fasterxml.jackson.core.JsonToken tokenType)
public TokenBuffer.Segment append(int index, com.fasterxml.jackson.core.JsonToken tokenType, Object objectId, Object typeId)
public TokenBuffer.Segment append(int index, com.fasterxml.jackson.core.JsonToken tokenType, Object value)
public TokenBuffer.Segment append(int index, com.fasterxml.jackson.core.JsonToken tokenType, Object value, Object objectId, Object typeId)
public TokenBuffer.Segment appendRaw(int index, int rawTokenType, Object value)
public TokenBuffer.Segment appendRaw(int index, int rawTokenType, Object value, Object objectId, Object typeId)
public Object findObjectId(int index)
public Object findTypeId(int index)
Copyright © 2014–2015 FasterXML. All rights reserved.