com.icl.saxon.functions

Class Position


public class Position
extends Function

Field Summary

Fields inherited from class com.icl.saxon.expr.Function

argument

Fields inherited from class com.icl.saxon.expr.Expression

staticContext

Method Summary

Value
evaluate(Context c)
Evaluate in a general context
double
evaluateAsNumber(Context c)
Evaluate the function in a numeric context
int
getDataType()
Determine the data type of the expression
int
getDependencies()
Determine the dependencies
String
getName()
Function name (for diagnostics)
Expression
reduce(int dep, Context c)
Reduce the dependencies
Expression
simplify()
Simplify and validate.

Methods inherited from class com.icl.saxon.expr.Function

addArgument, checkArgumentCount, display, getName, getNumberOfArguments

Methods inherited from class com.icl.saxon.expr.Expression

containsReferences, display, enumerate, evaluate, evaluateAsBoolean, evaluateAsNodeSet, evaluateAsNumber, evaluateAsString, getDataType, getDependencies, getStaticContext, indent, isContextDocumentNodeSet, make, outputStringValue, reduce, setStaticContext, simplify, usesCurrent

Method Details

evaluate

public Value evaluate(Context c)
            throws XPathException
Evaluate in a general context
Overrides:
evaluate in interface Expression


evaluateAsNumber

public double evaluateAsNumber(Context c)
            throws XPathException
Evaluate the function in a numeric context
Overrides:
evaluateAsNumber in interface Expression


getDataType

public int getDataType()
Determine the data type of the expression
Overrides:
getDataType in interface Expression

Returns:
Value.NUMBER


getDependencies

public int getDependencies()
Determine the dependencies
Overrides:
getDependencies in interface Expression


getName

public String getName()
Function name (for diagnostics)
Overrides:
getName in interface Function


reduce

public Expression reduce(int dep,
                         Context c)
            throws XPathException
Reduce the dependencies
Overrides:
reduce in interface Expression


simplify

public Expression simplify()
            throws XPathException
Simplify and validate.
Overrides:
simplify in interface Expression