public String getAxisName() { return Axis.lookup(getAxis()); }
public String toString() { return getIterableAxis() + " " + super.toString(); }
public String getText() { return getAxisName() + "::text()" + super.getText(); }
if ( ! unique.contains( eachAxisNode ) ) if ( matches( eachAxisNode, support ) ) newNodeSet.addAll(getPredicateSet().evaluatePredicates( interimSet, support )); interimSet.clear();
protected static LocationPathPattern convertDefaultStep(LocationPathPattern path, DefaultStep step) throws JaxenException { List predicates = step.getPredicates(); if ( ! predicates.isEmpty() ) { FilterExpr filter = new DefaultFilterExpr(new PredicateSet()); for ( Iterator iter = predicates.iterator(); iter.hasNext(); ) { filter.addPredicate( (Predicate) iter.next() ); } path.addFilter( filter ); } return path; }
public String getText() { return getAxisName() + "::node()" + super.getText(); }
public Iterator axisIterator(Object contextNode, ContextSupport support) throws UnsupportedAxisException { return getIterableAxis().iterator(contextNode, support); }
public String getText() { StringBuffer buf = new StringBuffer(); buf.append(getAxisName()); buf.append("::processing-instruction("); String name = getName(); if (name != null && name.length() != 0) { buf.append("'"); buf.append(name); buf.append("'"); } buf.append(")"); buf.append(super.getText()); return buf.toString(); }
/** * Gets the step as a fully defined XPath. * * @return the full XPath for this step */ public String getText() { StringBuffer buf = new StringBuffer(64); buf.append(getAxisName()).append("::"); if (getPrefix() != null && getPrefix().length() > 0) { buf.append(getPrefix()).append(':'); } return buf.append(getLocalName()).append(super.getText()).toString(); }