jd.xml.xpath.expr.function
Class NumericFunction

java.lang.Object
  extended byjd.xml.xpath.expr.ExpressionImpl
      extended byjd.xml.xpath.expr.NumericExpression
          extended byjd.xml.xpath.expr.function.NumericFunction
All Implemented Interfaces:
Expression, Function
Direct Known Subclasses:
Average, Ceiling, Count, Floor, Last, Position, Round, StringLength, Sum, ToNumber

public abstract class NumericFunction
extends NumericExpression
implements Function

A base class for all functions which evaluate to a number.


Field Summary
protected  Expression[] 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
NumericFunction()
           
 
Method Summary
 void accept(ExpressionVisitor visitor)
          Accept a ExpressionVisitor.
 Expression getArgument(int i)
          Return the actual argument for the given index.
 int getContextDependencies()
          Return a bitfield indicating the expression dependencies on the XPath context.
 void setArguments(Expression[] arguments)
          Set the function arguments.
 
Methods inherited from class jd.xml.xpath.expr.NumericExpression
getResultType, toBooleanValue, toNumberValue, 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.function.Function
getFunctionType
 
Methods inherited from interface jd.xml.xpath.expr.Expression
getResultType, hasContextDependencies, isUniqueFilter, matchesFilter, toBooleanValue, toNode, toNodeSet, toNumberValue, toString, toStringValue, toXObject
 

Field Detail

arguments_

protected Expression[] arguments_
Constructor Detail

NumericFunction

public NumericFunction()
Method Detail

setArguments

public void setArguments(Expression[] arguments)
Description copied from interface: Function
Set the function arguments.

Specified by:
setArguments in interface Function

getArgument

public Expression getArgument(int i)
Description copied from interface: Function
Return the actual argument for the given index.

Specified by:
getArgument in interface Function

getContextDependencies

public int getContextDependencies()
Description copied from interface: Expression
Return a bitfield indicating the expression dependencies on the XPath context.

Specified by:
getContextDependencies in interface Expression

accept

public void accept(ExpressionVisitor visitor)
Description copied from interface: Expression
Accept a ExpressionVisitor.

Specified by:
accept in interface Expression