public class KeyValueNodeImpl extends BaseNode implements KeyValueNode
| Constructor and Description |
|---|
KeyValueNodeImpl() |
KeyValueNodeImpl(KeyValueNodeImpl node) |
KeyValueNodeImpl(Node keyNode,
Node valueNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(Node node)
Adds a new child.
|
Node |
copy()
Creates a new copy of this node
|
Position |
getEndPosition()
The end position of this node
|
Node |
getKey() |
Position |
getStartPosition()
The start position of this node
|
NodeType |
getType()
Returns the type of this node
|
Node |
getValue() |
void |
setEndPosition(Position endPosition) |
void |
setStartPosition(Position startPosition) |
void |
setValue(Node valueNode) |
String |
toString() |
addChild, annotate, annotations, findAncestorWith, findDescendantsWith, get, getChildren, getParent, getRootNode, getSource, removeChild, removeChildren, replaceTree, replaceWith, setChild, setParent, setSourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddChild, annotate, annotations, findAncestorWith, findDescendantsWith, get, getChildren, getParent, getRootNode, getSource, removeChild, removeChildren, replaceTree, replaceWith, setChild, setParent, setSourcepublic KeyValueNodeImpl()
public KeyValueNodeImpl(KeyValueNodeImpl node)
@Nonnull public Position getStartPosition()
NodegetStartPosition in interface Node@Nonnull public Position getEndPosition()
NodegetEndPosition in interface Nodepublic void setStartPosition(Position startPosition)
public void setEndPosition(Position endPosition)
public void addChild(Node node)
Node@Nonnull public Node copy()
Nodepublic Node getKey()
getKey in interface KeyValueNodepublic Node getValue()
getValue in interface KeyValueNodepublic void setValue(Node valueNode)
setValue in interface KeyValueNodeCopyright © 2017. All rights reserved.