Example usage for Java com.fasterxml.jackson.core TreeNode fields, constructors, methods, implement or subclass
The text is from its open source code.
Iterator | fieldNames() Method for accessing names of all fields for this node, iff this node is an Object node. |
TreeNode | get(String fieldName) Method for accessing value of the specified field of an object node. |
TreeNode | get(int index) Method for accessing value of the specified element of an array node. |
Class> | getClass() Returns the runtime class of this Object . |
boolean | isArray() Method that returns true if this node is an Array node, false otherwise. |
boolean | isObject() Method that returns true if this node is an Object node, false otherwise. |
boolean | isValueNode() Method that returns true for all value nodes: ones that are not containers, and that do not represent "missing" nodes in the path. |
int | size() Method that returns number of child nodes this node contains: for Array nodes, number of child elements, for Object nodes, number of fields, and for all other nodes 0. |
String | toString() Returns a string representation of the object. |
JsonParser | traverse() Method for constructing a JsonParser instance for iterating over contents of the tree that this node is root of. |