net.sf.saxon.functions

Class Component

public class Component extends SystemFunction

This class supports the get_X_from_Y functions defined in XPath 2.0
Field Summary
intcomponent
static intDAY
static intHOURS
static intLOCALNAME
static intMICROSECONDS
static intMINUTES
static intMONTH
static intNAMESPACE
static intPREFIX
static intSECONDS
static intTIMEZONE
static intWHOLE_SECONDS
static intYEAR
static intYEAR_ALLOWING_ZERO
Method Summary
Expressioncopy()
Copy an expression.
ItemevaluateItem(XPathContext context)
Evaluate the expression
intgetRequiredComponent()
Get the required component
StringgetRequiredComponentAsString()
Get the required component name as a string
Expressionsimplify(ExpressionVisitor visitor)

Field Detail

component

int component

DAY

public static final int DAY

HOURS

public static final int HOURS

LOCALNAME

public static final int LOCALNAME

MICROSECONDS

public static final int MICROSECONDS

MINUTES

public static final int MINUTES

MONTH

public static final int MONTH

NAMESPACE

public static final int NAMESPACE

PREFIX

public static final int PREFIX

SECONDS

public static final int SECONDS

TIMEZONE

public static final int TIMEZONE

WHOLE_SECONDS

public static final int WHOLE_SECONDS

YEAR

public static final int YEAR

YEAR_ALLOWING_ZERO

public static final int YEAR_ALLOWING_ZERO

Method Detail

copy

public Expression copy()
Copy an expression. This makes a deep copy.

Returns: the copy of the original expression

evaluateItem

public Item evaluateItem(XPathContext context)
Evaluate the expression

getRequiredComponent

public int getRequiredComponent()
Get the required component

getRequiredComponentAsString

public String getRequiredComponentAsString()
Get the required component name as a string

simplify

public Expression simplify(ExpressionVisitor visitor)