public class Matches extends RegexFunction
Constructor and Description |
---|
Matches() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowRegexMatchingEmptyString() |
BooleanValue |
call(XPathContext context,
Sequence[] arguments)
Evaluate the expression
|
boolean |
evalMatches(AtomicValue input,
AtomicValue regex,
CharSequence flags,
XPathContext context)
Interface used by compiled bytecode
|
ExpressionCompiler |
getExpressionCompiler()
Return the compiler of the Matches expression
|
getRegularExpression, getStaticRegex, makeFunctionCall
equals, export, exportAttributes, getArity, getCardinality, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamingAdjunct, importAttributes, makeCall, makeFunction, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, typeCheckCaller
atomize, deepEquals, effectiveBooleanValue, getStringValue, getStringValueCS, isArray, isMap, optimize, simplify, typeCheck
getLength, head, itemAt, iterate, reduce, subsequence
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLength, head, itemAt, reduce, subsequence
protected boolean allowRegexMatchingEmptyString()
allowRegexMatchingEmptyString
in class RegexFunction
public boolean evalMatches(AtomicValue input, AtomicValue regex, CharSequence flags, XPathContext context) throws XPathException
input
- the value to be testedregex
- the regular expressionflags
- the flagscontext
- the dynamic contextXPathException
- if a dynamic error occurspublic BooleanValue call(XPathContext context, Sequence[] arguments) throws XPathException
context
- the dynamic evaluation contextarguments
- the values of the arguments, supplied as SequencesXPathException
- if a dynamic error occurs during the evaluation of the expressionpublic ExpressionCompiler getExpressionCompiler()
getExpressionCompiler
in class SystemFunction
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.