Uses of Enum
org.codehaus.jackson.JsonToken
Packages that use JsonToken
Package
Description
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser
)
and generator
(JsonParser
)
instances.Parser and generator implementation classes that Jackson
defines and uses.
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper
class, as well
as convenience methods included in
JsonParser
Contains implementation classes of deserialization part of
data binding.
Contains concrete
JsonNode
implementations
Jackson uses for the Tree model.Package that contains experimental implementation of
"Binary-Encoded JSON-Like" data format handlers (parser,
generator, factory produce both, supporting constants).
Utility classes used by Jackson Core functionality.
-
Uses of JsonToken in org.codehaus.jackson
Fields in org.codehaus.jackson declared as JsonTokenModifier and TypeFieldDescriptionprotected JsonToken
JsonParser._currToken
Last token retrieved viaJsonParser.nextToken()
, if any.protected JsonToken
JsonParser._lastClearedToken
Last cleared token, if any: that is, value that was in effect whenJsonParser.clearCurrentToken()
was called.Methods in org.codehaus.jackson that return JsonTokenModifier and TypeMethodDescriptionabstract JsonToken
JsonNode.asToken()
Method that can be used for efficient type detection when using stream abstraction for traversing nodes.JsonParser.getCurrentToken()
Accessor to find which token parser currently points to, if any; null will be returned if none.JsonParser.getLastClearedToken()
Method that can be called to get the last token that was cleared usingJsonParser.clearCurrentToken()
.abstract JsonToken
JsonParser.nextToken()
Main iteration method, which will advance stream enough to determine type of the next token, if any.JsonParser.nextValue()
Iteration method that will advance stream enough to determine type of the next token that is a value type (including JSON Array and Object start/end markers).static JsonToken
Returns the enum constant of this type with the specified name.static JsonToken[]
JsonToken.values()
Returns an array containing the constants of this enum type, in the order they are declared. -
Uses of JsonToken in org.codehaus.jackson.impl
Fields in org.codehaus.jackson.impl declared as JsonTokenModifier and TypeFieldDescriptionprotected JsonToken
JsonParserBase._nextToken
Secondary token related to the next token after current one; used if its type is known.Methods in org.codehaus.jackson.impl that return JsonTokenModifier and TypeMethodDescriptionprotected final JsonToken
ReaderBasedParser._handleApostropheValue()
protected JsonToken
Utf8StreamParser._handleApostropheValue()
protected JsonToken
ReaderBasedParser._handleInvalidNumberStart
(int ch, boolean negative) Method called if expected numeric value (due to leading sign) does not look like a numberprotected JsonToken
Utf8StreamParser._handleInvalidNumberStart
(int ch, boolean negative) Method called if expected numeric value (due to leading sign) does not look like a numberprotected final JsonToken
ReaderBasedParser._handleUnexpectedValue
(int i) Method for handling cases where first non-space character of an expected value token is not legal for standard JSON content.protected JsonToken
Utf8StreamParser._handleUnexpectedValue
(int c) Method for handling cases where first non-space character of an expected value token is not legal for standard JSON content.abstract JsonToken
JsonParserMinimalBase.nextToken()
ReaderBasedParser.nextToken()
Utf8StreamParser.nextToken()
protected final JsonToken
ReaderBasedParser.parseNumberText
(int ch) Initial parsing method for number values.protected final JsonToken
Utf8StreamParser.parseNumberText
(int c) Initial parsing method for number values.protected final JsonToken
JsonParserBase.reset
(boolean negative, int intLen, int fractLen, int expLen) protected final JsonToken
JsonParserBase.resetAsNaN
(String valueStr, double value) protected final JsonToken
JsonParserBase.resetFloat
(boolean negative, int intLen, int fractLen, int expLen) protected final JsonToken
JsonParserBase.resetInt
(boolean negative, int intLen) Methods in org.codehaus.jackson.impl with parameters of type JsonToken -
Uses of JsonToken in org.codehaus.jackson.map
Methods in org.codehaus.jackson.map that return JsonTokenModifier and TypeMethodDescriptionprotected JsonToken
ObjectMapper._initForReading
(JsonParser jp) Method called to ensure that given parser is ready for reading content for data binding.protected static JsonToken
ObjectReader._initForReading
(JsonParser jp) Methods in org.codehaus.jackson.map with parameters of type JsonTokenModifier and TypeMethodDescriptionabstract JsonMappingException
DeserializationContext.mappingException
(Class<?> targetClass, JsonToken t) abstract JsonMappingException
DeserializationContext.wrongTokenException
(JsonParser jp, JsonToken expToken, String msg) Helper method for indicating that the current token was expected to be another token. -
Uses of JsonToken in org.codehaus.jackson.map.deser
Methods in org.codehaus.jackson.map.deser with parameters of type JsonTokenModifier and TypeMethodDescriptionStdDeserializationContext.mappingException
(Class<?> targetClass, JsonToken token) StdDeserializationContext.wrongTokenException
(JsonParser jp, JsonToken expToken, String msg) -
Uses of JsonToken in org.codehaus.jackson.node
Fields in org.codehaus.jackson.node declared as JsonTokenModifier and TypeFieldDescriptionprotected JsonToken
TreeTraversingParser._nextToken
Sometimes parser needs to buffer a single look-ahead token; if so, it'll be stored here.Methods in org.codehaus.jackson.node that return JsonTokenModifier and TypeMethodDescriptionArrayNode.asToken()
abstract JsonToken
BaseJsonNode.asToken()
Method that can be used for efficient type detection when using stream abstraction for traversing nodes.BigIntegerNode.asToken()
BinaryNode.asToken()
BooleanNode.asToken()
abstract JsonToken
ContainerNode.asToken()
DecimalNode.asToken()
DoubleNode.asToken()
IntNode.asToken()
LongNode.asToken()
MissingNode.asToken()
NullNode.asToken()
ObjectNode.asToken()
POJONode.asToken()
TextNode.asToken()
abstract JsonToken
ValueNode.asToken()
TreeTraversingParser.nextToken()
-
Uses of JsonToken in org.codehaus.jackson.smile
Methods in org.codehaus.jackson.smile that return JsonTokenModifier and TypeMethodDescriptionprotected final JsonToken
SmileParser._handleFieldName()
Method that handles initial token type recognition for token that has to be either FIELD_NAME or END_OBJECT.SmileParser.nextToken()
-
Uses of JsonToken in org.codehaus.jackson.util
Methods in org.codehaus.jackson.util that return JsonTokenModifier and TypeMethodDescriptionJsonParserDelegate.getCurrentToken()
JsonParserDelegate.getLastClearedToken()
JsonParserDelegate.nextToken()
JsonParserSequence.nextToken()
TokenBuffer.Parser.nextToken()
TokenBuffer.Parser.peekNextToken()
TokenBuffer.Segment.type
(int index) Methods in org.codehaus.jackson.util with parameters of type JsonTokenModifier and TypeMethodDescriptionprotected final void
protected final void
void
void