public class QuerySimpleContentConstructor extends SimpleContentConstructor
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
noNodeIfEmpty |
isAtomic, isSingleton, select, separator
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
Constructor and Description |
---|
QuerySimpleContentConstructor(Expression select,
Expression separator,
boolean noNodeIfEmpty) |
Modifier and Type | Method and Description |
---|---|
protected int |
computeCardinality()
Compute the cardinality of the result of the expression.
|
Item |
evaluateItem(XPathContext context)
Evaluate an expression as a single item.
|
CharSequence |
expandChildren(XPathContext context)
Expand the stylesheet elements subordinate to this one, returning the result
as a string.
|
display, getImplementationMethod, getItemType, iterateSubExpressions, optimize, promote, simplify, typeCheck
adoptChildExpression, checkPermittedContents, computeDependencies, computeSpecialProperties, computeStaticProperties, doPromotion, dynamicError, dynamicError, effectiveBooleanValue, evaluateAsString, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, iterate, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, suppressValidation, typeError, typeError
public QuerySimpleContentConstructor(Expression select, Expression separator, boolean noNodeIfEmpty)
protected int computeCardinality()
computeCardinality
in class SimpleContentConstructor
public CharSequence expandChildren(XPathContext context) throws XPathException
context
- The dynamic context for the transformationXPathException
public Item evaluateItem(XPathContext context) throws XPathException
evaluateItem
in interface Expression
evaluateItem
in class SimpleContentConstructor
context
- The context in which the expression is to be evaluatedXPathException
- if any dynamic error occurs evaluating the
expression