jd.xml.xpath.expr.function
Class Round

java.lang.Object
  extended byjd.xml.xpath.expr.ExpressionImpl
      extended byjd.xml.xpath.expr.NumericExpression
          extended byjd.xml.xpath.expr.function.NumericFunction
              extended byjd.xml.xpath.expr.function.Round
All Implemented Interfaces:
Expression, Function

public class Round
extends NumericFunction

Round represents the xpath core function "number round(number)".


Field Summary
static FunctionType TYPE
          The function type.
 
Fields inherited from class jd.xml.xpath.expr.function.NumericFunction
arguments_
 
Fields inherited from interface jd.xml.xpath.expr.function.Function
NULL_ARGUMENTS
 
Fields inherited from interface jd.xml.xpath.expr.Expression
DEP_CONTEXT_NODE, DEP_CONTEXT_POSITION, DEP_CONTEXT_SIZE, DEP_CONTEXT_STATIC, DEP_NONE, DEP_UNKNOWN
 
Constructor Summary
Round()
           
 
Method Summary
 FunctionType getFunctionType()
          Return the FunctionType of the Function-
static double round(double value)
          Round a double value.
 double toNumberValue(XPathContext context)
          Evaluate the Expression to a number.
 
Methods inherited from class jd.xml.xpath.expr.function.NumericFunction
accept, getArgument, getContextDependencies, setArguments
 
Methods inherited from class jd.xml.xpath.expr.NumericExpression
getResultType, toBooleanValue, toStringValue, toXObject
 
Methods inherited from class jd.xml.xpath.expr.ExpressionImpl
hasContextDependencies, isUniqueFilter, matchesFilter, toNode, toNodeSet, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jd.xml.xpath.expr.Expression
getResultType, hasContextDependencies, isUniqueFilter, matchesFilter, toBooleanValue, toNode, toNodeSet, toString, toStringValue, toXObject
 

Field Detail

TYPE

public static final FunctionType TYPE
The function type.

Constructor Detail

Round

public Round()
Method Detail

getFunctionType

public FunctionType getFunctionType()
Description copied from interface: Function
Return the FunctionType of the Function-


toNumberValue

public double toNumberValue(XPathContext context)
Description copied from interface: Expression
Evaluate the Expression to a number.

Specified by:
toNumberValue in interface Expression
Specified by:
toNumberValue in class NumericExpression

round

public static double round(double value)
Round a double value.