org.exist.xquery.functions
Class ExtPhrase

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.ExtFulltext
                  extended by 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)

Field Summary
 
Fields inherited from class org.exist.xquery.functions.ExtFulltext
signature
 
Fields inherited from class org.exist.xquery.Function
BUILTIN_FUNCTION_NS
 
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
 
Constructor Summary
ExtPhrase(XQueryContext context)
           
 
Method Summary
 void dump(ExpressionDumper dumper)
          Write a diagnostic dump of the expression to the passed ExpressionDumper.
 Sequence evalQuery(String searchArg, NodeSet nodes)
           
 String toString()
           
 
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
 
Methods inherited from class org.exist.xquery.AbstractExpression
eval, getContextDocSet, getContextId, getExpressionId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.exist.xquery.Expression
eval, getASTNode, getCardinality, getContextDocSet, getContextId, getExpressionId, setASTNode, setPrimaryAxis
 
Methods inherited from interface org.exist.xquery.CompiledXQuery
eval
 

Constructor Detail

ExtPhrase

public ExtPhrase(XQueryContext context)
Parameters:
context -
Method Detail

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.