com.icl.saxon.functions
public class Document extends Function
staticContext
Constructor and Description |
---|
Document() |
Modifier and Type | Method and Description |
---|---|
Value |
evaluate(Context c)
evaluate() handles evaluation of the function
|
int |
getDataType()
Determine the data type of the expression
|
int |
getDependencies()
Determine which aspects of the context the expression depends on.
|
NodeSetValue |
getDocuments(Value arg0,
NodeSetValue arg1,
String styleSheetURL,
Context context)
getDocuments() evaluates the function.
|
String |
getName()
Get the name of the function.
|
Expression |
reduce(int dep,
Context context)
Remove dependencies.
|
Expression |
simplify()
Simplify and validate.
|
addArgument, checkArgumentCount, display, getNumberOfArguments
containsReferences, enumerate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getStaticContext, indent, isContextDocumentNodeSet, make, outputStringValue, setStaticContext, usesCurrent
public String getName()
Function
public int getDataType()
getDataType
in class Expression
public Expression simplify() throws XPathException
simplify
in class Expression
XPathException
public Value evaluate(Context c) throws XPathException
evaluate
in class Expression
c
- The context in which the expression is to be evaluatedXPathException
public NodeSetValue getDocuments(Value arg0, NodeSetValue arg1, String styleSheetURL, Context context) throws XPathException
arg0
- The value of the first argumentarg1
- The value of the second argument, if there is one; otherwise nullstyleSheetURL
- The URI of the node in the stylesheet containing the expression.
Needed only when the first argument is not a nodeset and the second argument is omitted.context
- The evaluation contextXPathException
public int getDependencies()
getDependencies
in class Expression
public Expression reduce(int dep, Context context) throws XPathException
reduce
in class Expression
dep
- The dependencies to be removed, e.g. Context.VARIABLEScontext
- The context to be used for the partial evaluationXPathException