org.exist.xquery.functions.util
Class Eval

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.BasicFunction
                  extended by org.exist.xquery.functions.util.Eval
All Implemented Interfaces:
CompiledXQuery, Expression, RewritableExpression, org.xmldb.api.base.CompiledExpression

public class Eval
extends BasicFunction


Field Summary
protected static FunctionParameterSequenceType CACHE_FLAG
           
protected static FunctionParameterSequenceType CONTEXT_ARGUMENT
           
protected static FunctionParameterSequenceType EVAL_ARGUMENT
           
protected static FunctionParameterSequenceType EVAL_CONTEXT_ITEM
           
protected static FunctionParameterSequenceType EXTERNAL_VARIABLE
           
protected static FunctionParameterSequenceType INLINE_CONTEXT
           
protected static FunctionReturnSequenceType RETURN_ITEM_TYPE
           
protected static FunctionReturnSequenceType RETURN_NODE_TYPE
           
protected static FunctionReturnSequenceType RETURN_THREADID_TYPE
           
static FunctionSignature[] signatures
           
 
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
Eval(XQueryContext context, FunctionSignature signature)
           
 
Method Summary
 Sequence eval(Sequence[] args, Sequence contextSequence)
          Process the function.
 
Methods inherited from class org.exist.xquery.BasicFunction
eval
 
Methods inherited from class org.exist.xquery.Function
accept, analyze, checkArgument, checkArguments, createFunction, dump, getArgument, getArgumentCount, getArguments, getCardinality, getDependencies, 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, resetState, 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.CompiledXQuery
eval, getSource
 

Field Detail

EVAL_CONTEXT_ITEM

protected static final FunctionParameterSequenceType EVAL_CONTEXT_ITEM

EVAL_ARGUMENT

protected static final FunctionParameterSequenceType EVAL_ARGUMENT

INLINE_CONTEXT

protected static final FunctionParameterSequenceType INLINE_CONTEXT

CONTEXT_ARGUMENT

protected static final FunctionParameterSequenceType CONTEXT_ARGUMENT

CACHE_FLAG

protected static final FunctionParameterSequenceType CACHE_FLAG

EXTERNAL_VARIABLE

protected static final FunctionParameterSequenceType EXTERNAL_VARIABLE

RETURN_NODE_TYPE

protected static final FunctionReturnSequenceType RETURN_NODE_TYPE

RETURN_THREADID_TYPE

protected static final FunctionReturnSequenceType RETURN_THREADID_TYPE

RETURN_ITEM_TYPE

protected static final FunctionReturnSequenceType RETURN_ITEM_TYPE

signatures

public static final FunctionSignature[] signatures
Constructor Detail

Eval

public Eval(XQueryContext context,
            FunctionSignature signature)
Parameters:
context -
signature -
Method Detail

eval

public Sequence eval(Sequence[] args,
                     Sequence contextSequence)
              throws XPathException
Description copied from class: BasicFunction
Process the function. All arguments are passed in the array args. The number of arguments, their type and cardinality have already been checked to match the function signature.

Specified by:
eval in class BasicFunction
Throws:
XPathException