net.sf.saxon.functions

Class Root

public class Root extends SystemFunction

Implement the XPath 2.0 root() function
Method Summary
intcomputeSpecialProperties()
Get the static properties of this expression (other than its type).
ItemevaluateItem(XPathContext c)
Evaluate in a general context
Expressionsimplify(StaticContext env)
Simplify and validate.

Method Detail

computeSpecialProperties

public int computeSpecialProperties()
Get the static properties of this expression (other than its type). The result is bit-significant. 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

simplify

public Expression simplify(StaticContext env)
Simplify and validate.