Uses of Class
com.fasterxml.jackson.core.JsonPointer
-
Packages that use JsonPointer 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.filter com.fasterxml.jackson.databind 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.com.fasterxml.jackson.databind.node Contains concreteJsonNodeimplementations Jackson uses for the Tree model. -
-
Uses of JsonPointer in com.fasterxml.jackson.core
Fields in com.fasterxml.jackson.core declared as JsonPointer Modifier and Type Field Description protected JsonPointerJsonPointer. _headReference from currently matching segment (if any) to node before leaf.protected JsonPointerJsonPointer. _nextSegmentReference to rest of the pointer beyond currently matching segment (if any); null if this pointer refers to the matching segment.protected static 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 JsonPointer Modifier and Type Method Description protected JsonPointerJsonPointer. _constructHead()protected JsonPointerJsonPointer. _constructHead(int suffixLength, JsonPointer last)protected static JsonPointerJsonPointer. _parseTail(String fullPath)JsonPointerJsonPointer. 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`.JsonPointerJsonPointer. appendIndex(int index)ATTENTION!JsonPointeris head centric, tail appending is much costlier than head appending.JsonPointerJsonPointer. appendProperty(String property)ATTENTION!JsonPointeris head centric, tail appending is much costlier than head appending.static JsonPointerJsonPointer. compile(String expr)Factory 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.JsonPointerJsonPointer. head()Accessor for getting a pointer instance that is identical to this instance except that the last segment has been dropped.JsonPointerJsonPointer. last()JsonPointerJsonPointer. 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.JsonPointerJsonPointer. 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.JsonPointerJsonStreamContext. 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)JsonPointerJsonStreamContext. 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"JsonPointerJsonPointer. 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 JsonPointerJsonPointer. valueOf(String expr)Alias forcompile(java.lang.String); added to make instances automatically deserializable by Jackson databind.Methods in com.fasterxml.jackson.core with parameters of type JsonPointer Modifier and Type Method Description protected JsonPointerJsonPointer. _constructHead(int suffixLength, JsonPointer last)JsonPointerJsonPointer. 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`.TreeNodeTreeNode. at(JsonPointer ptr)Method for locating node specified by given JSON pointer instances.Constructors in com.fasterxml.jackson.core with parameters of type JsonPointer Constructor Description JsonPointer(String fullString, int fullStringOffset, String segment, int matchIndex, JsonPointer next)JsonPointer(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 JsonPointer Modifier and Type Field Description protected JsonPointerJsonPointerBasedFilter. _pathToMatchConstructors in com.fasterxml.jackson.core.filter with parameters of type JsonPointer Constructor Description JsonPointerBasedFilter(JsonPointer match) -
Uses of JsonPointer in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind with parameters of type JsonPointer Modifier and Type Method Description protected 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.JsonNodeJsonNode. at(JsonPointer ptr)Method for locating node specified by given JSON pointer instances.ObjectReaderObjectReader. at(JsonPointer pointer)Convenience method to bind fromJsonPointerJsonPointerBasedFilteris registered and will be used for parsing later.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).ArrayNodeJsonNode. withArray(JsonPointer ptr)Same asJsonNode.withArray(JsonPointer, OverwriteMode, boolean)but with defaults ofOvewriteMode#NULLS(overwrite mode) andtrueforpreferIndex.ArrayNodeJsonNode. 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.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 nameObjectNodeJsonNode. 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 JsonPointer Modifier and Type Method Description protected JsonPointerBaseJsonNode. _jsonPointerIfValid(String exprOrProperty)Methods in com.fasterxml.jackson.databind.node with parameters of type JsonPointer Modifier and Type Method Description protected 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)ArrayNodeBaseJsonNode. withArray(JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex)ObjectNodeBaseJsonNode. withObject(JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex)
-