Class NativePointerLibrary
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.library.Library
com.oracle.truffle.nfi.api.NativePointerLibrary
- All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface,Cloneable
public abstract class NativePointerLibrary
extends com.oracle.truffle.api.library.Library
This library contains a subset of
InteropLibrary messages
exported by some NFI objects. Those objects already implement the corresponding
InteropLibrary messages, but they cannot be used in the
AOT mode, as InteropLibrary is not an AOT-enabled library.-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.Children -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.oracle.truffle.api.library.Library
acceptsMethods inherited from class com.oracle.truffle.api.nodes.Node
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toString
-
Constructor Details
-
NativePointerLibrary
public NativePointerLibrary()
-
-
Method Details
-
isPointer
-
asPointer
public long asPointer(Object receiver) throws com.oracle.truffle.api.interop.UnsupportedMessageException - Throws:
com.oracle.truffle.api.interop.UnsupportedMessageException
-