comparison graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLNull.java @ 21770:c76742cc2c6f

Polishing inter-operability APIs: Exposing only Message, TruffleObject and ForeignAccess-related classes.
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Mon, 08 Jun 2015 04:50:13 +0200
parents ed234a3178af
children
comparison
equal deleted inserted replaced
21769:b6309a7d5a44 21770:c76742cc2c6f
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 package com.oracle.truffle.sl.runtime; 23 package com.oracle.truffle.sl.runtime;
24 24
25 import com.oracle.truffle.api.interop.ForeignAccessFactory; 25 import com.oracle.truffle.api.interop.ForeignAccess;
26 import com.oracle.truffle.api.interop.TruffleObject; 26 import com.oracle.truffle.api.interop.TruffleObject;
27 27
28 /** 28 /**
29 * The SL type for a {@code null} (i.e., undefined) value. In Truffle, it is generally discouraged 29 * The SL type for a {@code null} (i.e., undefined) value. In Truffle, it is generally discouraged
30 * to use the Java {@code null} value to represent the guest language {@code null} value. It is not 30 * to use the Java {@code null} value to represent the guest language {@code null} value. It is not
55 public String toString() { 55 public String toString() {
56 return "null"; 56 return "null";
57 } 57 }
58 58
59 @Override 59 @Override
60 public ForeignAccessFactory getForeignAccessFactory() { 60 public ForeignAccess getForeignAccess() {
61 return SLFunctionForeignAccess.INSTANCE; 61 return SLFunctionForeignAccess.INSTANCE;
62 } 62 }
63 } 63 }