public static interface Feature.BeforeAnalysisAccess extends Feature.FeatureAccess
Feature.beforeAnalysis(org.graalvm.nativeimage.Feature.BeforeAnalysisAccess).| Modifier and Type | Method and Description |
|---|---|
void |
registerAsAccessed(Field field)
Registers the provided field as accesses, i.e., the static analysis assumes the field is
used even if there are no explicit reads or writes in the bytecodes.
|
void |
registerAsInHeap(Class<?> type)
Registers the provided type as instantiated, i.e., the static analysis assumes that
instances of this type exist at run time even if there is no explicit instantiation in
the bytecodes.
|
void |
registerAsUnsafeAccessed(Field field)
Registers the provided field as written or read by
Unsafe, i.e., the
static analysis merges together all values of unsafe accessed fields of a specific type. |
void |
registerAsUsed(Class<?> type)
Registers the provided type a used, i.e., metadata for the type is put into the native
image.
|
findClassByNamevoid registerAsUsed(Class<?> type)
void registerAsInHeap(Class<?> type)
This implies that the type is also marked as used.
void registerAsAccessed(Field field)