public final class FirstItemExpression extends SingleItemFilter
operand
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, WATCH_METHOD
Modifier and Type | Method and Description |
---|---|
Expression |
copy()
Copy an expression.
|
Item |
evaluateItem(XPathContext context)
Evaluate the expression
|
ExpressionCompiler |
getExpressionCompiler()
Return the compiler of the FirstItem expression
|
String |
getExpressionName()
Get a name identifying the kind of expression, in terms meaningful to a user.
|
FirstItemExpressionAdjunct |
getStreamingAdjunct()
Get a class that supports streamed evaluation of this expression
|
static Expression |
makeFirstItemExpression(Expression base)
Static factory method
|
Pattern |
toPattern(Configuration config,
boolean is30)
Convert this expression to an equivalent XSLT pattern
|
String |
toShortString()
Produce a short string identifying the expression for use in error messages
|
computeCardinality, getOperandRole, optimize, promote
computeSpecialProperties, displayOperator, equals, explain, getBaseExpression, getItemType, hashCode, operands, replaceOperand, toString, typeCheck
addToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, clearStreamabilityData, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluatePendingUpdates, explain, getCardinality, getColumnNumber, getConfiguration, getConstructType, getContainer, getDependencies, getEvaluationMethod, getHostLanguage, getImplementationMethod, getIntegerBounds, getIntrinsicDependencies, getLineNumber, getLocationId, getObjectName, getPosture, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getStreamability, getSweep, getSystemId, hasVariableBinding, identityHashCode, implementsStaticTypeCheck, isIdentical, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterate, iterateEvents, makeStreamingAdjunct, markTailFunctionCalls, operandList, process, resetLocalStaticProperties, setContainer, setEvaluationMethod, setFiltered, setFlattened, setLocationId, setPostureAndSweep, simplify, staticTypeCheck, suppressValidation, toStreamingPattern, typeError, unordered
public static Expression makeFirstItemExpression(Expression base)
base
- A sequence expression denoting sequence whose first item is to be returnedpublic Expression copy()
copy
in class Expression
public Pattern toPattern(Configuration config, boolean is30) throws XPathException
toPattern
in class Expression
config
- the Saxon configurationis30
- true if this is XSLT 3.0XPathException
- if conversion is not possiblepublic Item evaluateItem(XPathContext context) throws XPathException
evaluateItem
in class Expression
context
- The context in which the expression is to be evaluatedXPathException
- if any dynamic error occurs evaluating the
expressionpublic String getExpressionName()
Expression
getExpressionName
in class Expression
public String toShortString()
Expression
toShortString
in class UnaryExpression
public ExpressionCompiler getExpressionCompiler()
getExpressionCompiler
in class Expression
public FirstItemExpressionAdjunct getStreamingAdjunct()
Expression
getStreamingAdjunct
in class Expression
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.