net.sf.saxon.functions

Class Current

public class Current extends SystemFunction

Implement the XSLT current() function
Field Summary
static StructuredQNameFN_CURRENT
The name of the Current function
Method Summary
intcomputeSpecialProperties()
Get the static properties of this expression (other than its type).
ItemevaluateItem(XPathContext c)
Evaluate in a general context
intgetIntrinsicDependencies()
Determine the dependencies
ExpressionpreEvaluate(ExpressionVisitor visitor)
preEvaluate: this method suppresses compile-time evaluation by doing nothing (because the value of the expression depends on the runtime context)

Field Detail

FN_CURRENT

public static StructuredQName FN_CURRENT
The name of the Current function

Method Detail

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 property bit is set, it is true, but if it is unset, the value is unknown.

evaluateItem

public Item evaluateItem(XPathContext c)
Evaluate in a general context

getIntrinsicDependencies

public int getIntrinsicDependencies()
Determine the dependencies

preEvaluate

public Expression preEvaluate(ExpressionVisitor visitor)
preEvaluate: this method suppresses compile-time evaluation by doing nothing (because the value of the expression depends on the runtime context)

Parameters: visitor an expression visitor