com.icl.saxon.functions

Class Id

public class Id extends Function

Method Summary
Valueevaluate(Context context)
Evaluate in a general context
NodeSetValueevaluateAsNodeSet(Context context)
Evaluate in a context where a node-set is required
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 dependencies, Context context)
Remove specified dependencies.
Expressionsimplify()
Simplify and validate

Method Detail

evaluate

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

evaluateAsNodeSet

public NodeSetValue evaluateAsNodeSet(Context context)
Evaluate in a context where a node-set is required

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 dependencies, Context context)
Remove specified dependencies.

simplify

public Expression simplify()
Simplify and validate