|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.util.UniqueObject ix.util.lisp.LispInterpreter.JavaNull
public static final class LispInterpreter.JavaNull
Class used to create a single object that represents Java null. That object is used only by the "java-call" function, and only when the Java method that it calls returns null. We take this approach because the interpreter throws an exception if any expression that it evaluates returns null. Since java-call therefore cannot return null, it has to return something that represents null. The reason for the exception for nulls is that bugs that involve stray nulls can be tricky to fix, because by the time the null causes a problem, it may not be at all clear where it came from; and so the interpreter complains about nulls as soon as possible.
LispInterpreter.JAVA_NULL
,
Serialized FormField Summary |
---|
Fields inherited from class ix.util.UniqueObject |
---|
name |
Method Summary |
---|
Methods inherited from class ix.util.UniqueObject |
---|
getName, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |