Uses of Class
com.fasterxml.jackson.core.JsonPointer
Packages that use JsonPointer
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.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 concrete
JsonNode implementations
Jackson uses for the Tree model.-
Uses of JsonPointer in com.fasterxml.jackson.core
Fields in com.fasterxml.jackson.core declared as JsonPointerModifier and TypeFieldDescriptionprotected JsonPointerJsonPointer._headReference from currently matching segment (if any) to node before leaf.protected final JsonPointerJsonPointer._nextSegmentReference to rest of the pointer beyond currently matching segment (if any); null if this pointer refers to the matching segment.protected static final JsonPointerJsonPointer.EMPTYMarker instance used to represent segment that matches current node or position (that is, returns true formatches()).Methods in com.fasterxml.jackson.core that return JsonPointerModifier and TypeMethodDescriptionprotected JsonPointerJsonPointer._constructHead()protected JsonPointerJsonPointer._constructHead(int suffixLength, JsonPointer last) protected static JsonPointerJsonPointer._parseTail(String fullPath) JsonPointer.append(JsonPointer tail) Mutant factory method that will return `tail` if `this` instance is "empty" pointer, OR `this` instance if `tail` is "empty" pointer, OR Newly constructedJsonPointerinstance that starts with all segments of `this`, followed by all segments of `tail`.JsonPointer.appendIndex(int index) ATTENTION!JsonPointer.appendProperty(String property) ATTENTION!static JsonPointerFactory method that parses given input and construct matching pointer instance, if it represents a valid JSON Pointer: if not, aIllegalArgumentExceptionis thrown.static JsonPointerJsonPointer.empty()Accessor for an "empty" expression, that is, one you can get by callingcompile(java.lang.String)with "" (empty String).static JsonPointerJsonPointer.forPath(JsonStreamContext context, boolean includeRoot) Factory method that will construct a pointer instance that describes path to location givenJsonStreamContextpoints to.JsonPointer.head()Accessor for getting a pointer instance that is identical to this instance except that the last segment has been dropped.JsonPointer.last()JsonPointer.matchElement(int index) Method that may be called to check whether the pointer head (first segment) matches specified Array index and if so, returnJsonPointerthat represents rest of the path after match.JsonPointer.matchProperty(String name) Method that may be called to check whether the pointer head (first segment) matches specified Object property (by name) and if so, returnJsonPointerthat represents rest of the path after match.JsonStreamContext.pathAsPointer()Factory method for constructing aJsonPointerthat points to the current location within the stream that this context is for, excluding information about "root context" (only relevant for multi-root-value cases)JsonStreamContext.pathAsPointer(boolean includeRoot) Factory method for constructing aJsonPointerthat points to the current location within the stream that this context is for, optionally including "root value index"JsonPointer.tail()Accessor for getting a "sub-pointer" (or sub-path), instance where current segment has been removed and pointer includes rest of the segments.static JsonPointerAlias forcompile(java.lang.String); added to make instances automatically deserializable by Jackson databind.Methods in com.fasterxml.jackson.core with parameters of type JsonPointerModifier and TypeMethodDescriptionprotected JsonPointerJsonPointer._constructHead(int suffixLength, JsonPointer last) JsonPointer.append(JsonPointer tail) Mutant factory method that will return `tail` if `this` instance is "empty" pointer, OR `this` instance if `tail` is "empty" pointer, OR Newly constructedJsonPointerinstance that starts with all segments of `this`, followed by all segments of `tail`.TreeNode.at(JsonPointer ptr) Method for locating node specified by given JSON pointer instances.Constructors in com.fasterxml.jackson.core with parameters of type JsonPointerModifierConstructorDescriptionprotectedJsonPointer(String fullString, int fullStringOffset, String segment, int matchIndex, JsonPointer next) protectedJsonPointer(String fullString, int fullStringOffset, String segment, JsonPointer next) -
Uses of JsonPointer in com.fasterxml.jackson.core.filter
Fields in com.fasterxml.jackson.core.filter declared as JsonPointerMethods in com.fasterxml.jackson.core.filter with parameters of type JsonPointerModifier and TypeMethodDescriptionprotected JsonPointerBasedFilterJsonPointerBasedFilter.construct(JsonPointer pathToMatch, boolean includeAllElements) Overridable factory method use for creating new instances by defaultJsonPointerBasedFilter.includeElement(int)andJsonPointerBasedFilter.includeProperty(java.lang.String)methods: needs to be overridden if sub-classing this class.Constructors in com.fasterxml.jackson.core.filter with parameters of type JsonPointerModifierConstructorDescriptionJsonPointerBasedFilter(JsonPointer pathToMatch) JsonPointerBasedFilter(JsonPointer pathToMatch, boolean includeAllElements) -
Uses of JsonPointer in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind with parameters of type JsonPointerModifier and TypeMethodDescriptionprotected abstract JsonNodeJsonNode._at(JsonPointer ptr) Helper method used by other methods for traversing the next step of given path expression, and returning matching value node if any: if no match,nullis returned.final JsonNodeJsonNode.at(JsonPointer ptr) Method for locating node specified by given JSON pointer instances.ObjectReader.at(JsonPointer pointer) Convenience method to bind fromJsonPointerJsonPointerBasedFilteris registered and will be used for parsing later.final JsonNodeJsonNode.requiredAt(JsonPointer path) Method is functionally equivalent toat(path).required()and can be used to check that there is an actual value node at specifiedJsonPointerstarting fromthisnode (but note that value may be explicit JSON null value).final ArrayNodeJsonNode.withArray(JsonPointer ptr) Same asJsonNode.withArray(JsonPointer, OverwriteMode, boolean)but with defaults ofOvewriteMode#NULLS(overwrite mode) andtrueforpreferIndex.JsonNode.withArray(JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) Method that can be called on Object or Array nodes, to access a Array-valued node pointed to by givenJsonPointer, if such a node exists: or if not, an attempt is made to create one and return it.final ObjectNodeJsonNode.withObject(JsonPointer ptr) Same asJsonNode.withObject(JsonPointer, OverwriteMode, boolean)but with defaults ofOvewriteMode#NULLS(overwrite mode) andtrueforpreferIndex(that is, will try to considerJsonPointersegments index if at all possible and only secondarily as property nameJsonNode.withObject(JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) Method that can be called on Object or Array nodes, to access a Object-valued node pointed to by givenJsonPointer, if such a node exists: or if not, an attempt is made to create one and return it. -
Uses of JsonPointer in com.fasterxml.jackson.databind.node
Methods in com.fasterxml.jackson.databind.node that return JsonPointerModifier and TypeMethodDescriptionprotected JsonPointerBaseJsonNode._jsonPointerIfValid(String exprOrProperty) Methods in com.fasterxml.jackson.databind.node with parameters of type JsonPointerModifier and TypeMethodDescriptionprotected JsonNodeArrayNode._at(JsonPointer ptr) protected JsonNodeObjectNode._at(JsonPointer ptr) protected JsonNodeValueNode._at(JsonPointer ptr) protected ArrayNodeArrayNode._withArray(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ArrayNodeBaseJsonNode._withArray(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ArrayNodeObjectNode._withArray(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ArrayNodeArrayNode._withArrayAddTailElement(JsonPointer tail, boolean preferIndex) protected ArrayNodeObjectNode._withArrayAddTailProperty(JsonPointer tail, boolean preferIndex) protected ObjectNodeArrayNode._withObject(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ObjectNodeBaseJsonNode._withObject(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected abstract ObjectNodeContainerNode._withObject(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ObjectNodeObjectNode._withObject(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ObjectNodeArrayNode._withObjectAddTailElement(JsonPointer tail, boolean preferIndex) protected ObjectNodeObjectNode._withObjectAddTailProperty(JsonPointer tail, boolean preferIndex) protected voidBaseJsonNode._withXxxVerifyReplace(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex, JsonNode toReplace) BaseJsonNode.withArray(JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) BaseJsonNode.withObject(JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex)