net.sf.saxon.functions

Class Available

public class Available extends SystemFunction

This class supports the XSLT element-available and function-available functions.
Field Summary
static intELEMENT_AVAILABLE
static intFUNCTION_AVAILABLE
static intTYPE_AVAILABLE
Method Summary
voidcheckArguments(ExpressionVisitor visitor)
ItemevaluateItem(XPathContext context)
Run-time evaluation.
ExpressionpreEvaluate(ExpressionVisitor visitor)
preEvaluate: this method uses the static context to do early evaluation of the function if the argument is known (which is the normal case)

Field Detail

ELEMENT_AVAILABLE

public static final int ELEMENT_AVAILABLE

FUNCTION_AVAILABLE

public static final int FUNCTION_AVAILABLE

TYPE_AVAILABLE

public static final int TYPE_AVAILABLE

Method Detail

checkArguments

public void checkArguments(ExpressionVisitor visitor)

evaluateItem

public Item evaluateItem(XPathContext context)
Run-time evaluation. This is the only thing in the spec that requires information about in-scope functions to be available at run-time. However, we keep it because it's handy for some other things such as saxon:evaluate().

preEvaluate

public Expression preEvaluate(ExpressionVisitor visitor)
preEvaluate: this method uses the static context to do early evaluation of the function if the argument is known (which is the normal case)

Parameters: visitor the expression visitor