java.io.Serializable, javax.xml.transform.SourceLocator, LocationProvider, SaxonLocator, EvaluableItem, SequenceIterable, InstructionInfo, org.xml.sax.Locatorpublic class Substring extends SystemFunction
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticPropertiesargumentoperation| Constructor | Description |
|---|---|
Substring() |
| Modifier and Type | Method | Description |
|---|---|---|
Item |
evaluateItem(XPathContext context) |
Evaluate the function
|
static java.lang.CharSequence |
substring(StringValue sv,
NumericValue start) |
Implement the substring function with two arguments.
|
static java.lang.CharSequence |
substring(StringValue sv,
NumericValue start,
NumericValue len,
XPathContext context) |
Implement the substring function with three arguments.
|
addToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, display, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluatePendingUpdates, explain, findParentOf, getCardinality, getColumnNumber, getColumnNumber, getConstructType, getContainer, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getIntrinsicDependencies, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, isUpdatingExpression, iterate, iterateEvents, markTailFunctionCalls, process, resetLocalStaticProperties, setContainer, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation, typeErroraddExternalFunctionCallToPathMap, checkArgumentCount, equals, explain, getArguments, getDisplayName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionName, simplify, simplifyArguments, toString, typeCheckclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddContextDocumentArgument, addDocToPathMap, checkArguments, computeCardinality, computeSpecialProperties, copy, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, makeSystemFunction, optimize, setDetails, useContextItemAsDefaultpublic Item evaluateItem(XPathContext context) throws XPathException
evaluateItem in interface EvaluableItemevaluateItem in class Expressioncontext - The context in which the expression is to be evaluatedXPathException - if any dynamic error occurs evaluating the
expressionpublic static java.lang.CharSequence substring(StringValue sv, NumericValue start)
sv - the string valuestart - the numeric offset (1-based) of the first character to be included in the result
(if not an integer, the XPath rules apply)public static java.lang.CharSequence substring(StringValue sv, NumericValue start, NumericValue len, XPathContext context)
sv - the string valuestart - the numeric offset (1-based) of the first character to be included in the result
(if not an integer, the XPath rules apply)len - the length of the required substring (again, XPath rules apply)context - the XPath dynamic context. Provided because some arithmetic computations require it