NestedAxis extends AbstractAxis { public NestedAxis(final Axis parentAxis, final Axis childAxis) { super(parentAxis.getCursor()); mParentAxis = checkNotNull(parentAxis); mChildAxis = checkNotNull(childAxis); mIsFirst = true; } NestedAxis(final Axis parentAxis, final Axis childAxis); @Override void reset(final long nodeKey);  }
@Test public void testNestedAxisTest() throws SirixException { final XmlNodeReadOnlyTrx rtx = holder.getXmlNodeReadTrx(); rtx.moveToDocumentRoot(); final Axis childA = new FilterAxis<XmlNodeReadOnlyTrx>(new ChildAxis(rtx), new XmlNameFilter(rtx, "p:a")); final Axis childB = new FilterAxis<XmlNodeReadOnlyTrx>(new ChildAxis(rtx), new XmlNameFilter(rtx, "b")); final Axis text = new FilterAxis<XmlNodeReadOnlyTrx>(new ChildAxis(rtx), new TextFilter(rtx)); final Axis axis = new NestedAxis(new NestedAxis(childA, childB), text); AbsAxisTest.testIAxisConventions(axis, new long[] {6L, 12L}); }