|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.github.fge.jackson.jsonpointer.TokenResolver<T>
T
- the type of tree to traverse@ThreadSafe public abstract class TokenResolver<T extends com.fasterxml.jackson.core.TreeNode>
Reference token traversal class
This class is meant to be extended and implemented for all types of trees
inheriting TreeNode
.
This package contains one implementation of this class for JsonNode
.
Note that its equals(Object)
, hashCode()
and toString()
are final.
JsonNodeResolver
Field Summary | |
---|---|
protected ReferenceToken |
token
The associated reference token |
Constructor Summary | |
---|---|
protected |
TokenResolver(ReferenceToken token)
The only constructor |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
abstract T |
get(T node)
Advance one level into the tree |
ReferenceToken |
getToken()
|
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final ReferenceToken token
Constructor Detail |
---|
protected TokenResolver(ReferenceToken token)
token
- the reference tokenMethod Detail |
---|
public abstract T get(T node)
Note: it is required that this method return null on traversal failure.
Note 2: handling null
itself is up to implementations.
node
- the node to traverse
null
if no such node exists for that
tokenpublic final ReferenceToken getToken()
public final int hashCode()
hashCode
in class Object
public final boolean equals(Object obj)
equals
in class Object
public final String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |