org.exist.xquery.functions
Class ExtPhrase
java.lang.Object
org.exist.xquery.AbstractExpression
org.exist.xquery.PathExpr
org.exist.xquery.Function
org.exist.xquery.functions.ExtFulltext
org.exist.xquery.functions.ExtPhrase
- All Implemented Interfaces:
- CompiledXQuery, Expression, Optimizable, CompiledExpression
public class ExtPhrase
- extends ExtFulltext
phrase() function : search an exact phrase in a NodeSet
- Author:
- Bruno Chatel (March 30, 2005)
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, SINGLE_STEP_EXECUTION, USE_TREE_TRAVERSAL |
Methods inherited from class org.exist.xquery.functions.ExtFulltext |
accept, addTerm, analyze, canOptimize, eval, getDependencies, getOptimizeAxis, optimizeOnSelf, preSelect, resetState, returnsType, setContextDocSet, setPath |
Methods inherited from class org.exist.xquery.Function |
createFunction, getArgument, getArgumentCount, getArguments, getASTNode, getCardinality, getName, getParent, getSignature, isCalledAs, setArguments, setASTNode, setParent, setPrimaryAxis |
Methods inherited from class org.exist.xquery.PathExpr |
add, add, addPath, addPredicate, dump, getContext, getDocumentSet, getExpression, getLastExpression, getLength, getLiteralValue, getSource, isValid, replaceExpression, replaceLastExpression, reset, setContext, setSource |
ExtPhrase
public ExtPhrase(XQueryContext context)
- Parameters:
context
-
evalQuery
public Sequence evalQuery(String searchArg,
NodeSet nodes)
throws XPathException
- Parameters:
searchArg
- nodes
-
- Throws:
XPathException
dump
public void dump(ExpressionDumper dumper)
- Description copied from interface:
Expression
- Write a diagnostic dump of the expression to the passed
ExpressionDumper
.
- Specified by:
dump
in interface Expression
- Overrides:
dump
in class ExtFulltext
- Parameters:
dumper
- the expression dumper to write to
toString
public String toString()
- Overrides:
toString
in class ExtFulltext
Copyright (C) Wolfgang Meier. All rights reserved.