net.sf.saxon.functions
Class Evaluate
- EvaluableItem, InstructionInfoProvider, SequenceIterable, Serializable, SourceLocator
This class implements the saxon:evaluate(), saxon:expression(), and saxon:eval() extension functions,
which are specially-recognized by the system because they need access to parts of the static context
static class | Evaluate.PreparedExpression - Inner class PreparedExpression represents a compiled XPath expression together
with the standard variables $p1 ..
|
addContextDocumentArgument , addDocToPathMap , checkArguments , computeCardinality , computeSpecialProperties , copy , getDetails , getErrorCodeForTypeErrors , getItemType , getRequiredType , makeSystemFunction , optimize , setDetails , useContextItemAsDefault |
addExternalFunctionCallToPathMap , checkArgumentCount , checkArguments , equals , explain , getArguments , getDisplayName , getFunctionName , getNumberOfArguments , hashCode , iterateSubExpressions , optimize , preEvaluate , promote , replaceSubExpression , setArguments , setFunctionName , simplify , simplifyArguments , toString , typeCheck |
addToPathMap , adoptChildExpression , checkPermittedContents , computeCardinality , computeDependencies , computeSpecialProperties , computeStaticProperties , copy , display , doPromotion , dynamicError , effectiveBooleanValue , evaluateAsString , evaluateItem , explain , explain , findParentOf , getCardinality , getColumnNumber , getConstructType , getContainer , getDependencies , getExecutable , getHostLanguage , getImplementationMethod , getInstructionInfo , getIntrinsicDependencies , getItemType , getLineNumber , getLocationId , getLocationProvider , getPublicId , getSlotsUsed , getSpecialProperties , getSystemId , hasLoopingSubexpression , implementsStaticTypeCheck , iterate , iterateEvents , iterateSubExpressions , markTailFunctionCalls , optimize , process , promote , replaceSubExpression , resetLocalStaticProperties , setContainer , setFiltered , setFlattened , setLocationId , simplify , staticTypeCheck , suppressValidation , toString , typeCheck , typeError |
EVAL
public static final int EVAL
EVALUATE
public static final int EVALUATE
EVALUATE_NODE
public static final int EVALUATE_NODE
EXPRESSION
public static final int EXPRESSION
preEvaluate
public Expression preEvaluate(ExpressionVisitor visitor)
throws XPathException
preEvaluate: for saxon:expression, if the expression is
known at compile time, then it is compiled at compile time.
In other cases this method suppresses compile-time evaluation by doing nothing
(because the value of the expression depends on the runtime context).
- preEvaluate in interface FunctionCall
visitor
- an expression visitor