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,
java.lang.String styleSheetURL,
Context context)
getDocuments() evaluates the function.
|
java.lang.String |
getName()
Get the name of the function.
|
Expression |
reduce(int dep,
Context context)
Remove dependencies.
|
Expression |
simplify()
Simplify and validate.
|
addArgument, checkArgumentCount, display, getNumberOfArgumentscontainsReferences, enumerate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getStaticContext, indent, isContextDocumentNodeSet, make, outputStringValue, setStaticContext, usesCurrentpublic java.lang.String getName()
Functionpublic int getDataType()
getDataType in class Expressionpublic Expression simplify() throws XPathException
simplify in class ExpressionXPathExceptionpublic Value evaluate(Context c) throws XPathException
evaluate in class Expressionc - The context in which the expression is to be evaluatedXPathExceptionpublic NodeSetValue getDocuments(Value arg0, NodeSetValue arg1, java.lang.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 contextXPathExceptionpublic int getDependencies()
getDependencies in class Expressionpublic Expression reduce(int dep, Context context) throws XPathException
reduce in class Expressiondep - The dependencies to be removed, e.g. Context.VARIABLEScontext - The context to be used for the partial evaluationXPathException