Class CurrentGroup
java.lang.Object
net.sf.saxon.expr.ComputedExpression
net.sf.saxon.expr.FunctionCall
net.sf.saxon.functions.SystemFunction
net.sf.saxon.functions.CurrentGroup
- All Implemented Interfaces:
Serializable, SourceLocator, Container, Expression, XSLTFunction, InstructionInfoProvider
Implements the XSLT functions current-group() and current-grouping-key()
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class SystemFunction
operationFields inherited from class FunctionCall
argumentFields inherited from class ComputedExpression
locationId, staticPropertiesFields inherited from interface Expression
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvaluate the expressionintDetermine the dependenciesReturn an iteration over the result sequencepreEvaluate(StaticContext env) preEvaluate: this method suppresses compile-time evaluation by doing nothing (because the value of the expression depends on the runtime context)Methods inherited from class SystemFunction
addContextDocumentArgument, checkArguments, computeCardinality, computeSpecialProperties, display, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, main, makeSystemFunction, setDetails, useContextItemAsDefaultMethods inherited from class FunctionCall
checkArgumentCount, getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheckMethods inherited from class ComputedExpression
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
-
Field Details
-
CURRENT_GROUP
public static final int CURRENT_GROUP- See Also:
-
CURRENT_GROUPING_KEY
public static final int CURRENT_GROUPING_KEY- See Also:
-
-
Constructor Details
-
CurrentGroup
public CurrentGroup()
-
-
Method Details
-
preEvaluate
preEvaluate: this method suppresses compile-time evaluation by doing nothing (because the value of the expression depends on the runtime context)- Overrides:
preEvaluatein classFunctionCall
-
evaluateItem
Evaluate the expression- Specified by:
evaluateItemin interfaceExpression- Overrides:
evaluateItemin classComputedExpression- Parameters:
c- The context in which the expression is to be evaluated- Returns:
- the node or atomic value that results from evaluating the expression; or null to indicate that the result is an empty sequence
- Throws:
XPathException- if any dynamic error occurs evaluating the expression
-
iterate
Return an iteration over the result sequence- Specified by:
iteratein interfaceExpression- Overrides:
iteratein classComputedExpression- Parameters:
c- supplies the context for evaluation- Returns:
- a SequenceIterator that can be used to iterate over the result of the expression
- Throws:
XPathException- if any dynamic error occurs evaluating the expression
-
getIntrinsicDependencies
public int getIntrinsicDependencies()Determine the dependencies- Overrides:
getIntrinsicDependenciesin classComputedExpression- Returns:
- a set of bit-significant flags identifying the "intrinsic" dependencies. The flags are documented in class net.sf.saxon.value.StaticProperty
-