|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Interpreter.Function
An object that represents a function that can be applied to arguments.
Field Summary | |
---|---|
static int |
ANY_ARITY
|
Method Summary | |
---|---|
java.lang.Object |
applyTo(java.lang.Object[] args)
Returns the result of applying this function to the specified arguments. |
void |
checkArity(int numberOfArgs)
Checks whether this function can accept the indicated number of arguments. |
int |
getArity()
Returns the number of arguments this function expects. |
Field Detail |
---|
static final int ANY_ARITY
Method Detail |
---|
java.lang.Object applyTo(java.lang.Object[] args)
int getArity()
ANY_ARITY
.
void checkArity(int numberOfArgs)
java.lang.Error
- if the function cannot accept that many arguments.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |