net.sf.saxon.functions

Class CodepointsToString

public class CodepointsToString extends SystemFunction

This class supports the function codepoints-to-string
Method Summary
ItemevaluateItem(XPathContext c)
Evaluate
ExpressionpreEvaluate(ExpressionVisitor visitor)
Pre-evaluate a function at compile time.
static CharSequenceunicodeToString(SequenceIterator chars, XPathContext context)
Return the Unicode string corresponding to a given sequence of Unicode code values

Method Detail

evaluateItem

public Item evaluateItem(XPathContext c)
Evaluate

preEvaluate

public Expression preEvaluate(ExpressionVisitor visitor)
Pre-evaluate a function at compile time. Functions that do not allow pre-evaluation, or that need access to context information, can override this method.

Parameters: visitor an expression visitor

unicodeToString

public static CharSequence unicodeToString(SequenceIterator chars, XPathContext context)
Return the Unicode string corresponding to a given sequence of Unicode code values

Parameters: chars iterator delivering the characters as integer values context the evaluation context

Throws: net.sf.saxon.trans.XPathException if any of the integers is not the codepoint of a valid XML character