|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.icl.saxon.expr.Expression com.icl.saxon.expr.Function com.icl.saxon.functions.Key
Field Summary |
Fields inherited from class com.icl.saxon.expr.Function |
argument |
Fields inherited from class com.icl.saxon.expr.Expression |
staticContext |
Constructor Summary | |
Key()
|
Method Summary | |
NodeEnumeration |
enumerate(Context context,
boolean sorted)
Enumerate the expression |
Value |
evaluate(Context context)
Evaluate the expression |
int |
getDataType()
Determine the data type of the expression |
int |
getDependencies()
Determine which aspects of the context the expression depends on. |
java.lang.String |
getName()
Get the name of the function. |
boolean |
isContextDocumentNodeSet()
Determine, in the case of an expression whose data type is Value.NODESET, whether all the nodes in the node-set are guaranteed to come from the same document as the context node. |
Expression |
reduce(int dep,
Context context)
Remove specified dependencies. |
Expression |
simplify()
Simplify and validate |
Methods inherited from class com.icl.saxon.expr.Function |
addArgument, checkArgumentCount, display, getNumberOfArguments |
Methods inherited from class com.icl.saxon.expr.Expression |
containsReferences, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getStaticContext, indent, make, outputStringValue, setStaticContext, usesCurrent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Key()
Method Detail |
public java.lang.String getName()
Function
getName
in class Function
public int getDataType()
getDataType
in class Expression
public boolean isContextDocumentNodeSet()
isContextDocumentNodeSet
in class Expression
public Expression simplify() throws XPathException
simplify
in class Expression
XPathException
public Value evaluate(Context context) throws XPathException
evaluate
in class Expression
context
- The context in which the expression is to be evaluated
XPathException
public NodeEnumeration enumerate(Context context, boolean sorted) throws XPathException
enumerate
in class Expression
context
- The context in which the expression is to be evaluatedsorted
- Indicates whether the nodes are required in document order. If
this is false, they may come in any order, but there will be no duplicates.
XPathException
- when the expression does not return a nodeset.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 evaluation
XPathException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |