com.icl.saxon.functions
Class Document
java.lang.Object
|
+--com.icl.saxon.expr.Expression
|
+--com.icl.saxon.expr.Function
|
+--com.icl.saxon.functions.Document
- public class Document
- extends Function
Methods inherited from class com.icl.saxon.expr.Expression |
containsReferences, enumerate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getStaticContext, isNumeric, isRelative, make, make, setStaticContext, usesCurrent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Document
public Document()
getName
public java.lang.String getName()
- Description copied from class:
Function
- Get the name of the function.
This method must be implemented in all subclasses.
- Overrides:
getName
in class Function
- Following copied from class:
com.icl.saxon.expr.Function
- Returns:
- the name of the function, as used in XSL expressions, but excluding
its namespace prefix
getDataType
public int getDataType()
- Determine the data type of the expression, if possible
- Overrides:
getDataType
in class Expression
- Returns:
- Value.NODESET
getIntrinsicDependencies
public int getIntrinsicDependencies()
- Determine which aspects of the context the expression depends on. The result is
a bitwise-or'ed value composed from constants such as Context.VARIABLES and
Context.CURRENT_NODE
- Overrides:
getIntrinsicDependencies
in class Function
reduceIntrinsic
protected Expression reduceIntrinsic(int dependencies,
Context context)
throws org.xml.sax.SAXException
- Remove intrinsic dependencies.
- Overrides:
reduceIntrinsic
in class Function
eval
public Value eval(java.util.Vector args,
Context context)
throws org.xml.sax.SAXException
- eval() handles evaluation of the function
- Overrides:
eval
in class Function
- Following copied from class:
com.icl.saxon.expr.Function
- Parameters:
arguments
- A Vector, each of whose elements is a Value containing the value of a
supplied argument to the function.context
- The context in which the function is to be evaluated- Returns:
- a Value representing the result of the function. This must be of the data type
corresponding to the result of getType().
- Throws:
org.xml.sax.SAXException
- if the function cannot be evaluated.
getDocuments
public NodeSetValue getDocuments(Value arg0,
NodeSetValue arg1,
java.lang.String styleSheetURL,
Context context)
throws org.xml.sax.SAXException
- getDocuments() evaluates the function.
- Parameters:
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 context- Returns:
- a NodeSetValue containing the root nodes of the selected documents