| net.sf.saxon.functions.SystemFunction net.sf.saxon.functions.Matches
Matches | public class Matches extends SystemFunction (Code) | | This class implements the matches() function for regular expression matching
|
evaluateItem | public Item evaluateItem(XPathContext c) throws XPathException(Code) | | Evaluate the matches() function to give a Boolean value.
Parameters: c - The dynamic evaluation context the result as a BooleanValue, or null to indicate the empty sequence throws: XPathException - on an error |
setFlags | public static int setFlags(CharSequence inFlags) throws StaticError(Code) | | Set the Java flags from the supplied XPath flags.
Parameters: inFlags - the flags as a string, e.g. "im" the flags as a bit-significant integer throws: net.sf.saxon.trans.StaticError - if the supplied value is invalid |
tryToCompile | protected static Pattern tryToCompile(Expression[] args, int patternArg, int flagsArg) throws StaticError(Code) | | Try to precompile the arguments to the function. This method is shared by
the implementations of the three XPath functions matches(), replace(), and
tokenize().
Parameters: args - the supplied arguments to the function, as an array Parameters: patternArg - the position of the argument containing the regular expression Parameters: flagsArg - the position of the argument containing the flags the compiled regular expression, or null indicating that the informationis not available statically so it cannot be precompiled throws: net.sf.saxon.trans.StaticError - if any failure occurs, in particular, if the regularexpression is invalid |
Fields inherited from net.sf.saxon.functions.SystemFunction | protected int operation(Code)(Java Doc)
|
|
|