public class NormalizeSpace_1 extends ScalarSystemFunction
ZERO_LENGTH_STRING
Constructor and Description |
---|
NormalizeSpace_1() |
Modifier and Type | Method and Description |
---|---|
AtomicValue |
evaluate(Item arg,
XPathContext context)
Abstract method that must be supplied in subclasses to perform the evaluation
|
java.lang.String |
getCompilerName()
Get the (local) name of a class that can be used to generate bytecode for this
system function
|
Expression |
makeFunctionCall(Expression[] arguments)
Make an expression that either calls this function, or that is equivalent to a call
on this function
|
static StringValue |
normalizeSpace(StringValue sv) |
ZeroOrOne<? extends AtomicValue> |
resultWhenEmpty()
Method that may be supplied in subclasses, to indicate the result that is returned
when an empty sequence is supplied as the argument value.
|
call
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getContextNode, getDescription, getDetails, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getSpecialProperties, getStaticBaseUriString, getStreamerName, importAttributes, isTrustedResultType, makeCall, makeFunction, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, toShortString, toString, typeCheckCaller
atomize, deepEquals, effectiveBooleanValue, getAnnotations, getStringValue, getStringValueCS, isArray, isMap, makeNewContext, simplify, typeCheck
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
argumentArray, getGenre
getLength, head, isStreamed, itemAt, iterate, iterator, reduce, subsequence, toGroundedValue
asIterable, materialize
makeRepeatable
public ZeroOrOne<? extends AtomicValue> resultWhenEmpty()
ScalarSystemFunction
resultWhenEmpty
in class ScalarSystemFunction
public AtomicValue evaluate(Item arg, XPathContext context) throws XPathException
ScalarSystemFunction
evaluate
in class ScalarSystemFunction
arg
- the supplied argumentcontext
- the dynamic contextXPathException
- if a dynamic error occurspublic static StringValue normalizeSpace(StringValue sv)
public Expression makeFunctionCall(Expression[] arguments)
SystemFunction
makeFunctionCall
in class ScalarSystemFunction
arguments
- the supplied arguments to the function callpublic java.lang.String getCompilerName()
SystemFunction
getCompilerName
in class SystemFunction
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.