java.io.Serializable, javax.xml.transform.SourceLocator, Container, Expression, InstructionInfoProviderpublic class Existence extends SystemFunction
| Modifier and Type | Field | Description |
|---|---|---|
static int |
EMPTY |
|
static int |
EXISTS |
locationId, staticPropertiesEVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHODargumentoperation| Constructor | Description |
|---|---|
Existence() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
checkArguments(StaticContext env) |
Static analysis: prevent sorting of the argument
|
boolean |
effectiveBooleanValue(XPathContext c) |
Evaluate the function in a boolean context
|
Item |
evaluateItem(XPathContext c) |
Evaluate in a general context
|
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, evaluateAsString, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, iterate, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeErrorcheckArgumentCount, getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheckclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddContextDocumentArgument, computeCardinality, computeSpecialProperties, display, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, main, makeSystemFunction, setDetails, useContextItemAsDefaultpublic static final int EXISTS
public static final int EMPTY
public void checkArguments(StaticContext env) throws XPathException
checkArguments in class SystemFunctionXPathExceptionpublic boolean effectiveBooleanValue(XPathContext c) throws XPathException
effectiveBooleanValue in interface ExpressioneffectiveBooleanValue in class ComputedExpressionc - The context in which the expression is to be evaluatedXPathException - if any dynamic error occurs evaluating the
expressionpublic 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
expression