Uses of Enum Class
com.fasterxml.jackson.core.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
(JsonGenerator)
instances.Base classes used by concrete Parser and Generator implementations;
contain functionality that is not specific to JSON or input
abstraction (byte vs char).
Package for some of
JsonProcessingException
subtypes contained by streaming API.JSON-specific parser and generator implementation classes that
Jackson defines and uses.
Non-blocking ("async") JSON parser implementation.
Contains classes needed for type introspection, mostly used by data binding
functionality.
Utility classes used by Jackson Core functionality.
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode), as well as
writing Java Objects and trees as JSON.Contains implementation classes of deserialization part of
data binding.
Contains public standard implementations of abstraction that
Jackson uses.
Package that contains interfaces that define how to implement
functionality for dynamically resolving type during deserialization.
Contains concrete
JsonNode implementations
Jackson uses for the Tree model.Utility classes for Mapper package.
-
Uses of JsonToken in com.fasterxml.jackson.core
Methods in com.fasterxml.jackson.core that return JsonTokenModifier and TypeMethodDescriptionTreeNode.asToken()Method that can be used for efficient type detection when using stream abstraction for traversing nodes.JsonParser.currentToken()Accessor to find which token parser currently points to, if any; null will be returned if none.abstract JsonTokenJsonParser.getCurrentToken()Alias forJsonParser.currentToken(), may be deprecated sometime after Jackson 2.13 (will be removed from 3.0).abstract JsonTokenJsonParser.getLastClearedToken()Method that can be called to get the last token that was cleared usingJsonParser.clearCurrentToken().abstract JsonTokenJsonParser.nextToken()Main iteration method, which will advance stream enough to determine type of the next token, if any.abstract JsonTokenJsonParser.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 JsonTokenReturns the enum constant of this class with the specified name.static JsonToken[]JsonToken.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.fasterxml.jackson.core with parameters of type JsonTokenModifier and TypeMethodDescriptionabstract booleanMethod that is functionally equivalent to:return currentToken() == tbut may be more efficiently implemented.static StringJsonToken.valueDescFor(JsonToken t) Helper method for constructing description like "Object value" givenJsonTokenencountered. -
Uses of JsonToken in com.fasterxml.jackson.core.base
Fields in com.fasterxml.jackson.core.base declared as JsonTokenModifier and TypeFieldDescriptionprotected JsonTokenParserMinimalBase._currTokenLast token retrieved viaParserMinimalBase.nextToken(), if any.protected JsonTokenParserMinimalBase._lastClearedTokenLast cleared token, if any: that is, value that was in effect whenParserMinimalBase.clearCurrentToken()was called.protected JsonTokenParserBase._nextTokenSecondary token related to the next token after current one; used if its type is known.Methods in com.fasterxml.jackson.core.base that return JsonTokenModifier and TypeMethodDescriptionprotected final JsonTokenParserMinimalBase._nullSafeUpdateToken(JsonToken token) protected final JsonTokenParserMinimalBase._updateToken(JsonToken token) protected final JsonTokenParserMinimalBase._updateTokenToNA()protected final JsonTokenParserMinimalBase._updateTokenToNull()ParserMinimalBase.currentToken()ParserMinimalBase.getCurrentToken()ParserMinimalBase.getLastClearedToken()abstract JsonTokenParserMinimalBase.nextToken()ParserMinimalBase.nextValue()protected final JsonTokenParserBase.reset(boolean negative, int intLen, int fractLen, int expLen) protected final JsonTokenParserBase.resetAsNaN(String valueStr, double value) protected final JsonTokenParserBase.resetFloat(boolean negative, int intLen, int fractLen, int expLen) protected final JsonTokenParserBase.resetInt(boolean negative, int intLen) Methods in com.fasterxml.jackson.core.base with parameters of type JsonTokenModifier and TypeMethodDescriptionprotected final JsonTokenParserMinimalBase._nullSafeUpdateToken(JsonToken token) protected voidParserMinimalBase._reportInputCoercion(String msg, JsonToken inputType, Class<?> targetType) protected voidParserMinimalBase._reportInvalidEOF(String msg, JsonToken currToken) protected voidParserMinimalBase._reportInvalidEOFInValue(JsonToken type) protected final JsonTokenParserMinimalBase._updateToken(JsonToken token) booleanprotected voidParserMinimalBase.reportOverflowInt(String numDesc, JsonToken inputType) protected voidParserMinimalBase.reportOverflowLong(String numDesc, JsonToken inputType) -
Uses of JsonToken in com.fasterxml.jackson.core.exc
Fields in com.fasterxml.jackson.core.exc declared as JsonTokenModifier and TypeFieldDescriptionprotected final JsonTokenInputCoercionException._inputTypeInput token that represents input value that failed to coerce.Methods in com.fasterxml.jackson.core.exc that return JsonTokenModifier and TypeMethodDescriptionInputCoercionException.getInputType()Accessor for getting information about input type (in form of token, giving "shape" of input) for which coercion failed.Constructors in com.fasterxml.jackson.core.exc with parameters of type JsonTokenModifierConstructorDescriptionInputCoercionException(JsonParser p, String msg, JsonToken inputType, Class<?> targetType) Constructor that uses current parsing location as location, and sets processor (accessible viaStreamReadException.getProcessor()) to specified parser. -
Uses of JsonToken in com.fasterxml.jackson.core.filter
Fields in com.fasterxml.jackson.core.filter declared as JsonTokenModifier and TypeFieldDescriptionprotected JsonTokenFilteringParserDelegate._currTokenLast token retrieved viaFilteringParserDelegate.nextToken(), if any.protected JsonTokenFilteringParserDelegate._lastClearedTokenLast cleared token, if any: that is, value that was in effect whenFilteringParserDelegate.clearCurrentToken()was called.Methods in com.fasterxml.jackson.core.filter that return JsonTokenModifier and TypeMethodDescriptionprotected final JsonTokenFilteringParserDelegate._nextToken2()protected final JsonTokenFilteringParserDelegate._nextTokenWithBuffering(TokenFilterContext buffRoot) FilteringParserDelegate.currentToken()FilteringParserDelegate.getCurrentToken()Deprecated.FilteringParserDelegate.getLastClearedToken()FilteringParserDelegate.nextToken()TokenFilterContext.nextTokenToRead()FilteringParserDelegate.nextValue()Methods in com.fasterxml.jackson.core.filter with parameters of type JsonToken -
Uses of JsonToken in com.fasterxml.jackson.core.io
Fields in com.fasterxml.jackson.core.io declared as JsonTokenModifier and TypeFieldDescriptionprotected final JsonTokenJsonEOFException._tokenType of token that was being decoded, if parser had enough information to recognize type (such as starting double-quote for Strings)Methods in com.fasterxml.jackson.core.io that return JsonTokenModifier and TypeMethodDescriptionJsonEOFException.getTokenBeingDecoded()Accessor for possibly available information about token that was being decoded while encountering end of input.Constructors in com.fasterxml.jackson.core.io with parameters of type JsonToken -
Uses of JsonToken in com.fasterxml.jackson.core.json
Methods in com.fasterxml.jackson.core.json that return JsonTokenModifier and TypeMethodDescriptionprotected JsonTokenReaderBasedJsonParser._handleApos()protected JsonTokenUTF8DataInputJsonParser._handleApos()protected JsonTokenUTF8StreamJsonParser._handleApos()protected JsonTokenReaderBasedJsonParser._handleInvalidNumberStart(int ch, boolean negative) protected JsonTokenReaderBasedJsonParser._handleInvalidNumberStart(int ch, boolean negative, boolean hasSign) protected JsonTokenUTF8DataInputJsonParser._handleInvalidNumberStart(int ch, boolean neg) protected JsonTokenUTF8DataInputJsonParser._handleInvalidNumberStart(int ch, boolean neg, boolean hasSign) protected JsonTokenUTF8StreamJsonParser._handleInvalidNumberStart(int ch, boolean neg) protected JsonTokenUTF8StreamJsonParser._handleInvalidNumberStart(int ch, boolean neg, boolean hasSign) protected JsonTokenReaderBasedJsonParser._handleOddValue(int i) Method for handling cases where first non-space character of an expected value token is not legal for standard JSON content.protected JsonTokenUTF8DataInputJsonParser._handleUnexpectedValue(int c) Method for handling cases where first non-space character of an expected value token is not legal for standard JSON content.protected JsonTokenUTF8StreamJsonParser._handleUnexpectedValue(int c) Method for handling cases where first non-space character of an expected value token is not legal for standard JSON content.protected final JsonTokenReaderBasedJsonParser._parseFloatThatStartsWithPeriod()Deprecated.protected final JsonTokenReaderBasedJsonParser._parseFloatThatStartsWithPeriod(boolean neg) protected final JsonTokenUTF8DataInputJsonParser._parseFloatThatStartsWithPeriod()Deprecated.protected final JsonTokenUTF8DataInputJsonParser._parseFloatThatStartsWithPeriod(boolean neg, boolean hasSign) protected final JsonTokenUTF8StreamJsonParser._parseFloatThatStartsWithPeriod()Deprecated.protected final JsonTokenUTF8StreamJsonParser._parseFloatThatStartsWithPeriod(boolean neg, boolean hasSign) protected final JsonTokenUTF8DataInputJsonParser._parseNegNumber()protected final JsonTokenUTF8DataInputJsonParser._parsePosNumber()protected final JsonTokenReaderBasedJsonParser._parseUnsignedNumber(int ch) Initial parsing method for number values.protected JsonTokenUTF8DataInputJsonParser._parseUnsignedNumber(int c) Initial parsing method for number values.protected JsonTokenUTF8StreamJsonParser._parseUnsignedNumber(int c) Initial parsing method for number values.final JsonTokenReaderBasedJsonParser.nextToken()UTF8DataInputJsonParser.nextToken()UTF8StreamJsonParser.nextToken()Methods in com.fasterxml.jackson.core.json with parameters of type JsonToken -
Uses of JsonToken in com.fasterxml.jackson.core.json.async
Methods in com.fasterxml.jackson.core.json.async that return JsonTokenModifier and TypeMethodDescriptionprotected final JsonTokenNonBlockingJsonParserBase._closeArrayScope()protected final JsonTokenNonBlockingJsonParserBase._closeObjectScope()protected final JsonTokenNonBlockingJsonParserBase._eofAsNextToken()protected final JsonTokenNonBlockingJsonParserBase._fieldComplete(String name) protected JsonTokenNonBlockingUtf8JsonParserBase._finishErrorToken()protected JsonTokenNonBlockingUtf8JsonParserBase._finishErrorTokenWithEOF()protected final JsonTokenNonBlockingUtf8JsonParserBase._finishFieldWithEscape()protected JsonTokenNonBlockingUtf8JsonParserBase._finishFloatExponent(boolean checkSign, int ch) protected JsonTokenNonBlockingUtf8JsonParserBase._finishFloatFraction()protected JsonTokenNonBlockingUtf8JsonParserBase._finishKeywordToken(String expToken, int matched, JsonToken result) protected JsonTokenNonBlockingUtf8JsonParserBase._finishKeywordTokenWithEOF(String expToken, int matched, JsonToken result) protected JsonTokenNonBlockingUtf8JsonParserBase._finishNonStdToken(int type, int matched) protected JsonTokenNonBlockingUtf8JsonParserBase._finishNonStdTokenWithEOF(int type, int matched) protected JsonTokenNonBlockingUtf8JsonParserBase._finishNumberIntegralPart(char[] outBuf, int outPtr) protected JsonTokenNonBlockingUtf8JsonParserBase._finishNumberLeadingNegZeroes()protected JsonTokenNonBlockingUtf8JsonParserBase._finishNumberLeadingPosNegZeroes(boolean negative) protected JsonTokenNonBlockingUtf8JsonParserBase._finishNumberLeadingPosZeroes()protected JsonTokenNonBlockingUtf8JsonParserBase._finishNumberLeadingZeroes()protected JsonTokenNonBlockingUtf8JsonParserBase._finishNumberMinus(int ch) protected JsonTokenNonBlockingUtf8JsonParserBase._finishNumberPlus(int ch) protected JsonTokenNonBlockingUtf8JsonParserBase._finishNumberPlusMinus(int ch, boolean negative) protected final JsonTokenNonBlockingUtf8JsonParserBase._finishToken()Method called when decoding of a token has been started, but not yet completed due to missing input; method is to continue decoding due to at least one more byte being made available to decode.protected final JsonTokenNonBlockingUtf8JsonParserBase._finishTokenWithEOF()Method similar toNonBlockingUtf8JsonParserBase._finishToken(), but called when no more input is available, and end-of-input has been detected.protected JsonTokenNonBlockingUtf8JsonParserBase._reportErrorToken(String actualToken) protected JsonTokenNonBlockingUtf8JsonParserBase._startAposString()protected final JsonTokenNonBlockingJsonParserBase._startArrayScope()protected JsonTokenNonBlockingUtf8JsonParserBase._startFalseToken()protected JsonTokenNonBlockingUtf8JsonParserBase._startFloat(char[] outBuf, int outPtr, int ch) protected JsonTokenNonBlockingUtf8JsonParserBase._startFloatThatStartsWithPeriod()protected JsonTokenNonBlockingUtf8JsonParserBase._startNegativeNumber()protected JsonTokenNonBlockingUtf8JsonParserBase._startNullToken()protected JsonTokenNonBlockingUtf8JsonParserBase._startNumberLeadingZero()protected final JsonTokenNonBlockingJsonParserBase._startObjectScope()protected JsonTokenNonBlockingUtf8JsonParserBase._startPositiveNumber()protected JsonTokenNonBlockingUtf8JsonParserBase._startPositiveNumber(int ch) protected JsonTokenNonBlockingUtf8JsonParserBase._startString()protected JsonTokenNonBlockingUtf8JsonParserBase._startTrueToken()protected JsonTokenNonBlockingUtf8JsonParserBase._startUnexpectedValue(boolean leadingComma, int ch) protected final JsonTokenNonBlockingJsonParserBase._valueComplete(JsonToken t) protected final JsonTokenNonBlockingJsonParserBase._valueCompleteInt(int value, String asText) protected final JsonTokenNonBlockingJsonParserBase._valueNonStdNumberComplete(int type) NonBlockingUtf8JsonParserBase.nextToken()Methods in com.fasterxml.jackson.core.json.async with parameters of type JsonTokenModifier and TypeMethodDescriptionprotected JsonTokenNonBlockingUtf8JsonParserBase._finishKeywordToken(String expToken, int matched, JsonToken result) protected JsonTokenNonBlockingUtf8JsonParserBase._finishKeywordTokenWithEOF(String expToken, int matched, JsonToken result) protected final Stringprotected final JsonTokenNonBlockingJsonParserBase._valueComplete(JsonToken t) -
Uses of JsonToken in com.fasterxml.jackson.core.type
Fields in com.fasterxml.jackson.core.type declared as JsonTokenModifier and TypeFieldDescriptionWritableTypeId.valueShapeInformation about intended shape of the value being written (that is,WritableTypeId.forValue); in case of structured values, start token of the structure; for scalars, value token.Constructors in com.fasterxml.jackson.core.type with parameters of type JsonTokenModifierConstructorDescriptionWritableTypeId(Object value, JsonToken valueShape) Constructor used when calling a method for generating and writing Type Id; caller only knows value object and its intended shape.WritableTypeId(Object value, JsonToken valueShape, Object id) Constructor used when calling a method for writing Type Id; caller knows value object, its intended shape as well as id to use; but not details of wrapping (if any).WritableTypeId(Object value, Class<?> valueType, JsonToken valueShape) Constructor used when calling a method for generating and writing Type Id, but where actual type to use for generating id is NOT the type of value (but its supertype). -
Uses of JsonToken in com.fasterxml.jackson.core.util
Methods in com.fasterxml.jackson.core.util that return JsonTokenModifier and TypeMethodDescriptionJsonParserDelegate.currentToken()JsonParserDelegate.getCurrentToken()Deprecated.JsonParserDelegate.getLastClearedToken()JsonParserDelegate.nextToken()JsonParserSequence.nextToken()JsonParserDelegate.nextValue()protected JsonTokenJsonParserSequence.switchAndReturnNext()Methods in com.fasterxml.jackson.core.util with parameters of type JsonToken -
Uses of JsonToken in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind that return JsonTokenModifier and TypeMethodDescriptionprotected JsonTokenObjectMapper._initForReading(JsonParser p, JavaType targetType) Method called to ensure that given parser is ready for reading content for data binding.protected JsonTokenObjectReader._initForReading(DeserializationContext ctxt, JsonParser p) Methods in com.fasterxml.jackson.databind with parameters of type JsonTokenModifier and TypeMethodDescriptionprotected StringDeserializationContext._shapeForToken(JsonToken t) Helper method for constructing description like "Object value" givenJsonTokenencountered.DeserializationContext.handleUnexpectedToken(JavaType targetType, JsonToken t, JsonParser p, String msg, Object... msgArgs) Method that deserializers should call if the first token of the value to deserialize is of unexpected type (that is, type of token that deserializer cannot handle).DeserializationContext.handleUnexpectedToken(Class<?> instClass, JsonToken t, JsonParser p, String msg, Object... msgArgs) Method that deserializers should call if the first token of the value to deserialize is of unexpected type (that is, type of token that deserializer cannot handle).<T> TDeserializationContext.reportTrailingTokens(Class<?> targetType, JsonParser p, JsonToken trailingToken) voidDeserializationContext.reportWrongTokenException(JavaType targetType, JsonToken expToken, String msg, Object... msgArgs) Method for deserializers to call when the token encountered was of type different than what should be seen at that position, usually within a sequence of expected tokens.voidDeserializationContext.reportWrongTokenException(JsonDeserializer<?> deser, JsonToken expToken, String msg, Object... msgArgs) Method for deserializers to call when the token encountered was of type different than what should be seen at that position, usually within a sequence of expected tokens.voidDeserializationContext.reportWrongTokenException(Class<?> targetType, JsonToken expToken, String msg, Object... msgArgs) Method for deserializers to call when the token encountered was of type different than what should be seen at that position, usually within a sequence of expected tokens.DeserializationContext.wrongTokenException(JsonParser p, JavaType targetType, JsonToken expToken, String extra) Helper method for constructingJsonMappingExceptionto indicate that the token encountered was of type different than what should be seen at that position, usually within a sequence of expected tokens.DeserializationContext.wrongTokenException(JsonParser p, Class<?> targetType, JsonToken expToken, String extra) -
Uses of JsonToken in com.fasterxml.jackson.databind.deser
Methods in com.fasterxml.jackson.databind.deser with parameters of type JsonTokenModifier and TypeMethodDescriptionprotected final ObjectBeanDeserializer._deserializeOther(JsonParser p, DeserializationContext ctxt, JsonToken t) DeserializationProblemHandler.handleUnexpectedToken(DeserializationContext ctxt, JavaType targetType, JsonToken t, JsonParser p, String failureMsg) Method that deserializers should call if the first token of the value to deserialize is of unexpected type (that is, type of token that deserializer cannot handle).DeserializationProblemHandler.handleUnexpectedToken(DeserializationContext ctxt, Class<?> targetType, JsonToken t, JsonParser p, String failureMsg) Deprecated.Since 2.10 -
Uses of JsonToken in com.fasterxml.jackson.databind.deser.std
Methods in com.fasterxml.jackson.databind.deser.std with parameters of type JsonTokenModifier and TypeMethodDescriptionprotected ObjectFromStringDeserializer._deserializeFromOther(JsonParser p, DeserializationContext ctxt, JsonToken t) -
Uses of JsonToken in com.fasterxml.jackson.databind.jsontype
Methods in com.fasterxml.jackson.databind.jsontype with parameters of type JsonTokenModifier and TypeMethodDescriptionFactory method for constructing type id value object to pass toTypeSerializer.writeTypePrefix(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.core.type.WritableTypeId). -
Uses of JsonToken in com.fasterxml.jackson.databind.node
Methods in com.fasterxml.jackson.databind.node that return JsonTokenModifier and TypeMethodDescriptionArrayNode.asToken()abstract JsonTokenBaseJsonNode.asToken()Method that can be used for efficient type detection when using stream abstraction for traversing nodes.BigIntegerNode.asToken()BinaryNode.asToken()BooleanNode.asToken()abstract JsonTokenContainerNode.asToken()DecimalNode.asToken()DoubleNode.asToken()FloatNode.asToken()IntNode.asToken()LongNode.asToken()MissingNode.asToken()NullNode.asToken()ObjectNode.asToken()POJONode.asToken()ShortNode.asToken()TextNode.asToken()abstract JsonTokenValueNode.asToken()TreeTraversingParser.nextToken() -
Uses of JsonToken in com.fasterxml.jackson.databind.ser.std
Methods in com.fasterxml.jackson.databind.ser.std with parameters of type JsonTokenModifier and TypeMethodDescriptionprotected final WritableTypeIdBeanSerializerBase._typeIdDef(TypeSerializer typeSer, Object bean, JsonToken valueShape) -
Uses of JsonToken in com.fasterxml.jackson.databind.util
Methods in com.fasterxml.jackson.databind.util that return JsonTokenModifier and TypeMethodDescriptionTokenBuffer.firstToken()TokenBuffer.Parser.nextToken()TokenBuffer.Parser.peekNextToken()TokenBuffer.Segment.type(int index) Methods in com.fasterxml.jackson.databind.util with parameters of type JsonTokenModifier and TypeMethodDescriptionprotected final voidTokenBuffer._appendEndMarker(JsonToken type) Specialized method used for appending a structural end Object/Array markerprotected final voidTokenBuffer._appendStartMarker(JsonToken type) Specialized method used for appending a structural start Object/Array markerprotected final voidTokenBuffer._appendValue(JsonToken type) Method used for appending token known to represent a "simple" scalar value where token is the only informationprotected final voidTokenBuffer._appendValue(JsonToken type, Object value) Method used for appending token known to represent a scalar value where there is additional content (text, number) beyond type tokenTokenBuffer.Segment.append(int index, JsonToken tokenType, Object value, Object objectId, Object typeId) -
Uses of JsonToken in com.fasterxml.jackson.datatype.jsr310.ser
Methods in com.fasterxml.jackson.datatype.jsr310.ser that return JsonTokenModifier and TypeMethodDescriptionprotected JsonTokenDurationSerializer.serializationShape(SerializerProvider provider) protected JsonTokenInstantSerializerBase.serializationShape(SerializerProvider provider) protected JsonTokenLocalDateSerializer.serializationShape(SerializerProvider provider) protected JsonTokenLocalDateTimeSerializer.serializationShape(SerializerProvider provider) protected JsonTokenLocalTimeSerializer.serializationShape(SerializerProvider provider) protected JsonTokenMonthDaySerializer.serializationShape(SerializerProvider provider) protected JsonTokenOffsetTimeSerializer.serializationShape(SerializerProvider provider) protected JsonTokenYearMonthSerializer.serializationShape(SerializerProvider provider) protected JsonTokenYearSerializer.serializationShape(SerializerProvider provider) protected JsonTokenZonedDateTimeSerializer.serializationShape(SerializerProvider provider)