public class Doc extends SystemFunctionCall implements Callable
operationargumentEFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, WATCH_METHOD| Constructor and Description |
|---|
Doc() |
| Modifier and Type | Method and Description |
|---|---|
PathMap.PathMapNodeSet |
addToPathMap(PathMap pathMap,
PathMap.PathMapNodeSet pathMapNodeSet)
Add a representation of this expression to a PathMap.
|
ZeroOrOne<NodeInfo> |
call(XPathContext context,
Sequence[] arguments)
Evaluate the expression
|
void |
checkArguments(ExpressionVisitor visitor)
Method called during static type checking
|
int |
computeCardinality()
Determine the cardinality of the function.
|
int |
computeSpecialProperties()
Get the static properties of this expression (other than its type).
|
Expression |
copy()
Copy an expression.
|
boolean |
equals(Object o)
Determine whether two expressions are equivalent
|
NodeInfo |
evaluateItem(XPathContext context)
Evaluate the expression
|
ExpressionCompiler |
getExpressionCompiler()
Return the compiler of the Doc expression
|
ParseOptions |
getParseOptions()
Get the parsing options set via setParseOptions()
|
String |
getStaticBaseURI()
Get the static base URI of the expression
|
boolean |
isReadOnce()
Ask whether this document has been marked as being read once only.
|
Expression |
preEvaluate(ExpressionVisitor visitor)
preEvaluate: this method suppresses compile-time evaluation unless a configuration option has been
set to allow early evaluation.
|
void |
sendDocument(XPathContext context,
Receiver out)
Copy the document identified by this expression to a given Receiver.
|
void |
setBaseURI(String baseURI)
Set the static base URI
|
void |
setParseOptions(ParseOptions parseOptions)
Set options to be used for the parsing operation.
|
void |
setReadOnce(boolean once)
Indicate that the document will be read once only (or that it should be treated as if it
is read once only.
|
addContextDocumentArgument, addDocToPathMap, bindStaticContext, equalOrNull, getContextNode, getConvertingCallable, getDefaultArgumentNode, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getImplementationMethod, getItemType, getOperation, getRequiredType, makeSystemFunction, operands, optimize, setDetails, toShortString, useContextItemAsDefaultaddExternalFunctionCallToPathMap, checkArgumentCount, explain, getArguments, getDisplayName, getExpressionName, getFunctionName, getNumberOfArguments, hashCode, promote, replaceOperand, setArguments, setFunctionName, simplifyArguments, toString, typeCheckadoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, clearStreamabilityData, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluatePendingUpdates, explain, getCardinality, getColumnNumber, getConfiguration, getConstructType, getContainer, getDependencies, getEvaluationMethod, getHostLanguage, getIntegerBounds, getIntrinsicDependencies, getLineNumber, getLocationId, getObjectName, getPosture, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getStreamability, getStreamingAdjunct, getSweep, getSystemId, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isIdentical, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterate, iterateEvents, makeStreamingAdjunct, markTailFunctionCalls, operandList, process, resetLocalStaticProperties, setContainer, setEvaluationMethod, setFiltered, setFlattened, setLocationId, setPostureAndSweep, simplify, staticTypeCheck, suppressValidation, toPattern, toStreamingPattern, typeError, unorderedpublic void setReadOnce(boolean once)
once - true if this document is to be treated as being read once onlypublic boolean isReadOnce()
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 void checkArguments(ExpressionVisitor visitor) throws XPathException
SystemFunctionCallcheckArguments in class SystemFunctionCallvisitor - the expression visitorXPathException - if the arguments are incorrectpublic void setBaseURI(String baseURI)
baseURI - the base URIpublic String getStaticBaseURI()
public Expression preEvaluate(ExpressionVisitor visitor)
preEvaluate in class FunctionCallvisitor - an expression visitorpublic int computeCardinality()
SystemFunctionCallcomputeCardinality in class SystemFunctionCallStaticProperty.ALLOWS_ZERO_OR_ONE,
StaticProperty.EXACTLY_ONE, StaticProperty.ALLOWS_ONE_OR_MORE,
StaticProperty.ALLOWS_ZERO_OR_MOREpublic PathMap.PathMapNodeSet addToPathMap(PathMap pathMap, PathMap.PathMapNodeSet pathMapNodeSet)
addToPathMap in class ExpressionpathMap - the PathMap to which the expression should be addedpathMapNodeSet - the PathMapNodeSet to which the paths embodied in this expression should be addedpublic Expression copy()
copy in class SystemFunctionCallpublic boolean equals(Object o)
equals in class SystemFunctionCallpublic NodeInfo evaluateItem(XPathContext context) throws XPathException
evaluateItem in class Expressioncontext - the dynamic evaluation contextXPathExceptionpublic ZeroOrOne<NodeInfo> call(XPathContext context, Sequence[] arguments) throws XPathException
call in interface Callablecontext - the dynamic evaluation contextarguments - the values of the arguments, supplied as SequenceIteratorsXPathException - if a dynamic error occurs during the evaluation of the expressionpublic int computeSpecialProperties()
computeSpecialProperties in class SystemFunctionCallpublic void sendDocument(XPathContext context, Receiver out) throws XPathException
context - the XPath dynamic contextout - the destination to which the document will be sentXPathException - if a failure occurspublic ExpressionCompiler getExpressionCompiler()
getExpressionCompiler in class ExpressionCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.