|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.expr.ComputedExpression
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.functions.SystemFunction |
---|
operation |
Fields inherited from class net.sf.saxon.expr.FunctionCall |
---|
argument |
Fields inherited from class net.sf.saxon.expr.ComputedExpression |
---|
lineNumber, NO_ARGUMENTS, staticProperties |
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 baseURL,
XPathContext c)
Supporting routine to load one external document given a URI (href) and a baseURI |
Object |
map(Item item,
XPathContext context,
Object dinfo)
Implement the MappingFunction interface: called from the MappingIterator |
Expression |
preEvaluate(StaticContext env)
preEvaluate: this method suppresses compile-time evaluation by doing nothing |
Methods inherited from class net.sf.saxon.functions.SystemFunction |
---|
addContextDocumentArgument, display, getDetails, getItemType, getName, getRequiredType, main, makeSystemFunction, useContextItemAsDefault |
Methods inherited from class net.sf.saxon.expr.FunctionCall |
---|
analyze, checkArgumentCount, getNumberOfArguments, getSubExpressions, promote, setArguments, simplify, simplifyArguments |
Methods inherited from class net.sf.saxon.expr.ComputedExpression |
---|
computeDependencies, computeStaticProperties, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getDependencies, getIntrinsicDependencies, getLineNumber, getSpecialProperties, markTailFunctionCalls, setLineNumber, typeError |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, 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 ComputedExpression
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 evaluation
XPathException
- if any dynamic error occurs evaluating the
expressionpublic Object map(Item item, XPathContext context, Object dinfo) throws XPathException
map
in interface MappingFunction
item
- The item to be mapped.
If context is supplied, this must be the same as context.currentItem().context
- The processing context. This is supplied only for mapping constructs that
set the context node, position, and size. Otherwise it is null.dinfo
- Arbitrary information supplied by the creator of the MappingIterator. It must be
read-only and immutable for the duration of the iteration.
XPathException
public static NodeInfo makeDoc(String href, String baseURL, XPathContext c) throws XPathException
XPathException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |