|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.util.lisp.Interpreter.AbstractFunction
public abstract static class Interpreter.AbstractFunction
An implementation of Function that supplies some utility methods and implements part of the interface.
Field Summary |
---|
Fields inherited from interface ix.util.lisp.Interpreter.Function |
---|
ANY_ARITY |
Constructor Summary | |
---|---|
Interpreter.AbstractFunction()
|
Method Summary | ||
---|---|---|
void |
checkArity(int numberOfArgs)
Checks whether this function can accept the indicated number of arguments. |
|
protected
|
mustBe(java.lang.Class<T> c,
java.lang.Object obj)
Returns an object if it is an instance of the specified class, but throws a ClassCastException if it isn't. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ix.util.lisp.Interpreter.Function |
---|
applyTo, getArity |
Constructor Detail |
---|
public Interpreter.AbstractFunction()
Method Detail |
---|
public void checkArity(int numberOfArgs)
Interpreter.Function
checkArity
in interface Interpreter.Function
protected <T> T mustBe(java.lang.Class<T> c, java.lang.Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |