java.io.Serializable
, javax.xml.transform.SourceLocator
, LocationProvider
, SaxonLocator
, EvaluableItem
, SequenceIterable
, InstructionInfo
, org.xml.sax.Locator
public class NamePart extends SystemFunction
Modifier and Type | Field | Description |
---|---|---|
static int |
DOCUMENT_URI |
|
static int |
GENERATE_ID |
|
static int |
LOCAL_NAME |
|
static int |
NAME |
|
static int |
NAMESPACE_URI |
|
static int |
NODE_NAME |
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticProperties
argument
operation
Constructor | Description |
---|---|
NamePart() |
Modifier and Type | Method | 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.
|
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, typeError
addExternalFunctionCallToPathMap, checkArgumentCount, equals, explain, getArguments, getDisplayName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionName, simplifyArguments, toString, typeCheck
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addContextDocumentArgument, addDocToPathMap, checkArguments, computeCardinality, copy, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, makeSystemFunction, optimize, setDetails, useContextItemAsDefault
public 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 FunctionCall
visitor
- an expression visitorXPathException
- if an error is discovered during expression
rewritingpublic int computeSpecialProperties()
computeSpecialProperties
in class SystemFunction
public Item evaluateItem(XPathContext c) throws XPathException
evaluateItem
in interface EvaluableItem
evaluateItem
in class Expression
c
- 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