lux.xpath
Class Predicate
java.lang.Object
lux.xpath.AbstractExpression
lux.xpath.Predicate
- All Implemented Interfaces:
- Visitable
public class Predicate
- extends AbstractExpression
| Methods inherited from class lux.xpath.AbstractExpression |
acceptSubs, appendSub, getBindingContext, getLastContextStep, getSubs, getSuper, getTail, getType, isAbsolute, replaceRoot, setSubs, toString |
Predicate
public Predicate(AbstractExpression base,
AbstractExpression filter)
toString
public void toString(StringBuilder buf)
- Description copied from class:
AbstractExpression
- Each subclass must implement the toString(StringBuilder) method by
rendering itself as a syntatically valid XPath/XQuery expression in
the given buffer.
- Specified by:
toString in class AbstractExpression
getBase
public final AbstractExpression getBase()
getFilter
public final AbstractExpression getFilter()
setFilter
public final void setFilter(AbstractExpression filter)
accept
public AbstractExpression accept(ExpressionVisitor visitor)
getPrecedence
public int getPrecedence()
- Specified by:
getPrecedence in class AbstractExpression
- Returns:
- 19
getRoot
public AbstractExpression getRoot()
- Overrides:
getRoot in class AbstractExpression
- Returns:
- the root of this expression: this will either be a Root(/), a function returning document nodes,
or null.
isDocumentOrdered
public boolean isDocumentOrdered()
- Overrides:
isDocumentOrdered in class AbstractExpression
- Returns:
- whether this expression is proven to return results in document order. This method
returns true iff all its subs return true, or it has none. Warning: incorrect results may occur if
document-ordering is falsely asserted.
Copyright © 2013. All Rights Reserved.