|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.core.formula.lang.If
public class If
A function that emulates the if-then-else statement.
| Field Summary | |
|---|---|
static FunctionParameter[] |
parameters
The function's three parameters: condition, result and alternative |
| Constructor Summary | |
|---|---|
If()
Creates a new instance of the IF 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 If()
| 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 | |||||||||