|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.expr.Expression
net.sf.saxon.expr.FunctionCall
net.sf.saxon.functions.SystemFunction
net.sf.saxon.functions.Document
public class Document
Implements the XSLT document() function
Field Summary |
---|
Fields inherited from class net.sf.saxon.expr.Expression |
---|
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
Constructor Summary | |
---|---|
Document()
|
Method Summary | |
---|---|
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(String href,
String baseURI,
XPathContext c,
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(String href,
String baseURL,
XPathContext c,
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. |
Methods inherited from class net.sf.saxon.functions.SystemFunction |
---|
display, getDetails, getErrorCodeForTypeErrors, getItemType, main, makeSystemFunction, optimize, setDetails |
Methods inherited from class net.sf.saxon.expr.FunctionCall |
---|
getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplify, typeCheck |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Document()
Method Detail |
---|
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 SequenceIterable
iterate
in class Expression
context
- supplies the context for evaluation
XPathException
- if any dynamic error occurs evaluating the
expressionpublic static NodeInfo makeDoc(String href, String baseURI, XPathContext c, SourceLocator locator) throws XPathException
XPathException
public void sendDocuments(XPathContext context, Receiver out) throws XPathException
XPathException
public static void sendDoc(String href, String baseURL, XPathContext c, SourceLocator locator, Receiver out) throws XPathException
XPathException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |