|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.util.lisp.Interpreter.AbstractFunction ix.util.lisp.Interpreter.Closure
public static class Interpreter.Closure
An interpreted function.
Field Summary | |
---|---|
(package private) Interpreter.Expr |
body
|
(package private) Interpreter.Env |
definitionEnv
|
(package private) Symbol[] |
vars
|
Fields inherited from interface ix.util.lisp.Interpreter.Function |
---|
ANY_ARITY |
Constructor Summary | |
---|---|
Interpreter.Closure(Symbol[] vars,
Interpreter.Expr body,
Interpreter.Env definitionEnv)
|
Method Summary | |
---|---|
java.lang.Object |
applyTo(java.lang.Object[] args)
Returns the result of applying this function to the specified arguments. |
int |
getArity()
Returns the number of arguments this function expects. |
java.lang.String |
toString()
|
Methods inherited from class ix.util.lisp.Interpreter.AbstractFunction |
---|
checkArity, mustBe |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
Symbol[] vars
Interpreter.Expr body
Interpreter.Env definitionEnv
Constructor Detail |
---|
public Interpreter.Closure(Symbol[] vars, Interpreter.Expr body, Interpreter.Env definitionEnv)
Method Detail |
---|
public java.lang.Object applyTo(java.lang.Object[] args)
Interpreter.Function
public int getArity()
Interpreter.Function
Interpreter.Function.ANY_ARITY
.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |