public abstract static class ValueFunctions.BooleanFunction extends ValueFunctions.NamedValueFunction
Modifier and Type | Field and Description |
---|---|
protected int |
nargs |
protected String |
resultTypeName |
name, signature
Modifier | Constructor and Description |
---|---|
protected |
BooleanFunction(String name,
int nargs) |
protected |
BooleanFunction(String name,
int nargs,
String resultTypeName) |
Modifier and Type | Method and Description |
---|---|
Value |
apply(Env env,
List<Value> in)
Applies the function to the list values using the environment as context and returns
the evaluated value.
|
boolean |
checkArgs(List<Value> in)
Checks if the arguments are valid
|
abstract Boolean |
compute(Boolean... ns) |
String |
getParamDesc() |
getDescription, getParamDesc, getTypeName, toString
protected String resultTypeName
protected int nargs
protected BooleanFunction(String name, int nargs)
public String getParamDesc()
getParamDesc
in class ValueFunctions.NamedValueFunction
public boolean checkArgs(List<Value> in)
ValueFunction
public Value apply(Env env, List<Value> in)
ValueFunction
env
- the environment to usein
- the input arguments