org.exist.xquery
Class Predicate
java.lang.Object
org.exist.xquery.AbstractExpression
org.exist.xquery.PathExpr
org.exist.xquery.Predicate
- All Implemented Interfaces:
- CompiledXQuery, Expression
- public class Predicate
- extends PathExpr
Handles predicate expressions.
- Author:
- Wolfgang Meier
| Methods inherited from class org.exist.xquery.PathExpr |
add, add, addPath, addPredicate, dump, dump, eval, getASTNode, getContext, getDocumentSet, getExpression, getLastExpression, getLength, getLiteralValue, getSource, isValid, replaceLastExpression, reset, returnsType, setContext, setPrimaryAxis, setSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Predicate
public Predicate(XQueryContext context)
getDependencies
public int getDependencies()
- Description copied from class:
AbstractExpression
- Returns
Dependency.DEFAULT_DEPENDENCIES.
- Specified by:
getDependencies in interface Expression- Overrides:
getDependencies in class PathExpr
analyze
public void analyze(AnalyzeContextInfo contextInfo)
throws XPathException
- Description copied from interface:
Expression
- Statically analyze the expression and its subexpressions.
During the static analysis phase, the query engine can detect
unknown variables and some type errors.
- Specified by:
analyze in interface Expression- Overrides:
analyze in class PathExpr
- Throws:
XPathException
evalPredicate
public Sequence evalPredicate(Sequence outerSequence,
Sequence contextSequence,
int mode)
throws XPathException
- Throws:
XPathException
setContextDocSet
public void setContextDocSet(DocumentSet contextSet)
- Specified by:
setContextDocSet in interface Expression- Overrides:
setContextDocSet in class AbstractExpression
resetState
public void resetState()
- Description copied from interface:
Expression
- Called to inform an expression that it should reset to its initial state.
All cached data in the expression object should be dropped. For example,
the document() function calls this method whenever the input document
set has changed.
- Specified by:
resetState in interface Expression- Overrides:
resetState in class PathExpr
<oXygen/>
XML Editor
provides support for editing and debugging XQuery
expressions against the eXist XML Database.