public List asList(Context context) throws JaxenException { Expr expr = getRootExpr(); Object value = expr.evaluate( context ); List result = DefaultExpr.convertToList( value ); return result; } }
public Step createCommentNodeStep( int axis ) throws JaxenException { IterableAxis iter = getIterableAxis( axis ); return new DefaultCommentNodeStep( iter, createPredicateSet() ); }
public String getText() { return "(" + getLHS().getText() + " " + getOperator() + " " + getRHS().getText() +")"; }
public String getText() { return getRootExpr().getText(); }
public Expr simplify() { this.predicates.simplify(); if ( this.expr != null ) { this.expr = this.expr.simplify(); } if ( this.predicates.getPredicates().size() == 0 ) { return getExpr(); } return this; }
public Object evaluate(Context context) throws JaxenException { Object results = getExpr().evaluate( context ); if ( results instanceof List ) { List newresults = getPredicateSet().evaluatePredicates( (List) results, context.getContextSupport() ); results = newresults; } return results; }
public void simplify() { setRootExpr( getRootExpr().simplify() ); }
public Step createAllNodeStep( int axis ) throws JaxenException { IterableAxis iter = getIterableAxis( axis ); return new DefaultAllNodeStep( iter, createPredicateSet() ); }
public Step createProcessingInstructionNodeStep( int axis, String piName ) throws JaxenException { IterableAxis iter = getIterableAxis( axis ); return new DefaultProcessingInstructionNodeStep( iter, piName, createPredicateSet() ); }
public Step createTextNodeStep( int axis ) throws JaxenException { IterableAxis iter = getIterableAxis( axis ); return new DefaultTextNodeStep( iter, createPredicateSet() ); }
public Step createNameStep( int axis, String prefix, String localName ) throws JaxenException { IterableAxis iter = getIterableAxis( axis ); return new DefaultNameStep( iter, prefix, localName, createPredicateSet() ); }
public FilterExpr createFilterExpr( Expr expr ) throws JaxenException { return new DefaultFilterExpr( expr, createPredicateSet() ); }
public String getText() { return getAxisName() + "::text()" + super.getText(); }
public String getText() { return getAxisName() + "::node()" + super.getText(); }