public class Evaluate extends SystemFunction
Modifier and Type | Class and Description |
---|---|
static class |
Evaluate.PreparedExpression
Inner class PreparedExpression represents a compiled XPath expression together
with the standard variables $p1 ..
|
Modifier and Type | Field and Description |
---|---|
(package private) InstructionDetails |
details |
static int |
EVAL |
static int |
EVALUATE |
static int |
EVALUATE_NODE |
static int |
EXPRESSION |
(package private) IndependentContext |
staticContext |
operation
argument
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
Constructor and Description |
---|
Evaluate() |
Modifier and Type | Method and Description |
---|---|
void |
checkArguments(StaticContext env)
Method supplied by each class of function to check arguments during parsing, when all
the argument expressions have been read
|
Item |
evaluateItem(XPathContext c)
Evaluate in a general context
|
int |
getIntrinsicDependencies()
Determine the dependencies
|
protected SequenceType |
getRequiredType(int arg)
Get the required type of the nth argument
|
SequenceIterator |
iterate(XPathContext c)
Iterate over the results of the function
|
Expression |
preEvaluate(StaticContext env)
preEvaluate: for saxon:expression, if the expression is
known at compile time, then it is compiled at compile time.
|
addContextDocumentArgument, computeCardinality, computeSpecialProperties, display, getDetails, getErrorCodeForTypeErrors, getItemType, main, makeSystemFunction, setDetails, useContextItemAsDefault
checkArgumentCount, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, promote, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheck
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, dynamicError, effectiveBooleanValue, evaluateAsString, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, suppressValidation, typeError, typeError
IndependentContext staticContext
InstructionDetails details
public static final int EVALUATE
public static final int EXPRESSION
public static final int EVAL
public static final int EVALUATE_NODE
protected SequenceType getRequiredType(int arg)
getRequiredType
in class SystemFunction
public void checkArguments(StaticContext env) throws XPathException
checkArguments
in class SystemFunction
XPathException
public Expression preEvaluate(StaticContext env) throws XPathException
preEvaluate
in class FunctionCall
XPathException
public Item evaluateItem(XPathContext c) throws XPathException
evaluateItem
in interface Expression
evaluateItem
in class ComputedExpression
c
- The context in which the expression is to be evaluatedXPathException
- if any dynamic error occurs evaluating the
expressionpublic SequenceIterator iterate(XPathContext c) throws XPathException
iterate
in interface Expression
iterate
in class ComputedExpression
c
- supplies the context for evaluationXPathException
- if any dynamic error occurs evaluating the
expressionpublic int getIntrinsicDependencies()
getIntrinsicDependencies
in class ComputedExpression