net.sf.saxon.functions

Class KeyFn

public class KeyFn extends SystemFunction implements XSLTFunction

Method Summary
voidcheckArguments(StaticContext env)
intcomputeSpecialProperties()
Get the static properties of this expression (other than its type).
static KeyFninternalKeyCall(NamePool pool, int fingerprint, String name, Expression value, Expression doc)
Non-standard constructor to create an internal call on key() with a known key fingerprint
SequenceIteratoriterate(XPathContext context)
Enumerate the results of the expression
ExpressionpreEvaluate(StaticContext env)
preEvaluate: this method suppresses compile-time evaluation by doing nothing
Expressionsimplify(StaticContext env)
Simplify: add a third implicit argument, the context document

Method Detail

checkArguments

public void checkArguments(StaticContext env)

computeSpecialProperties

public int computeSpecialProperties()
Get the static properties of this expression (other than its type). The result is bit-signficant. These properties are used for optimizations. In general, if a property bit is set, it is true, but if it is unset, the value is unknown.

internalKeyCall

public static KeyFn internalKeyCall(NamePool pool, int fingerprint, String name, Expression value, Expression doc)
Non-standard constructor to create an internal call on key() with a known key fingerprint

iterate

public SequenceIterator iterate(XPathContext context)
Enumerate the results of the expression

preEvaluate

public Expression preEvaluate(StaticContext env)
preEvaluate: this method suppresses compile-time evaluation by doing nothing

simplify

public Expression simplify(StaticContext env)
Simplify: add a third implicit argument, the context document