Class GcTypeMapper
java.lang.Object
ai.tegmentum.webassembly4j.runtime.gc.GcTypeMapper
Maps Java classes annotated with
GcMapped to WebAssembly GC struct types.
Caches type mappings for reuse. Thread-safe.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionai.tegmentum.webassembly4j.api.gc.GcStructTypetoStructType(Class<?> type) Returns the GC struct type for the given Java class.
-
Constructor Details
-
GcTypeMapper
public GcTypeMapper()
-
-
Method Details
-
toStructType
Returns the GC struct type for the given Java class.- Parameters:
type- a class annotated withGcMapped- Returns:
- the corresponding GC struct type
- Throws:
IllegalArgumentException- if the class is not annotated or has unsupported fields
-