public class Component extends SystemFunction
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
component |
static int |
DAY |
static int |
HOURS |
static int |
LOCALNAME |
static int |
MICROSECONDS |
static int |
MINUTES |
static int |
MONTH |
static int |
NAMESPACE |
static int |
PREFIX |
static int |
SECONDS |
static int |
TIMEZONE |
static int |
WHOLE_SECONDS |
static int |
YEAR |
static int |
YEAR_ALLOWING_ZERO |
operationargumentEFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, PUSH_SELECTION, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, WATCH_METHOD| Constructor and Description |
|---|
Component() |
| Modifier and Type | Method and Description |
|---|---|
Expression |
copy()
Copy an expression.
|
Item |
evaluateItem(XPathContext context)
Evaluate the expression
|
IntegerValue[] |
getIntegerBounds()
For an expression that returns an integer or a sequence of integers, get
a lower and upper bound on the values of the integers that may be returned, from
static analysis.
|
int |
getRequiredComponent()
Get the required component
|
java.lang.String |
getRequiredComponentAsString()
Get the required component name as a string
|
void |
setDetails(StandardFunction.Entry entry)
Set the details of this type of function
|
Expression |
simplify(ExpressionVisitor visitor)
Simplify the function call.
|
addContextDocumentArgument, addDocToPathMap, checkArguments, computeCardinality, computeSpecialProperties, equals, getDetails, getErrorCodeForTypeErrors, getImplementationMethod, getItemType, getOperation, getRequiredType, makeSystemFunction, optimize, useContextItemAsDefaultaddExternalFunctionCallToPathMap, checkArgumentCount, explain, getArguments, getDisplayName, getExpressionName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionName, simplifyArguments, toString, typeCheckaddToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluatePendingUpdates, explain, getCardinality, getColumnNumber, getColumnNumber, getConstructType, getContainer, getDependencies, getEvaluationMethod, getExecutable, getHostLanguage, getIntrinsicDependencies, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, hasVariableBinding, implementsStaticTypeCheck, isSubtreeExpression, isUpdatingExpression, isVacuousExpression, iterate, iterateEvents, iterateSameFocusSubExpressions, markTailFunctionCalls, process, resetLocalStaticProperties, setContainer, setEvaluationMethod, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation, typeErrorpublic static final int YEAR
public static final int MONTH
public static final int DAY
public static final int HOURS
public static final int MINUTES
public static final int SECONDS
public static final int TIMEZONE
public static final int LOCALNAME
public static final int NAMESPACE
public static final int PREFIX
public static final int MICROSECONDS
public static final int WHOLE_SECONDS
public static final int YEAR_ALLOWING_ZERO
int component
public Expression simplify(ExpressionVisitor visitor) throws XPathException
FunctionCallsimplify in class FunctionCallvisitor - an expression visitorXPathException - if an error is discovered during expression
rewritingpublic void setDetails(StandardFunction.Entry entry)
setDetails in class SystemFunctionentry - information giving details of the function signaturepublic IntegerValue[] getIntegerBounds()
getIntegerBounds in class Expressionpublic int getRequiredComponent()
public java.lang.String getRequiredComponentAsString()
public Item evaluateItem(XPathContext context) throws XPathException
evaluateItem in class Expressioncontext - The context in which the expression is to be evaluatedXPathException - if any dynamic error occurs evaluating the
expressionpublic Expression copy()
copy in class SystemFunction