/** * Creates a new <code>RelationQueryNode</code> without a type nor value * assigned. * * @param parent the parent node for this query node. * @param operation the operation. * @param factory the query node factory. */ protected RelationQueryNode(QueryNode parent, int operation, QueryNodeFactory factory) { super(parent); this.operation = operation; this.factory = factory; this.relPath = factory.createPathQueryNode(this); }
/** * Creates a new <code>RelationQueryNode</code> without a type nor value * assigned. * * @param parent the parent node for this query node. * @param operation the operation. * @param factory the query node factory. */ protected RelationQueryNode(QueryNode parent, int operation, QueryNodeFactory factory) { super(parent); this.operation = operation; this.factory = factory; this.relPath = factory.createPathQueryNode(this); }
/** * Creates the primary path query node. * * @param node xpath node representing the root of the parsed tree. * @return the path query node */ private PathQueryNode createPathQueryNode(SimpleNode node) { root.setLocationNode(factory.createPathQueryNode(root)); node.childrenAccept(this, root.getLocationNode()); return root.getLocationNode(); }
/** * Creates the primary path query node. * * @param node xpath node representing the root of the parsed tree. * @return the path query node */ private PathQueryNode createPathQueryNode(SimpleNode node) { root.setLocationNode(factory.createPathQueryNode(root)); node.childrenAccept(this, root.getLocationNode()); return root.getLocationNode(); }
factory.createPathQueryNode(null).getValidJcrSystemNodeTypeNames()); pathNode.setAbsolute(true);
factory.createPathQueryNode(null).getValidJcrSystemNodeTypeNames()); pathNode.setAbsolute(true);
public Object visit(ASTQuery node, Object data) { root = factory.createQueryRootNode(); root.setLocationNode(factory.createPathQueryNode(root));
public Object visit(ASTQuery node, Object data) { root = factory.createQueryRootNode(); root.setLocationNode(factory.createPathQueryNode(root));