this.queryNodeList = actualQueryNodeList;
this.latestNodeVerified = false;
}
else if (node instanceof ArrayQueryNode) {
final ArrayList<QueryNode> actualQueryNodeList = this.queryNodeList;
final ArrayQueryNode arrayNode = (ArrayQueryNode) node;
final List<QueryNode> children = arrayNode.getChildren();
final List<QueryNode> newChildren = new ArrayList<QueryNode>();
for (final QueryNode child : children) {
// The unary modifier sets the occurrence of this value in the TwigQuery
if (!(child instanceof ModifierQueryNode)) {
newChildren.add(this.process(child));
} else {
newChildren.add(child);
}
}
arrayNode.set(newChildren);
actualQueryNodeList.add(arrayNode);
this.queryNodeList = actualQueryNodeList;
this.latestNodeVerified = false;
}
else if (node instanceof TopLevelQueryNode) {