@Immutable public final class JsonNodeResolver extends TokenResolver<com.fasterxml.jackson.databind.JsonNode>
TokenResolver
for JsonNode
The JSON Pointer specification specifies that for arrays, indices must
not have leading zeroes (save for 0
itself). This class handles
this.
token
Constructor and Description |
---|
JsonNodeResolver(ReferenceToken token) |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
get(com.fasterxml.jackson.databind.JsonNode node)
Advance one level into the tree
|
equals, getToken, hashCode, toString
public JsonNodeResolver(ReferenceToken token)
public com.fasterxml.jackson.databind.JsonNode get(com.fasterxml.jackson.databind.JsonNode node)
TokenResolver
Note: it is required that this method return null on traversal failure.
Note 2: handling null
itself is up to implementations.
get
in class TokenResolver<com.fasterxml.jackson.databind.JsonNode>
node
- the node to traversenull
if no such node exists for that
token