com.icl.saxon.functions

Class Key

public class Key extends Function

Method Summary
NodeEnumerationenumerate(Context context, boolean sorted)
Enumerate the expression
Valueevaluate(Context context)
Evaluate the expression
intgetDataType()
Determine the data type of the expression
intgetDependencies()
Determine which aspects of the context the expression depends on.
StringgetName()
booleanisContextDocumentNodeSet()
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.
Expressionreduce(int dep, Context context)
Remove specified dependencies.
Expressionsimplify()
Simplify and validate

Method Detail

enumerate

public NodeEnumeration enumerate(Context context, boolean sorted)
Enumerate the expression

evaluate

public Value evaluate(Context context)
Evaluate the expression

getDataType

public int getDataType()
Determine the data type of the expression

Returns: Value.NODESET

getDependencies

public int getDependencies()
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

getName

public String getName()

isContextDocumentNodeSet

public 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. Used for optimization.

reduce

public Expression reduce(int dep, Context context)
Remove specified dependencies.

simplify

public Expression simplify()
Simplify and validate