Skip navigation links

Package com.oracle.truffle.api.interop

This package provides inter-operability between different Truffle languages.

See: Description

Package com.oracle.truffle.api.interop Description

This package provides inter-operability between different Truffle languages.

Languages can exchange primitive Java type wrapper objects (e.g., Byte, Short, Integer, Long, Float, Double, Character, Boolean, and String) as well as any type implementing TruffleObject. Foreign objects are precisely those implementing TruffleObject.

To use a TruffleObject from a different language, you need to ask the language to build appropriate AST for a given Message with Message.createNode(). The message can then be executed with ForeignAccess methods.

Since:
0.8 or older
Skip navigation links