Package net.sf.saxon.functions
Class ContextItemAccessorFunction.StringAccessor
java.lang.Object
net.sf.saxon.functions.AbstractFunction
net.sf.saxon.functions.SystemFunction
net.sf.saxon.functions.ContextAccessorFunction
net.sf.saxon.functions.ContextItemAccessorFunction
net.sf.saxon.functions.ContextItemAccessorFunction.StringAccessor
- All Implemented Interfaces:
Callable,FunctionItem,GroundedValue,Item,Sequence
- Enclosing class:
ContextItemAccessorFunction
Subclass of ContextItemAccessorFunction to handle string-length() and normalize-space().
These functions differ by taking string(.) rather than (.) as the implicit argument.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.saxon.functions.ContextItemAccessorFunction
ContextItemAccessorFunction.Number_0, ContextItemAccessorFunction.StringAccessor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(Item item, XPathContext context) Evaluate the function.makeFunctionCall(Expression[] arguments) Make a static call on this function, with specified arguments.Methods inherited from class net.sf.saxon.functions.ContextItemAccessorFunction
bindContext, call, makeContextItemExplicitMethods inherited from class net.sf.saxon.functions.SystemFunction
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getContextNode, getDescription, getDetails, getElaborator, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamerName, getUniStringArg, hashCode, importAttributes, isSequenceVariadic, isTrustedResultType, makeCall, makeFunction, makeFunction40, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, toShortString, toString, typeCheckCallerMethods inherited from class net.sf.saxon.functions.AbstractFunction
atomize, deepEqual40, deepEquals, effectiveBooleanValue, getAnnotations, getUnicodeStringValue, isArray, isMap, makeNewContext, simplify, typeCheckMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sf.saxon.om.FunctionItem
getGenreMethods inherited from interface net.sf.saxon.om.GroundedValue
asIterable, concatenate, containsNode, materializeMethods inherited from interface net.sf.saxon.om.Item
getLength, getStringValue, head, isStreamed, itemAt, iterate, reduce, subsequenceMethods inherited from interface net.sf.saxon.om.Sequence
makeRepeatable
-
Constructor Details
-
StringAccessor
public StringAccessor()
-
-
Method Details
-
makeFunctionCall
Description copied from class:ContextItemAccessorFunctionMake a static call on this function, with specified arguments.- Overrides:
makeFunctionCallin classContextItemAccessorFunction- Parameters:
arguments- the supplied arguments to the function call. This will always be an empty array, since this is a zero-arity function.- Returns:
- This implementation returns a call on the equivalent arity-1 version of the function, supplying "." as an explicit argument.
-
evaluate
Description copied from class:ContextItemAccessorFunctionEvaluate the function. This is done by creating a function of the same name, with the context item as an explicit argument, and evaluating that.- Overrides:
evaluatein classContextItemAccessorFunction- Parameters:
item- the context itemcontext- XPath dynamic context (not normally used)- Returns:
- the result of the function
- Throws:
XPathException- in the event of a dynamic error
-