|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.core.formula.lang.Average
public class Average
A function that returns the numeric average of its arguments.
| Field Summary | |
|---|---|
static FunctionParameter[] |
parameters
The only (but repeatable) parameter: a numeric term |
| Constructor Summary | |
|---|---|
Average()
Creates a new instance of the AVERAGE function. |
|
| Method Summary | |
|---|---|
Value |
applyTo(Expression[] arguments)
Invokes the function using the given arguments and returns the result. |
String |
getIdentifier()
Returns the operator's string identirifer. |
FunctionParameter[] |
getParameters()
Returns the parameters of the function. |
boolean |
isVarArg()
Returns whether the function accepts a variable number of arguments, i.e. whether the function's parameter list is unbounded. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final FunctionParameter[] parameters
| Constructor Detail |
|---|
public Average()
| Method Detail |
|---|
public String getIdentifier()
Function
getIdentifier in interface Function
public Value applyTo(Expression[] arguments)
throws IllegalValueTypeException
Function
applyTo in interface FunctionIllegalValueTypeExceptionpublic FunctionParameter[] getParameters()
Function
getParameters in interface Functionpublic boolean isVarArg()
Function
isVarArg in interface Function
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||