Uses of Class
com.fasterxml.jackson.core.JsonToken
-
Packages that use JsonToken Package Description com.fasterxml.jackson.core Main public API classes of the core streaming JSON processor: most importantlyJsonFactoryused for constructing JSON parser (JsonParser) and generator (JsonGenerator) instances.com.fasterxml.jackson.core.base Base classes used by concrete Parser and Generator implementations; contain functionality that is not specific to JSON or input abstraction (byte vs char).com.fasterxml.jackson.core.exc Package for some ofJsonProcessingExceptionsubtypes contained by streaming API.com.fasterxml.jackson.core.filter com.fasterxml.jackson.core.io com.fasterxml.jackson.core.json JSON-specific parser and generator implementation classes that Jackson defines and uses.com.fasterxml.jackson.core.json.async Non-blocking ("async") JSON parser implementation.com.fasterxml.jackson.core.type Contains classes needed for type introspection, mostly used by data binding functionality.com.fasterxml.jackson.core.util Utility classes used by Jackson Core functionality. -
-
Uses of JsonToken in com.fasterxml.jackson.core
Methods in com.fasterxml.jackson.core that return JsonToken Modifier and Type Method Description JsonTokenTreeNode. asToken()Method that can be used for efficient type detection when using stream abstraction for traversing nodes.JsonTokenJsonParser. currentToken()Accessor to find which token parser currently points to, if any; null will be returned if none.abstract JsonTokenJsonParser. getCurrentToken()Alias forJsonParser.currentToken(), will be deprecated in Jackson 2.9abstract 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 JsonTokenJsonToken. valueOf(java.lang.String name)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.Methods in com.fasterxml.jackson.core with parameters of type JsonToken Modifier and Type Method Description abstract booleanJsonParser. hasToken(JsonToken t)Method that is functionally equivalent to:return currentToken() == tbut may be more efficiently implemented. -
Uses of JsonToken in com.fasterxml.jackson.core.base
Fields in com.fasterxml.jackson.core.base declared as JsonToken Modifier and Type Field Description protected 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 JsonToken Modifier and Type Method Description JsonTokenParserMinimalBase. currentToken()JsonTokenParserMinimalBase. getCurrentToken()JsonTokenParserMinimalBase. getLastClearedToken()abstract JsonTokenParserMinimalBase. nextToken()JsonTokenParserMinimalBase. nextValue()protected JsonTokenParserBase. reset(boolean negative, int intLen, int fractLen, int expLen)protected JsonTokenParserBase. resetAsNaN(java.lang.String valueStr, double value)protected JsonTokenParserBase. resetFloat(boolean negative, int intLen, int fractLen, int expLen)protected JsonTokenParserBase. resetInt(boolean negative, int intLen)Methods in com.fasterxml.jackson.core.base with parameters of type JsonToken Modifier and Type Method Description protected voidParserMinimalBase. _reportInputCoercion(java.lang.String msg, JsonToken inputType, java.lang.Class<?> targetType)protected voidParserMinimalBase. _reportInvalidEOF(java.lang.String msg, JsonToken currToken)protected voidParserMinimalBase. _reportInvalidEOFInValue(JsonToken type)booleanParserMinimalBase. hasToken(JsonToken t)protected voidParserMinimalBase. reportOverflowInt(java.lang.String numDesc, JsonToken inputType)protected voidParserMinimalBase. reportOverflowLong(java.lang.String numDesc, JsonToken inputType) -
Uses of JsonToken in com.fasterxml.jackson.core.exc
Fields in com.fasterxml.jackson.core.exc declared as JsonToken Modifier and Type Field Description protected JsonTokenInputCoercionException. _inputTypeInput token that represents input value that failed to coerce.Methods in com.fasterxml.jackson.core.exc that return JsonToken Modifier and Type Method Description JsonTokenInputCoercionException. 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 JsonToken Constructor Description InputCoercionException(JsonParser p, java.lang.String msg, JsonToken inputType, java.lang.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 JsonToken Modifier and Type Field Description protected 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 JsonToken Modifier and Type Method Description private JsonTokenFilteringParserDelegate. _nextBuffered(TokenFilterContext buffRoot)protected JsonTokenFilteringParserDelegate. _nextToken2()Offlined handling for cases where there was no buffered token to return, and the token read next could not be returned as-is, at least not yet, but where we have not yet established that buffering is needed.protected JsonTokenFilteringParserDelegate. _nextTokenWithBuffering(TokenFilterContext buffRoot)Method called when a new potentially included context is found.JsonTokenFilteringParserDelegate. currentToken()JsonTokenFilteringParserDelegate. getCurrentToken()JsonTokenFilteringParserDelegate. getLastClearedToken()JsonTokenFilteringParserDelegate. nextToken()JsonTokenTokenFilterContext. nextTokenToRead()JsonTokenFilteringParserDelegate. nextValue()Methods in com.fasterxml.jackson.core.filter with parameters of type JsonToken Modifier and Type Method Description booleanFilteringParserDelegate. hasToken(JsonToken t) -
Uses of JsonToken in com.fasterxml.jackson.core.io
Fields in com.fasterxml.jackson.core.io declared as JsonToken Modifier and Type Field Description protected 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 JsonToken Modifier and Type Method Description JsonTokenJsonEOFException. 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 Constructor Description JsonEOFException(JsonParser p, JsonToken token, java.lang.String msg) -
Uses of JsonToken in com.fasterxml.jackson.core.json
Methods in com.fasterxml.jackson.core.json that return JsonToken Modifier and Type Method Description private JsonTokenUTF8StreamJsonParser. _closeScope(int i)protected JsonTokenReaderBasedJsonParser. _handleApos()protected JsonTokenUTF8DataInputJsonParser. _handleApos()protected JsonTokenUTF8StreamJsonParser. _handleApos()protected JsonTokenReaderBasedJsonParser. _handleInvalidNumberStart(int ch, boolean negative)Method called if expected numeric value (due to leading sign) does not look like a numberprotected JsonTokenUTF8DataInputJsonParser. _handleInvalidNumberStart(int ch, boolean neg)Method called if expected numeric value (due to leading sign) does not look like a numberprotected JsonTokenUTF8StreamJsonParser. _handleInvalidNumberStart(int ch, boolean neg)Method called if expected numeric value (due to leading sign) does not look like a numberprotected 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.private JsonTokenReaderBasedJsonParser. _nextAfterName()private JsonTokenUTF8DataInputJsonParser. _nextAfterName()private JsonTokenUTF8StreamJsonParser. _nextAfterName()private JsonTokenReaderBasedJsonParser. _nextTokenNotInObject(int i)private JsonTokenUTF8DataInputJsonParser. _nextTokenNotInObject(int i)private JsonTokenUTF8StreamJsonParser. _nextTokenNotInObject(int i)private JsonTokenReaderBasedJsonParser. _parseFloat(int ch, int startPtr, int ptr, boolean neg, int intLen)private JsonTokenUTF8DataInputJsonParser. _parseFloat(char[] outBuf, int outPtr, int c, boolean negative, int integerPartLength)private JsonTokenUTF8StreamJsonParser. _parseFloat(char[] outBuf, int outPtr, int c, boolean negative, int integerPartLength)protected JsonTokenReaderBasedJsonParser. _parseFloatThatStartsWithPeriod()protected JsonTokenUTF8DataInputJsonParser. _parseFloatThatStartsWithPeriod()protected JsonTokenUTF8StreamJsonParser. _parseFloatThatStartsWithPeriod()protected JsonTokenReaderBasedJsonParser. _parseNegNumber()protected JsonTokenUTF8DataInputJsonParser. _parseNegNumber()protected JsonTokenUTF8StreamJsonParser. _parseNegNumber()private JsonTokenReaderBasedJsonParser. _parseNumber2(boolean neg, int startPtr)Method called to parse a number, when the primary parse method has failed to parse it, due to it being split on buffer boundary.private JsonTokenUTF8StreamJsonParser. _parseNumber2(char[] outBuf, int outPtr, boolean negative, int intPartLength)Method called to handle parsing when input is split across buffer boundary (or output is longer than segment used to store it)protected JsonTokenReaderBasedJsonParser. _parsePosNumber(int ch)Initial parsing method for number values.protected JsonTokenUTF8DataInputJsonParser. _parsePosNumber(int c)Initial parsing method for number values.protected JsonTokenUTF8StreamJsonParser. _parsePosNumber(int c)Initial parsing method for number values.JsonTokenReaderBasedJsonParser. nextToken()JsonTokenUTF8DataInputJsonParser. nextToken()JsonTokenUTF8StreamJsonParser. nextToken()Methods in com.fasterxml.jackson.core.json with parameters of type JsonToken Modifier and Type Method Description protected java.lang.StringReaderBasedJsonParser. _getText2(JsonToken t)protected java.lang.StringUTF8DataInputJsonParser. _getText2(JsonToken t)protected java.lang.StringUTF8StreamJsonParser. _getText2(JsonToken t)protected charReaderBasedJsonParser. getNextChar(java.lang.String eofMsg, JsonToken forToken) -
Uses of JsonToken in com.fasterxml.jackson.core.json.async
Methods in com.fasterxml.jackson.core.json.async that return JsonToken Modifier and Type Method Description protected JsonTokenNonBlockingJsonParserBase. _closeArrayScope()protected JsonTokenNonBlockingJsonParserBase. _closeObjectScope()protected JsonTokenNonBlockingJsonParserBase. _eofAsNextToken()Helper method called at point when all input has been exhausted and input feeder has indicated no more input will be forthcoming.protected JsonTokenNonBlockingJsonParserBase. _fieldComplete(java.lang.String name)private JsonTokenNonBlockingJsonParser. _finishAposName(int qlen, int currQuad, int currQuadBytes)private JsonTokenNonBlockingJsonParser. _finishAposString()private JsonTokenNonBlockingJsonParser. _finishBOM(int bytesHandled)private JsonTokenNonBlockingJsonParser. _finishCComment(int fromMinorState, boolean gotStar)private JsonTokenNonBlockingJsonParser. _finishCppComment(int fromMinorState)protected JsonTokenNonBlockingJsonParser. _finishErrorToken()protected JsonTokenNonBlockingJsonParser. _finishErrorTokenWithEOF()protected JsonTokenNonBlockingJsonParser. _finishFieldWithEscape()protected JsonTokenNonBlockingJsonParser. _finishFloatExponent(boolean checkSign, int ch)protected JsonTokenNonBlockingJsonParser. _finishFloatFraction()private JsonTokenNonBlockingJsonParser. _finishHashComment(int fromMinorState)protected JsonTokenNonBlockingJsonParser. _finishKeywordToken(java.lang.String expToken, int matched, JsonToken result)protected JsonTokenNonBlockingJsonParser. _finishKeywordTokenWithEOF(java.lang.String expToken, int matched, JsonToken result)protected JsonTokenNonBlockingJsonParser. _finishNonStdToken(int type, int matched)protected JsonTokenNonBlockingJsonParser. _finishNonStdTokenWithEOF(int type, int matched)protected JsonTokenNonBlockingJsonParser. _finishNumberIntegralPart(char[] outBuf, int outPtr)protected JsonTokenNonBlockingJsonParser. _finishNumberLeadingNegZeroes()protected JsonTokenNonBlockingJsonParser. _finishNumberLeadingZeroes()protected JsonTokenNonBlockingJsonParser. _finishNumberMinus(int ch)private JsonTokenNonBlockingJsonParser. _finishRegularString()protected JsonTokenNonBlockingJsonParser. _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 JsonTokenNonBlockingJsonParser. _finishTokenWithEOF()Method similar toNonBlockingJsonParser._finishToken(), but called when no more input is available, and end-of-input has been detected.private JsonTokenNonBlockingJsonParser. _finishUnquotedName(int qlen, int currQuad, int currQuadBytes)Parsing of optionally supported non-standard "unquoted" names: names without either double-quotes or apostrophes surrounding them.private JsonTokenNonBlockingJsonParser. _handleOddName(int ch)Method called when we see non-white space character other than double quote, when expecting a field name.private JsonTokenNonBlockingJsonParser. _parseEscapedName(int qlen, int currQuad, int currQuadBytes)Slower parsing method which is generally branched to when an escape sequence is detected (or alternatively for long names, one crossing input buffer boundary).protected JsonTokenNonBlockingJsonParser. _reportErrorToken(java.lang.String actualToken)private JsonTokenNonBlockingJsonParser. _startAfterComment(int fromMinorState)protected JsonTokenNonBlockingJsonParser. _startAposString()protected JsonTokenNonBlockingJsonParserBase. _startArrayScope()private JsonTokenNonBlockingJsonParser. _startDocument(int ch)protected JsonTokenNonBlockingJsonParser. _startFalseToken()private JsonTokenNonBlockingJsonParser. _startFieldName(int ch)Method that handles initial token type recognition for token that has to be either FIELD_NAME or END_OBJECT.private JsonTokenNonBlockingJsonParser. _startFieldNameAfterComma(int ch)protected JsonTokenNonBlockingJsonParser. _startFloat(char[] outBuf, int outPtr, int ch)protected JsonTokenNonBlockingJsonParser. _startFloatThatStartsWithPeriod()protected JsonTokenNonBlockingJsonParser. _startNegativeNumber()protected JsonTokenNonBlockingJsonParser. _startNullToken()protected JsonTokenNonBlockingJsonParser. _startNumberLeadingZero()protected JsonTokenNonBlockingJsonParserBase. _startObjectScope()protected JsonTokenNonBlockingJsonParser. _startPositiveNumber(int ch)private JsonTokenNonBlockingJsonParser. _startSlashComment(int fromMinorState)protected JsonTokenNonBlockingJsonParser. _startString()protected JsonTokenNonBlockingJsonParser. _startTrueToken()protected JsonTokenNonBlockingJsonParser. _startUnexpectedValue(boolean leadingComma, int ch)private JsonTokenNonBlockingJsonParser. _startValue(int ch)Helper method called to detect type of a value token (at any level), and possibly decode it if contained in input buffer.private JsonTokenNonBlockingJsonParser. _startValueAfterComma(int ch)private JsonTokenNonBlockingJsonParser. _startValueExpectColon(int ch)Helper method called to detect type of a value token (at any level), and possibly decode it if contained in input buffer.private JsonTokenNonBlockingJsonParser. _startValueExpectComma(int ch)Helper method called to parse token that is either a value token in array or end-array markerprotected JsonTokenNonBlockingJsonParserBase. _valueComplete(JsonToken t)protected JsonTokenNonBlockingJsonParserBase. _valueCompleteInt(int value, java.lang.String asText)protected JsonTokenNonBlockingJsonParserBase. _valueNonStdNumberComplete(int type)JsonTokenNonBlockingJsonParser. nextToken()Methods in com.fasterxml.jackson.core.json.async with parameters of type JsonToken Modifier and Type Method Description protected JsonTokenNonBlockingJsonParser. _finishKeywordToken(java.lang.String expToken, int matched, JsonToken result)protected JsonTokenNonBlockingJsonParser. _finishKeywordTokenWithEOF(java.lang.String expToken, int matched, JsonToken result)protected java.lang.StringNonBlockingJsonParserBase. _getText2(JsonToken t)protected JsonTokenNonBlockingJsonParserBase. _valueComplete(JsonToken t) -
Uses of JsonToken in com.fasterxml.jackson.core.type
Fields in com.fasterxml.jackson.core.type declared as JsonToken Modifier and Type Field Description JsonTokenWritableTypeId. 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 JsonToken Constructor Description WritableTypeId(java.lang.Object value, JsonToken valueShape0)Constructor used when calling a method for generating and writing Type Id; caller only knows value object and its intended shape.WritableTypeId(java.lang.Object value, JsonToken valueShape0, java.lang.Object id0)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(java.lang.Object value, java.lang.Class<?> valueType0, JsonToken valueShape0)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 JsonToken Modifier and Type Method Description JsonTokenJsonParserDelegate. currentToken()JsonTokenJsonParserDelegate. getCurrentToken()JsonTokenJsonParserDelegate. getLastClearedToken()JsonTokenJsonParserDelegate. nextToken()JsonTokenJsonParserSequence. nextToken()JsonTokenJsonParserDelegate. nextValue()protected JsonTokenJsonParserSequence. switchAndReturnNext()Methods in com.fasterxml.jackson.core.util with parameters of type JsonToken Modifier and Type Method Description booleanJsonParserDelegate. hasToken(JsonToken t)
-