|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectix.util.lisp.Interpreter.AbstractFunction
ix.util.lisp.Interpreter.JFunction
public abstract static class Interpreter.JFunction
A function implemented in Java.
Field Summary | |
---|---|
protected int |
arity
|
protected Symbol |
name
|
Fields inherited from interface ix.util.lisp.Interpreter.Function |
---|
ANY_ARITY |
Constructor Summary | |
---|---|
Interpreter.JFunction(java.lang.String name,
int arity)
|
|
Interpreter.JFunction(Symbol name,
int arity)
|
Method Summary | |
---|---|
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 |
Methods inherited from interface ix.util.lisp.Interpreter.Function |
---|
applyTo |
Field Detail |
---|
protected Symbol name
protected int arity
Constructor Detail |
---|
public Interpreter.JFunction(java.lang.String name, int arity)
public Interpreter.JFunction(Symbol name, int arity)
Method Detail |
---|
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 |