net.sf.saxon.functions

Class CompileTimeFunction

public abstract class CompileTimeFunction extends SystemFunction

Abtract class representing a function call that is always rewritten at compile-time: it can never be executed
Method Summary
ItemevaluateItem(XPathContext c)
Evaluate as a single item
SequenceIteratoriterate(XPathContext c)
Iterate over the results of the function
ExpressionpreEvaluate(ExpressionVisitor visitor)
preEvaluate: this method suppresses compile-time evaluation by doing nothing. (this is because the default implementation of preEvaluate() calls evaluate() which is not available for these functions)

Method Detail

evaluateItem

public final Item evaluateItem(XPathContext c)
Evaluate as a single item

iterate

public final SequenceIterator iterate(XPathContext c)
Iterate over the results of the function

preEvaluate

public Expression preEvaluate(ExpressionVisitor visitor)
preEvaluate: this method suppresses compile-time evaluation by doing nothing. (this is because the default implementation of preEvaluate() calls evaluate() which is not available for these functions)

Parameters: visitor an expression visitor