public class Function
extends java.lang.Object
StatementParser for the full EBNF.| Modifier and Type | Class and Description |
|---|---|
static class |
Function.Builder
Simple builder class for
Function. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evaluate(java.lang.Object value,
Configuration config,
Scope scope)
Evaluate this function on the given object, with the given
Configuration and Scope. |
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object evaluate(java.lang.Object value,
Configuration config,
Scope scope)
throws CarrotException
Configuration and Scope.value - The value to evaluate this function on. That is, the object on which we want to call the function
this object represents.config - The current Configuration.scope - The current Scope.CarrotException - if there's any exceptions calling the function.