Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## ix.util.lisp
Interface Interpreter.Function

All Known Implementing Classes:
  Interpreter.AbstractFunction, Interpreter.Closure, Interpreter.JFunction

Enclosing class:
  Interpreter

    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

### ANY_ARITY

    static final int ANY_ARITY

See Also:
  Constant Field Values

Method Detail

### applyTo

    java.lang.Object applyTo(java.lang.Object[] args)

  Returns the result of applying this function to the specified arguments.

### getArity

    int getArity()

  Returns the number of arguments this function expects. If the function can take any number of arguments, the value is `ANY_ARITY`.

### checkArity

    void checkArity(int numberOfArgs)

  Checks whether this function can accept the indicated number of arguments.

  Throws:
    `java.lang.Error` - if the function cannot accept that many arguments.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD