org.exist.xquery.functions.text
Class AbstractMatchFunction

java.lang.Object
  extended by org.exist.xquery.AbstractExpression
      extended by org.exist.xquery.PathExpr
          extended by org.exist.xquery.Function
              extended by org.exist.xquery.functions.fn.DeprecatedExtRegexp
                  extended by org.exist.xquery.functions.text.AbstractMatchFunction
All Implemented Interfaces:
CompiledXQuery, Expression, Optimizable, RewritableExpression, org.xmldb.api.base.CompiledExpression
Direct Known Subclasses:
FuzzyMatchAll

public abstract class AbstractMatchFunction
extends DeprecatedExtRegexp


Field Summary
 
Fields inherited from class org.exist.xquery.functions.fn.DeprecatedExtRegexp
axis, cached, contextQName, logger, optimizeSelf, preselectResult, REGEX_PARAM, RETURN_TYPE, signature, SOURCE_PARAM, type
 
Fields inherited from class org.exist.xquery.Function
BUILTIN_FUNCTION_NS, mySignature
 
Fields inherited from class org.exist.xquery.PathExpr
inPredicate, keepVirtual, LOG, staticContext, steps
 
Fields inherited from class org.exist.xquery.AbstractExpression
column, context, contextDocSet, contextId, line, unordered
 
Fields inherited from interface org.exist.xquery.Expression
DOT_TEST, EXPRESSION_ID_INVALID, IGNORE_CONTEXT, IN_NODE_CONSTRUCTOR, IN_PREDICATE, IN_UPDATE, IN_WHERE_CLAUSE, NEED_INDEX_INFO, NO_CONTEXT_ID, NON_STREAMABLE, POSITIONAL_PREDICATE, SINGLE_STEP_EXECUTION, UNORDERED, USE_TREE_TRAVERSAL
 
Constructor Summary
AbstractMatchFunction(XQueryContext context, int type, FunctionSignature signature)
           
 
Method Summary
abstract  Sequence evalQuery(NodeSet nodes, java.util.List<java.lang.String> terms)
           
protected  java.util.List<java.lang.String> getSearchTerms(XQueryContext context, Sequence contextSequence)
           
 NodeSet mergeResults(NodeSet[] hits)
           
 
Methods inherited from class org.exist.xquery.functions.fn.DeprecatedExtRegexp
analyze, canOptimize, eval, getDependencies, getMatches, getOptimizeAxis, getSearchTerms, getTermDependencies, optimizeOnChild, optimizeOnSelf, preSelect, resetState, translateRegexp
 
Methods inherited from class org.exist.xquery.Function
accept, checkArgument, checkArguments, createFunction, dump, getArgument, getArgumentCount, getArguments, getCardinality, getName, getParent, getParentModule, getSignature, isCalledAs, returnsType, setArguments, setParent, setPrimaryAxis, simplify, toString
 
Methods inherited from class org.exist.xquery.PathExpr
add, add, addPath, addPredicate, allowMixNodesInReturn, dump, getColumn, getContext, getDocumentSet, getExpression, getLastExpression, getLength, getLine, getLiteralValue, getPrimaryAxis, getSubExpression, getSubExpressionCount, isValid, replaceExpression, replaceLastExpression, reset, setContext, setUseStaticContext
 
Methods inherited from class org.exist.xquery.AbstractExpression
eval, getContextDocSet, getContextId, getExpressionId, getSource, match, needsReset, setASTNode, setContextDocSet, setContextId, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.exist.xquery.Expression
accept, allowMixNodesInReturn, dump, eval, getCardinality, getColumn, getContext, getContextDocSet, getContextId, getExpressionId, getLine, getParent, getPrimaryAxis, getSource, getSubExpression, getSubExpressionCount, match, needsReset, returnsType, setASTNode, setContextDocSet, setContextId, setLocation, setPrimaryAxis, simplify
 
Methods inherited from interface org.exist.xquery.CompiledXQuery
eval, getSource
 

Constructor Detail

AbstractMatchFunction

public AbstractMatchFunction(XQueryContext context,
                             int type,
                             FunctionSignature signature)
Method Detail

evalQuery

public abstract Sequence evalQuery(NodeSet nodes,
                                   java.util.List<java.lang.String> terms)
                            throws XPathException
Overrides:
evalQuery in class DeprecatedExtRegexp
Throws:
XPathException

mergeResults

public NodeSet mergeResults(NodeSet[] hits)

getSearchTerms

protected java.util.List<java.lang.String> getSearchTerms(XQueryContext context,
                                                          Sequence contextSequence)
                                                   throws XPathException
Throws:
XPathException