public abstract class LibraryExport<T extends Library> extends Object
to implement / export library message.
Modifier and Type | Class and Description |
---|---|
protected static interface |
LibraryExport.DelegateExport
Internal interface for generated code only.
|
Modifier | Constructor and Description |
---|---|
protected |
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.
|
Modifier and Type | Method and Description |
---|---|
protected abstract T |
createCached(Object receiver)
Implemented generated by
ExportLibrary . |
protected static <T extends Library> |
createDelegate(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 by
ExportLibrary . |
static <T extends Library> |
register(Class<?> receiverClass,
LibraryExport<?>... libs)
Called only by code generated by
ExportLibrary . |
String |
toString() |
protected LibraryExport(Class<? extends T> library, Class<?> receiverClass, boolean defaultExport)
protected abstract T createUncached(Object receiver)
ExportLibrary
. Do not implement manually.protected abstract T createCached(Object receiver)
ExportLibrary
. Do not implement manually.protected static <T extends Library> T createDelegate(LibraryFactory<T> factory, T delegate)
protected static FinalBitSet createMessageBitSet(LibraryFactory<?> factory, String... messageNames)
public static <T extends Library> void register(Class<?> receiverClass, LibraryExport<?>... libs)
ExportLibrary
. Do not call manually. Multiple calls
with the same receiver class will lead to an IllegalStateException
.