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