| Constructor and Description |
|---|
ArrayWrapperNode(Node child) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(int idx,
Node newNode)
Adds a child at a specified index.
|
void |
addChild(Node node)
Adds a new child.
|
Node |
copy()
Creates a new copy of this node
|
List<Node> |
getChildren()
All the children
|
Position |
getEndPosition()
The end position of this node
|
Position |
getStartPosition()
The start position of this node
|
NodeType |
getType()
Returns the type of this node
|
boolean |
isJsonStyle()
Return true if the array was persisted with the json style [ "item"]
|
void |
removeChild(Node node)
Removes a child.
|
void |
setChild(int idx,
Node newNode)
Sets a child at a specified index.
|
annotate, annotations, findAncestorWith, findDescendantsWith, get, getParent, getRootNode, getSource, removeChildren, replaceTree, replaceWith, setParent, setSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitannotate, annotations, findAncestorWith, findDescendantsWith, get, getParent, getRootNode, getSource, removeChildren, replaceTree, replaceWith, setParent, setSourcepublic ArrayWrapperNode(Node child)
public boolean isJsonStyle()
ArrayNodeisJsonStyle in interface ArrayNode["item"] and false if it was written like: - itempublic void addChild(Node node)
Nodepublic void setChild(int idx,
Node newNode)
Nodepublic void addChild(int idx,
Node newNode)
Nodepublic void removeChild(Node node)
NoderemoveChild in interface NoderemoveChild in class BaseNodenode - Adds a new child to this node@Nonnull public List<Node> getChildren()
NodegetChildren in interface NodegetChildren in class BaseNode@Nonnull public Position getStartPosition()
NodegetStartPosition in interface Node@Nonnull public Position getEndPosition()
NodegetEndPosition in interface Node@Nonnull public Node copy()
NodeCopyright © 2017. All rights reserved.