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,
java.lang.CharSequence flags,
XPathContext context)
Interface used by compiled bytecode
|
java.lang.String |
getCompilerName()
Get the (local) name of a class that can be used to generate bytecode for this
system function
|
copy, getRegularExpression, getStaticRegex, makeFunctionCall, makeOptimizedFunctionCalldependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamerName, importAttributes, isTrustedResultType, makeCall, makeFunction, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, typeCheckCalleratomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheckgetLength, head, isStreamed, itemAt, iterate, reduce, subsequenceclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, head, itemAt, reduce, subsequenceprotected boolean allowRegexMatchingEmptyString()
allowRegexMatchingEmptyString in class RegexFunctionpublic boolean evalMatches(AtomicValue input, AtomicValue regex, java.lang.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 java.lang.String getCompilerName()
SystemFunctiongetCompilerName in class SystemFunctionCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.