|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exist.xquery.AbstractExpression
org.exist.xquery.PathExpr
org.exist.xquery.Function
org.exist.xquery.functions.FunDocAvailable
Implements the XQuery's fn:doc-available() function.
| Field Summary | |
static FunctionSignature |
signature
|
| Fields inherited from class org.exist.xquery.Function |
BUILTIN_FUNCTION_NS, mySignature |
| Fields inherited from class org.exist.xquery.PathExpr |
inPredicate, keepVirtual, LOG, source, steps |
| Fields inherited from class org.exist.xquery.AbstractExpression |
context, contextDocSet, contextId |
| Fields inherited from interface org.exist.xquery.Expression |
EXPRESSION_ID_INVALID, IGNORE_CONTEXT, IN_PREDICATE, IN_UPDATE, IN_WHERE_CLAUSE, NO_CONTEXT_ID, SINGLE_STEP_EXECUTION |
| Constructor Summary | |
FunDocAvailable(XQueryContext context)
|
|
| Method Summary | |
Sequence |
eval(Sequence contextSequence,
Item contextItem)
Evaluate the expression represented by this object. |
int |
getDependencies()
Returns Dependency.DEFAULT_DEPENDENCIES. |
void |
resetState()
Called to inform an expression that it should reset to its initial state. |
| Methods inherited from class org.exist.xquery.Function |
analyze, checkArgument, checkArguments, createFunction, dump, getArgument, getArgumentCount, getArguments, getASTNode, getCardinality, getName, getParent, getSignature, isCalledAs, returnsType, setArguments, setASTNode, setParent, setPrimaryAxis, toString |
| Methods inherited from class org.exist.xquery.PathExpr |
add, add, addPath, addPredicate, dump, getContext, getDocumentSet, getExpression, getLastExpression, getLength, getLiteralValue, getSource, isValid, replaceLastExpression, reset, setContext, setSource |
| Methods inherited from class org.exist.xquery.AbstractExpression |
eval, getContextDocSet, getContextId, getExpressionId, setContextDocSet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.exist.xquery.CompiledXQuery |
eval |
| Field Detail |
public static final FunctionSignature signature
| Constructor Detail |
public FunDocAvailable(XQueryContext context)
| Method Detail |
public int getDependencies()
AbstractExpressionDependency.DEFAULT_DEPENDENCIES.
getDependencies in interface ExpressiongetDependencies in class FunctionFunction.getDependencies()
public Sequence eval(Sequence contextSequence,
Item contextItem)
throws XPathException
ExpressionDependency.CONTEXT_ITEM
bit is set in the bit field returned by Expression.getDependencies(), the eval method will
be called once for every item in the context sequence. The contextItem
parameter will be set to the current item. Otherwise, the eval method will only be called
once for the whole context sequence and contextItem will be null.
eXist tries to process the entire context set in one, single step whenever
possible. Thus, most classes only expect context to contain a list of
nodes which represents the current context of the expression.
The position() function in XPath is an example for an expression,
which requires both, context sequence and context item to be set.
The context sequence might be a node set, a sequence of atomic values or a single
node or atomic value.
eval in interface Expressioneval in class FunctionXPathExceptionorg.exist.xquery.Expression#eval(org.exist.dom.DocumentSet, org.exist.xquery.value.Sequence, org.exist.xquery.value.Item)public void resetState()
Expression
resetState in interface ExpressionresetState in class PathExprPathExpr.resetState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||