public class Doc extends SystemFunction implements Callable
| Constructor and Description |
|---|
Doc() |
| Modifier and Type | Method and Description |
|---|---|
ZeroOrOne<NodeInfo> |
call(XPathContext context,
Sequence[] arguments)
Evaluate the expression
|
int |
getCardinality(Expression[] arguments)
Get the cardinality, given knowledge of the actual arguments
|
ParseOptions |
getParseOptions()
Get the parsing options set via setParseOptions()
|
int |
getSpecialProperties(Expression[] arguments)
Get the static properties of this expression (other than its type).
|
Expression |
makeFunctionCall(Expression... arguments)
Make an expression that either calls this function, or that is equivalent to a call
on this function
|
static Expression |
maybePreEvaluate(SystemFunction sf,
Expression[] arguments) |
void |
setParseOptions(ParseOptions parseOptions)
Set options to be used for the parsing operation.
|
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCompilerName, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getStaticBaseUriString, getStreamerName, importAttributes, isTrustedResultType, makeCall, makeFunction, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, typeCheckCalleratomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheckgetLength, head, isStreamed, itemAt, iterate, reduce, subsequenceclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, head, itemAt, reduce, subsequencepublic ParseOptions getParseOptions()
public void setParseOptions(ParseOptions parseOptions)
parseOptions - the parsing options to be used. Currently only affects the behaviour of the sendDocument()
method (used in streamed merging)public int getCardinality(Expression[] arguments)
SystemFunctiongetCardinality in class SystemFunctionarguments - the actual arguments suppliedpublic Expression makeFunctionCall(Expression... arguments)
SystemFunctionmakeFunctionCall in class SystemFunctionarguments - the supplied arguments to the function callpublic static Expression maybePreEvaluate(SystemFunction sf, Expression[] arguments)
public ZeroOrOne<NodeInfo> call(XPathContext context, Sequence[] arguments) throws XPathException
call in interface Callablecall in interface Functioncontext - the dynamic evaluation contextarguments - the values of the arguments, supplied as SequenceIteratorsXPathException - if a dynamic error occurs during the evaluation of the expressionpublic int getSpecialProperties(Expression[] arguments)
getSpecialProperties in class SystemFunctionarguments - Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.