net.sf.saxon.functions

Class Replace

public class Replace extends SystemFunction

This class implements the replace() function for replacing substrings that match a regular expression
Method Summary
ItemevaluateItem(XPathContext c)
Evaluate the function in a string context
Expressionsimplify(StaticContext env)
Simplify and validate.

Method Detail

evaluateItem

public Item evaluateItem(XPathContext c)
Evaluate the function in a string context

simplify

public Expression simplify(StaticContext env)
Simplify and validate. This is a pure function so it can be simplified in advance if the arguments are known