|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.core.formula.FunctionCall
public class FunctionCall
A call to a function in a formula.
| Constructor Summary | |
|---|---|
FunctionCall(Function function,
Expression... args)
Creates a new function call. |
|
| Method Summary | |
|---|---|
Object |
accept(ExpressionVisitor visitor)
Accepts to visit the given expression visitor. |
Value |
evaluate()
Evaluates the expression and returns the result. |
Expression[] |
getArguments()
Returns the arguments passed to the function. |
Function |
getFunction()
Returns the function that is called. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FunctionCall(Function function,
Expression... args)
throws IllegalFunctionCallException
function - the function that is calledargs - the arguments passed to the function
IllegalFunctionCallException - if the arguments passed to the function did not match its parameters| Method Detail |
|---|
public Value evaluate()
throws IllegalValueTypeException
Expression
evaluate in interface ExpressionIllegalValueTypeException - if a value of an unexpected type was
encountered when evaluating the expressionpublic Function getFunction()
public Expression[] getArguments()
public Object accept(ExpressionVisitor visitor)
Expression
accept in interface Expressionvisitor - the visitorpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||