Package com.oracle.truffle.sl.runtime
Class SLNull
java.lang.Object
com.oracle.truffle.sl.runtime.SLNull
- All Implemented Interfaces:
com.oracle.truffle.api.interop.TruffleObject
The SL type for a
null (i.e., undefined) value. In Truffle, it is generally discouraged
to use the Java null value to represent the guest language null value. It is not
possible to specialize on Java null (since you cannot ask it for the Java class), and
there is always the danger of a spurious NullPointerException. Representing the guest
language null as a singleton, as in this class, is the recommended
practice.-
Field Summary
Fields -
Method Summary