@Test public void testGetXpathNodeTree() throws Exception { List<Node> nodes = underTest.getXpathNodeTree(" Assert.assertTrue(StringUtils.isBlank(nodes.get(0).getPredicate().getLeft())); }
public List<Node> getXpathNodeTree(String xpath) { NodeTreeBuilderStateMachine st = new NodeTreeBuilderStateMachine(); while (st.state != NodeTreeBuilderStateMachine.BuilderState.END) { st.state.parser(st, xpath.toCharArray()); } return st.context.xpathTr; }
XpathEvaluator { public List<Node> getXpathNodeTree(String xpath) { NodeTreeBuilderStateMachine st = new NodeTreeBuilderStateMachine(); while (st.state != NodeTreeBuilderStateMachine.BuilderState.END) { st.state.parser(st, xpath.toCharArray()); } return st.context.xpathTr; } }
XpathEvaluator { public List<Node> getXpathNodeTree(String xpath) { NodeTreeBuilderStateMachine st = new NodeTreeBuilderStateMachine(); while (st.state != NodeTreeBuilderStateMachine.BuilderState.END) { st.state.parser(st, xpath.toCharArray()); } return st.context.xpathTr; } XpathEvaluator(); }
XpathEvaluator { public List<Node> getXpathNodeTree(String xpath) { NodeTreeBuilderStateMachine st = new NodeTreeBuilderStateMachine(); while (st.state != NodeTreeBuilderStateMachine.BuilderState.END) { st.state.parser(st, xpath.toCharArray()); } return st.context.xpathTr; } XpathEvaluator(); List<JXNode> xpathParser(String xpath, Elements root); List<Node> getXpathNodeTree(String xpath); List<JXNode> evaluate(String xpath, Elements root); Element filter(Element e, Node node); Elements getAxisScopeEls(String axis, Element e); Object callFunc(String funcname, Elements context); Object callFilterFunc(String funcname, Element el); int getElIndex(Element e); }
XpathEvaluator { public List<Node> getXpathNodeTree(String xpath) { NodeTreeBuilderStateMachine st = new NodeTreeBuilderStateMachine(); while (st.state != NodeTreeBuilderStateMachine.BuilderState.END) { st.state.parser(st, xpath.toCharArray()); } return st.context.xpathTr; } XpathEvaluator(); List<JXNode> xpathParser(String xpath, Elements root); List<Node> getXpathNodeTree(String xpath); List<JXNode> evaluate(String xpath, Elements root); Element filter(Element e, Node node); Elements getAxisScopeEls(String axis, Element e); Object callFunc(String funcname, Elements context); Object callFilterFunc(String funcname, Element el); int getElIndex(Element e);  }