java.io.Serializable
, javax.xml.transform.SourceLocator
, Container
, Expression
, XSLTFunction
, InstructionInfoProvider
public class Document extends SystemFunction implements XSLTFunction
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
argument
operation
Constructor | Description |
---|---|
Document() |
Modifier and Type | Method | Description |
---|---|---|
void |
checkArguments(StaticContext env) |
Method called during static type checking
|
int |
computeCardinality() |
Determine the static cardinality
|
int |
computeSpecialProperties() |
Get the static properties of this expression (other than its type).
|
SequenceIterator |
iterate(XPathContext context) |
iterate() handles evaluation of the function:
it returns a sequence of Document nodes
|
static NodeInfo |
makeDoc(java.lang.String href,
java.lang.String baseURL,
XPathContext c,
javax.xml.transform.SourceLocator locator) |
Supporting routine to load one external document given a URI (href) and a baseURI
|
Expression |
preEvaluate(StaticContext env) |
preEvaluate: this method suppresses compile-time evaluation by doing nothing
|
static void |
sendDoc(java.lang.String href,
java.lang.String baseURL,
XPathContext c,
javax.xml.transform.SourceLocator locator,
Receiver out) |
Supporting routine to push one external document given a URI (href) and a baseURI to a given Receiver.
|
void |
sendDocuments(XPathContext context,
Receiver out) |
Copy the documents identified by this expression to a given Receiver.
|
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeError
checkArgumentCount, getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheck
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addContextDocumentArgument, display, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, main, makeSystemFunction, setDetails, useContextItemAsDefault
public void checkArguments(StaticContext env) throws XPathException
SystemFunction
checkArguments
in class SystemFunction
XPathException
public int computeCardinality()
computeCardinality
in class SystemFunction
public int computeSpecialProperties()
computeSpecialProperties
in class SystemFunction
public Expression preEvaluate(StaticContext env)
preEvaluate
in class FunctionCall
public SequenceIterator iterate(XPathContext context) throws XPathException
iterate
in interface Expression
iterate
in class ComputedExpression
context
- supplies the context for evaluationXPathException
- if any dynamic error occurs evaluating the
expressionpublic static NodeInfo makeDoc(java.lang.String href, java.lang.String baseURL, XPathContext c, javax.xml.transform.SourceLocator locator) throws XPathException
XPathException
public void sendDocuments(XPathContext context, Receiver out) throws XPathException
XPathException
public static void sendDoc(java.lang.String href, java.lang.String baseURL, XPathContext c, javax.xml.transform.SourceLocator locator, Receiver out) throws XPathException
XPathException