public abstract static class FunctionSupport.Func0 extends FunctionSupport.BaseFunction
| Modifier and Type | Method and Description |
|---|---|
Value |
eval(EvalContext ctx,
Value... params)
Evaluates this function within the given context with the given
parameters.
|
protected abstract Value |
eval0(EvalContext ctx) |
boolean |
isPure() |
getName, invalidFunctionCall, toString, validateNumParamsprotected Func0(String name)
public boolean isPure()
isPure in interface FunctionisPure in class FunctionSupport.BaseFunctiontrue if this function is a "pure" function, false
otherwise. A pure function will always return the same result
for a given set of parameters and has no side effects.public final Value eval(EvalContext ctx, Value... params)
Functionprotected abstract Value eval0(EvalContext ctx)
Copyright © 2005–2018. All rights reserved.