Package com.oracle.truffle.api.library
Class LibraryExport<T extends Library>
java.lang.Object
com.oracle.truffle.api.library.LibraryExport<T>
Base class for generated export classes. This class is not intended to be sub-classed or used
manually.
- Since:
- 19.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
Internal interface for generated code only. -
Constructor Summary
ModifierConstructorDescriptionprotected
LibraryExport
(Class<? extends T> library, Class<?> receiverClass, boolean defaultExport) Constructor for generated code.protected
LibraryExport
(Class<? extends T> library, Class<?> receiverClass, boolean defaultExport, boolean aot, int aotPriority) Constructor for generated code. -
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
assertAdopted
(Node node) Internal method for generated code only.protected abstract T
createCached
(Object receiver) Implemented generated byExportLibrary
.protected static <T extends Library>
TcreateDelegate
(LibraryFactory<T> factory, T delegate) Internal method for generated code only.protected static FinalBitSet
createMessageBitSet
(LibraryFactory<?> factory, String... messageNames) Internal method for generated code only.protected abstract T
createUncached
(Object receiver) Implemented generated byExportLibrary
.static <T extends Library>
voidregister
(Class<?> receiverClass, LibraryExport<?>... libs) Called only by code generated byExportLibrary
.final String
toString()
-
Constructor Details
-
Method Details
-
createUncached
Implemented generated byExportLibrary
. Do not implement manually.- Since:
- 19.0
-
createCached
Implemented generated byExportLibrary
. Do not implement manually.- Since:
- 19.0
-
assertAdopted
Internal method for generated code only.- Since:
- 23.1
-
createDelegate
Internal method for generated code only.- Since:
- 20.0
-
createMessageBitSet
Internal method for generated code only.- Since:
- 20.0
-
toString
-
register
Called only by code generated byExportLibrary
. Do not call manually. Multiple calls with the same receiver class will lead to anIllegalStateException
.- Since:
- 19.0
-