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, makeOptimizedFunctionCall
dependsOnContextItem, 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, typeCheckCaller
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheck
getLength, head, isStreamed, 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, 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()
SystemFunction
getCompilerName
in class SystemFunction
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.