Class FFMConfig
java.lang.Object
org.lwjgl.system.ffm.FFMConfig
Binding configuration, used to customize the generation of binding implementations.
It also acts as a registry for Binder instances.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanchecks()Returns whether runtime checks are enabled.booleanReturns whether generator debug output is enabled.Returns the critical overrideFunctionassociated with this configuration.Returns theMethodHandles.Lookupassociated with this configuration.@Nullable Class<? extends Annotation> Returns the nullable annotation class associated with this configuration.<T> StructBinder<T> getStructBinder(Class<T> type) Returns theStructBinderregistered for the specified struct interface.@Nullable SymbolLookupReturns theSymbolLookupassociated with this configuration.@Nullable TraceConsumerReturns theTraceConsumerassociated with this configuration.Returns the tracing filterPredicateassociated with this configuration.<T> UnionBinder<T> getUnionBinder(Class<T> type) Returns theUnionBinderregistered for the specified union interface.<T> UpcallBinder<T> getUpcallBinder(Class<T> type) Returns theUpcallBinderregistered for the specified upcall interface.booleanReturns true if aBinderhas been registered for the specified type.
-
Method Details
-
getLookup
Returns theMethodHandles.Lookupassociated with this configuration.- Returns:
- the lookup instance
-
hasBinder
Returns true if aBinderhas been registered for the specified type.- Parameters:
type- an upcall, struct or union interface- Returns:
trueif such aBinderhas been registered
-
getStructBinder
Returns theStructBinderregistered for the specified struct interface.- Parameters:
type- a struct interface- Returns:
- the registered
StructBinder - Throws:
NullPointerException- if noStructBinderis registered for the specified type
-
getUnionBinder
Returns theUnionBinderregistered for the specified union interface.- Parameters:
type- a union interface- Returns:
- the registered
UnionBinder - Throws:
NullPointerException- if noUnionBinderis registered for the specified type
-
getUpcallBinder
Returns theUpcallBinderregistered for the specified upcall interface.- Parameters:
type- an upcall interface- Returns:
- the registered
UpcallBinder - Throws:
NullPointerException- if noUpcallBinderis registered for the specified type
-
getNullableAnnotation
Returns the nullable annotation class associated with this configuration.- Returns:
- the nullable annotation class, or
nullif none is set
-
getSymbolLookup
Returns theSymbolLookupassociated with this configuration.- Returns:
- the symbol lookup, or
nullif none is set
-
getTraceConsumer
Returns theTraceConsumerassociated with this configuration.- Returns:
- the trace consumer, or
nullif none is set
-
getTracingFilter
-
getCriticalOverride
-
checks
public boolean checks()Returns whether runtime checks are enabled.- Returns:
trueif runtime checks are enabled
-
debugGenerator
public boolean debugGenerator()Returns whether generator debug output is enabled.- Returns:
trueif generator debug output is enabled
-