net.sf.saxon.functions
public class NormalizeSpace extends SystemFunction
Method Summary | |
---|---|
boolean | effectiveBooleanValue(XPathContext c)
Get the effective boolean value of the expression. |
Item | evaluateItem(XPathContext c)
Evaluate in a general context |
int | getIntrinsicDependencies()
Determine the intrinsic dependencies of an expression, that is, those which are not derived
from the dependencies of its subexpressions. |
Expression | preEvaluate(ExpressionVisitor visitor)
Pre-evaluate a function at compile time. |
Expression | typeCheck(ExpressionVisitor visitor, ItemType contextItemType) |
This method is implemented for normalize-space() because it is quite often used in a boolean context to test whether a value exists and is non-white, and because testing for the presence of non-white characters is a lot more efficient than constructing the normalized string, especially because of early-exit.
Parameters: c The context in which the expression is to be evaluated
Returns: the effective boolean value
Throws: net.sf.saxon.trans.XPathException if any dynamic error occurs evaluating the expression
Returns: a set of bit-significant flags identifying the "intrinsic" dependencies. The flags are documented in class net.sf.saxon.value.StaticProperty
Parameters: visitor an expression visitor