public static interface Feature.CompilationAccess extends Feature.FeatureAccess
Feature.beforeCompilation(org.graalvm.nativeimage.hosted.Feature.BeforeCompilationAccess) and
Feature.afterCompilation(org.graalvm.nativeimage.hosted.Feature.AfterCompilationAccess).| Modifier and Type | Method and Description |
|---|---|
long |
objectFieldOffset(Field field)
Returns the field offset of the provided instance field.
|
void |
registerAsImmutable(Object object)
Hint to the native image generator that the given object is immutable at runtime, i.e.,
can be placed in a read-only section of the native image heap.
|
void |
registerAsImmutable(Object root,
Predicate<Object> includeObject)
Register the object, and everything it transitively references, as immutable.
|
findClassByName, getApplicationClassLoader, getApplicationClassPath, getApplicationModulePathlong objectFieldOffset(Field field)
void registerAsImmutable(Object object)
void registerAsImmutable(Object root, Predicate<Object> includeObject)