Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
net.sf.saxon.expr.Expression
net.sf.saxon.expr.FunctionCall
net.sf.saxon.functions.SystemFunction
net.sf.saxon.functions.Component
public class Component
extends SystemFunction
Field Summary | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int |
Fields inherited from class net.sf.saxon.functions.SystemFunction | |
operation |
Fields inherited from class net.sf.saxon.expr.FunctionCall | |
argument |
Fields inherited from class net.sf.saxon.expr.Expression | |
EVALUATE_METHOD , ITERATE_METHOD , PROCESS_METHOD , locationId , staticProperties |
Method Summary | |
Expression |
|
Item |
|
int |
|
String |
|
Expression |
|
Methods inherited from class net.sf.saxon.functions.SystemFunction | |
addContextDocumentArgument , addDocToPathMap , checkArguments , computeCardinality , computeSpecialProperties , copy , getDetails , getErrorCodeForTypeErrors , getItemType , getRequiredType , makeSystemFunction , optimize , setDetails , useContextItemAsDefault |
Methods inherited from class net.sf.saxon.expr.FunctionCall | |
addExternalFunctionCallToPathMap , checkArgumentCount , checkArguments , equals , explain , getArguments , getDisplayName , getFunctionName , getNumberOfArguments , hashCode , iterateSubExpressions , optimize , preEvaluate , promote , replaceSubExpression , setArguments , setFunctionName , simplify , simplifyArguments , toString , typeCheck |
public static final int DAY
- Field Value:
- 3
public static final int HOURS
- Field Value:
- 4
public static final int LOCALNAME
- Field Value:
- 8
public static final int MICROSECONDS
- Field Value:
- 11
public static final int MINUTES
- Field Value:
- 5
public static final int MONTH
- Field Value:
- 2
public static final int NAMESPACE
- Field Value:
- 9
public static final int PREFIX
- Field Value:
- 10
public static final int SECONDS
- Field Value:
- 6
public static final int TIMEZONE
- Field Value:
- 7
public static final int WHOLE_SECONDS
- Field Value:
- 12
public static final int YEAR
- Field Value:
- 1
public static final int YEAR_ALLOWING_ZERO
- Field Value:
- 13
public Expression copy()
Copy an expression. This makes a deep copy.
- Overrides:
- copy in interface SystemFunction
- Returns:
- the copy of the original expression
public Item evaluateItem(XPathContext context) throws XPathException
Evaluate the expression
- Specified by:
- evaluateItem in interface EvaluableItem
- Overrides:
- evaluateItem in interface Expression
public int getRequiredComponent()
Get the required component
public String getRequiredComponentAsString()
Get the required component name as a string
public Expression simplify(ExpressionVisitor visitor) throws XPathException
Simplify an expression. This performs any static optimization (by rewriting the expression as a different expression). The default implementation does nothing.
- Overrides:
- simplify in interface FunctionCall
- Parameters:
visitor
- an expression visitor
- Returns:
- the simplified expression
- Throws:
XPathException
- if an error is discovered during expression rewriting