Interface Function
-
- All Known Implementing Classes:
FunctionSupport.BaseFunction,FunctionSupport.Func0,FunctionSupport.Func1,FunctionSupport.Func1NullIsNull,FunctionSupport.Func2,FunctionSupport.Func3,FunctionSupport.FuncVar,FunctionSupport.StringFuncWrapper
public interface FunctionA Function provides an invokable handle to external functionality to an expression.- Author:
- James Ahlborn
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Valueeval(EvalContext ctx, Value... params)Evaluates this function within the given context with the given parameters.StringgetName()booleanisPure()
-
-
-
Method Detail
-
getName
String getName()
- Returns:
- the name of this function
-
eval
Value eval(EvalContext ctx, Value... params)
Evaluates this function within the given context with the given parameters.- Returns:
- the result of the function evaluation
-
isPure
boolean isPure()
- Returns:
trueif this function is a "pure" function,falseotherwise. A pure function will always return the same result for a given set of parameters and has no side effects.
-
-