/** * Sets the supplied child array as the children member of {node} and sets the parent reference of each element in {children} to {node}. * * @param node * @param children * @return */ public static <T extends JexlNode> T children(T node, JexlNode... children) { node.children = children; for (JexlNode child : node.children) newParent(child, node); return node; }