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, toShortString, toString, typeCheckCaller
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheck
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
argumentArray, getGenre
getLength, head, isStreamed, itemAt, iterate, iterator, reduce, subsequence, toGroundedValue
asIterable, materialize
makeRepeatable
public 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)
SystemFunction
getCardinality
in class SystemFunction
arguments
- the actual arguments suppliedpublic Expression makeFunctionCall(Expression... arguments)
SystemFunction
makeFunctionCall
in class SystemFunction
arguments
- 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 Callable
call
in interface Function
context
- 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 SystemFunction
arguments
- the expressions supplied as arguments to the functionCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.