@Immutable public final class JsonNodeResolver extends TokenResolver<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 |
|---|---|
JsonNode |
get(JsonNode node)
Advance one level into the tree
|
equals, getToken, hashCode, toStringpublic JsonNodeResolver(ReferenceToken token)
public JsonNode get(JsonNode node)
TokenResolverNote: it is required that this method return null on traversal failure.
Note 2: handling null itself is up to implementations.
get in class TokenResolver<JsonNode>node - the node to traversenull if no such node exists for that
token