public class Doc extends SystemFunction
Modifier and Type | Field and Description |
---|---|
static int |
DOC |
static int |
DOC_AVAILABLE |
operation
argument
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
Constructor and Description |
---|
Doc() |
Modifier and Type | Method and Description |
---|---|
void |
checkArguments(StaticContext env)
Method called during static type checking
|
int |
computeSpecialProperties()
Get the static properties of this expression (other than its type).
|
Item |
evaluateItem(XPathContext context)
Evaluate an expression as a single item.
|
Expression |
preEvaluate(StaticContext env)
preEvaluate: this method suppresses compile-time evaluation by doing nothing
|
void |
sendDocument(XPathContext context,
Receiver out)
Copy the document identified by this expression to a given Receiver.
|
addContextDocumentArgument, computeCardinality, display, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, main, makeSystemFunction, setDetails, useContextItemAsDefault
checkArgumentCount, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, promote, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheck
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, dynamicError, effectiveBooleanValue, evaluateAsString, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, iterate, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, suppressValidation, typeError, typeError
public static final int DOC
public static final int DOC_AVAILABLE
public void checkArguments(StaticContext env) throws XPathException
SystemFunction
checkArguments
in class SystemFunction
XPathException
public Expression preEvaluate(StaticContext env)
preEvaluate
in class FunctionCall
public Item evaluateItem(XPathContext context) throws XPathException
ComputedExpression
evaluateItem
in interface Expression
evaluateItem
in class ComputedExpression
context
- The context in which the expression is to be evaluatedXPathException
- if any dynamic error occurs evaluating the
expressionpublic int computeSpecialProperties()
computeSpecialProperties
in class SystemFunction
public void sendDocument(XPathContext context, Receiver out) throws XPathException
XPathException