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 |
operationargumentlocationId, staticPropertiesEVALUATE_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, useContextItemAsDefaultcheckArgumentCount, getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheckadoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, 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, setParentExpression, suppressValidation, typeErrorIndependentContext 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 SystemFunctionpublic void checkArguments(StaticContext env) throws XPathException
checkArguments in class SystemFunctionXPathExceptionpublic Expression preEvaluate(StaticContext env) throws XPathException
preEvaluate in class FunctionCallXPathExceptionpublic Item evaluateItem(XPathContext c) throws XPathException
evaluateItem in interface ExpressionevaluateItem in class ComputedExpressionc - 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 Expressioniterate in class ComputedExpressionc - supplies the context for evaluationXPathException - if any dynamic error occurs evaluating the
expressionpublic int getIntrinsicDependencies()
getIntrinsicDependencies in class ComputedExpression