Interface TypePluginCompleteInterfaceInfo
- All Superinterfaces:
FunctionPointer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Generated("org.javagi.JavaGI")
public interface TypePluginCompleteInterfaceInfo
extends FunctionPointer
Functional interface declaration of the TypePluginCompleteInterfaceInfo callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidrun(TypePlugin plugin, Type instanceType, Type interfaceType, InterfaceInfo info) The type of thecompleteInterfaceInfofunction ofGTypePluginClass.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, long, long, MemorySegment)method.default voidupcall(MemorySegment plugin, long instanceType, long interfaceType, MemorySegment info) Theupcallmethod is called from native code.
-
Method Details
-
run
The type of thecompleteInterfaceInfofunction ofGTypePluginClass.- Parameters:
plugin- theGTypePlugininstanceType- theGTypeof an instantiatable type to which the interface is addedinterfaceType- theGTypeof the interface whose info is completedinfo- theGInterfaceInfoto fill in
-
upcall
default void upcall(MemorySegment plugin, long instanceType, long interfaceType, MemorySegment info) Theupcallmethod is called from native code. The parameters are marshaled andrun(TypePlugin, Type, Type, InterfaceInfo)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, long, long, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-