-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<ConfigNode>getIndex(int index)Get the optional config node by index for arrays, empty otherwise.java.util.Optional<ConfigNode>getKey(java.lang.String key)Get the optional config node by key for objects, empty otherwise.NodeTypegetNodeType()Get the node type.java.util.Optional<java.lang.String>getValue()get the optional value for a leaf node, empty otherwise.intsize()side of the node, or 1 if a leaf.
-
-
-
Method Detail
-
getNodeType
NodeType getNodeType()
Get the node type.- Returns:
- the node type
-
getValue
java.util.Optional<java.lang.String> getValue()
get the optional value for a leaf node, empty otherwise.- Returns:
- optional value
-
getIndex
java.util.Optional<ConfigNode> getIndex(int index)
Get the optional config node by index for arrays, empty otherwise.- Parameters:
index- for arrays the index we want- Returns:
- optional config
-
getKey
java.util.Optional<ConfigNode> getKey(java.lang.String key)
Get the optional config node by key for objects, empty otherwise.- Parameters:
key- for node we are looking for.- Returns:
- optional config node
-
size
int size()
side of the node, or 1 if a leaf.- Returns:
- side of the node
-
-