public class NodeMembers extends Node
Modifier and Type | Field and Description |
---|---|
protected int |
mIdx |
protected java.util.ArrayList<NodePair> |
mPairList |
Constructor and Description |
---|
NodeMembers() |
Modifier and Type | Method and Description |
---|---|
void |
add(NodePair np)
Adds a new pair to the end of the list.
|
NodePair |
get(int idx)
Returns the NodePair element with the given index from mPairList.
|
java.lang.String |
getAsString(int columnOffset,
boolean hasLabel)
Delivers recursively a node and all of its children as a formatted string.
|
NodePair |
getNext()
Returns the next NodePair element from mPairList, incrementing mIdx
afterwards.
|
void |
setIdx(int idx)
Sets the index used by the getNext() method.
|
getAsString, getAsStrippedString, indent
protected java.util.ArrayList<NodePair> mPairList
protected int mIdx
public java.lang.String getAsString(int columnOffset, boolean hasLabel)
Node
getAsString
in class Node
columnOffset
- Number of spaces an element is indented.hasLabel
- If true this node starts in a line with a label. The
element must not be indented then but follows immediately
after the label.public void setIdx(int idx)
idx
- index where the next getNext() call is reading frompublic NodePair getNext()
public NodePair get(int idx)
public void add(NodePair np)
np
- the pair to add