| Package | Description | 
|---|---|
| com.ak.json | |
| com.ak.json.nodetree | |
| com.ak.json.transform | 
| Modifier and Type | Interface and Description | 
|---|---|
interface  | 
JInstrumentalNode
Interface JInstrumentalNode represents operation are common for all types of node of tree. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
<K,T extends JNode> | 
JNode.addNode(K key,
       T node)
Add element to composite node. 
 | 
<T extends JNode> | 
JNode.addNode(T node)
Add element to composite node (without name). 
 | 
<N extends JNode> | 
JNode.removeNode(N node)
Remove child node of this node. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
JNode | 
JNode.clone()
Return copy of this object, detached from node tree. 
 | 
JNode | 
JInstrumentalNode.getDocRoot()
Returns root node of the tree. 
 | 
<K> JNode | 
JNode.getNode(K selector)
Returns child node of this node by selector. 
 | 
JNode | 
JNode.getParent()
Return parent node of this node in node tree. 
 | 
JNode | 
JInstrumentalNode.setKey(java.lang.String pKey)
Set key for JNode. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.List<JNode> | 
JNode.getChildren()
Returns set of all children of composite (Object or Array) node. 
 | 
java.util.Iterator<JNode> | 
JNode.iterator()
Returns iterator over elements of composite node. 
 | 
| Modifier and Type | Class and Description | 
|---|---|
class  | 
AbstractJNode
Class AbstractJNode represents common methods set for different types of JNode. 
 | 
class  | 
JArrayNode
Class JArrayNode represents JSON ARRAY element. 
 | 
class  | 
JObjectNode
Class JObjectNode represents JSON OBJECT element. 
 | 
class  | 
JValueNode<V>  | 
| Modifier and Type | Method and Description | 
|---|---|
<K,T extends JNode> | 
JObjectNode.addNode(K pKey,
       T jnode)  | 
<K,T extends JNode> | 
JValueNode.addNode(K idx,
       T node)  | 
<K,T extends JNode> | 
JArrayNode.addNode(K idx,
       T node)  | 
<T extends JNode> | 
JObjectNode.addNode(T jnode)  | 
<N extends JNode> | 
JObjectNode.removeNode(N node)  | 
<N extends JNode> | 
JValueNode.removeNode(N node)  | 
<N extends JNode> | 
JArrayNode.removeNode(N node)  | 
| Modifier and Type | Method and Description | 
|---|---|
JNode | 
JObjectNode.clone()  | 
abstract JNode | 
AbstractJNode.clone()  | 
JNode | 
JValueNode.clone()  | 
JNode | 
JArrayNode.clone()  | 
JNode | 
AbstractJNode.getDocRoot()  | 
<T> JNode | 
JObjectNode.getNode(T name)  | 
<T> JNode | 
JValueNode.getNode(T selector)  | 
<T> JNode | 
JArrayNode.getNode(T idx)  | 
JNode | 
AbstractJNode.getParent()  | 
JNode | 
AbstractJNode.setKey(java.lang.String pKey)  | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.List<JNode> | 
JObjectNode.getChildren()  | 
java.util.List<JNode> | 
AbstractJNode.getChildren()  | 
java.util.List<JNode> | 
JArrayNode.getChildren()  | 
java.util.Iterator<JNode> | 
JObjectNode.iterator()  | 
java.util.Iterator<JNode> | 
AbstractJNode.iterator()  | 
java.util.Iterator<JNode> | 
JArrayNode.iterator()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
JValueNode.addNode(JNode node)  | 
void | 
JArrayNode.addNode(JNode node)  | 
| Constructor and Description | 
|---|
AbstractJNode(JNode fParent)
Constructor. 
 | 
JArrayNode(JNode fParent)
Constructor for node attached to tree. 
 | 
JObjectNode(JNode fParent)
Constructor for node attached to tree. 
 | 
JValueNode(JNode fParent)
Constructor for node attached to tree. 
 | 
JValueNode(JNode fParent,
          V val)
Constructor for node attached to tree. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
JNode | 
JParser.parse(java.io.File file)
Parse file. 
 | 
JNode | 
JParser.parse(java.io.InputStream inputStream)
Parse document from stream. 
 | 
JNode | 
JParser.parse(java.lang.String jsonText)
Parse string. 
 | 
JNode | 
JTransformer.process(java.io.File documentFile)
Transforms document. 
 | 
JNode | 
JTransformer.process(java.io.InputStream is)
Transforms document. 
 | 
JNode | 
JTransformer.process(JNode jNode)
Transforms document. 
 | 
JNode | 
JTransformer.process(java.lang.String jsonText)
Transforms document. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static java.util.List<JNode> | 
JPath.jpath(java.lang.String pPath,
     JNode doc)
Apply jpath to json document. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected static void | 
JPath.jpath(java.util.List<JNode> selectedNodes,
     java.lang.String pPath,
     JNode doc,
     JNode var)  | 
static java.util.List<JNode> | 
JPath.jpath(java.lang.String pPath,
     JNode doc)
Apply jpath to json document. 
 | 
JNode | 
JTransformer.process(JNode jNode)
Transforms document. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected static void | 
JPath.jpath(java.util.List<JNode> selectedNodes,
     java.lang.String pPath,
     JNode doc,
     JNode var)  | 
| Constructor and Description | 
|---|
JTransformer(JNode template)  |