com.icl.saxon.functions

Class Current

public class Current extends Function

Method Summary
Valueevaluate(Context c)
Evaluate in a general context
NodeSetValueevaluateAsNodeSet(Context c)
Evaluate the function in a node-set context
intgetDataType()
Determine the data type of the expression
intgetDependencies()
Determine the dependencies
StringgetName()
Function name (for diagnostics)
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 c)
Reduce the dependencies
Expressionsimplify()
Simplify and validate.

Method Detail

evaluate

public Value evaluate(Context c)
Evaluate in a general context

evaluateAsNodeSet

public NodeSetValue evaluateAsNodeSet(Context c)
Evaluate the function in a node-set context

getDataType

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

Returns: Value.NODESET

getDependencies

public int getDependencies()
Determine the dependencies

getName

public String getName()
Function name (for diagnostics)

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 c)
Reduce the dependencies

simplify

public Expression simplify()
Simplify and validate.