public class NamePart extends SystemFunction
| Modifier and Type | Field and Description |
|---|---|
static int |
DOCUMENT_URI |
static int |
GENERATE_ID |
static int |
LOCAL_NAME |
static int |
NAME |
static int |
NAMESPACE_URI |
static int |
NODE_NAME |
operationargumentEVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticProperties| Constructor and Description |
|---|
NamePart() |
| Modifier and Type | Method and Description |
|---|---|
int |
computeSpecialProperties()
Determine the special properties of this expression.
|
Item |
evaluateItem(XPathContext c)
Evaluate the function in a string context
|
static boolean |
isGenerateIdFunction(Expression exp)
Test whether an expression is a call on the generate-id() function
|
Expression |
simplify(ExpressionVisitor visitor)
Simplify and validate.
|
addContextDocumentArgument, addDocToPathMap, checkArguments, computeCardinality, copy, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, makeSystemFunction, optimize, setDetails, useContextItemAsDefaultaddExternalFunctionCallToPathMap, checkArgumentCount, equals, explain, getArguments, getDisplayName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionName, simplifyArguments, toString, typeCheckaddToPathMap, 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, typeErrorpublic static final int NAME
public static final int LOCAL_NAME
public static final int NAMESPACE_URI
public static final int GENERATE_ID
public static final int DOCUMENT_URI
public static final int NODE_NAME
public Expression simplify(ExpressionVisitor visitor) throws XPathException
simplify in class FunctionCallvisitor - an expression visitorXPathException - if an error is discovered during expression
rewritingpublic int computeSpecialProperties()
computeSpecialProperties in class SystemFunctionpublic Item evaluateItem(XPathContext c) throws XPathException
evaluateItem in interface EvaluableItemevaluateItem in class Expressionc - The context in which the expression is to be evaluatedXPathException - if any dynamic error occurs evaluating the
expressionpublic static boolean isGenerateIdFunction(Expression exp)
exp - the expression to be tested