java.io.Serializable
, javax.xml.transform.SourceLocator
, Container
, Expression
, InstructionInfoProvider
public class Evaluate extends SystemFunction
Modifier and Type | Class | Description |
---|---|---|
static class |
Evaluate.PreparedExpression |
Inner class PreparedExpression represents a compiled XPath expression together
with the standard variables $p1 ..
|
Modifier and Type | Field | Description |
---|---|---|
(package private) InstructionDetails |
details |
|
static int |
EVAL |
|
static int |
EVALUATE |
|
static int |
EVALUATE_NODE |
|
static int |
EXPRESSION |
|
(package private) IndependentContext |
staticContext |
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
argument
operation
Constructor | Description |
---|---|
Evaluate() |
Modifier and Type | Method | 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.
|
adoptChildExpression, 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, typeError
checkArgumentCount, getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheck
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addContextDocumentArgument, computeCardinality, computeSpecialProperties, display, getDetails, getErrorCodeForTypeErrors, getItemType, main, makeSystemFunction, setDetails, useContextItemAsDefault
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