Interface Feature.CompilationAccess
- All Superinterfaces:
Feature.FeatureAccess
- All Known Subinterfaces:
Feature.AfterCompilationAccess, Feature.BeforeCompilationAccess, Feature.BeforeHeapLayoutAccess
- Enclosing interface:
Feature
Access methods available for
Feature.beforeCompilation(Feature.BeforeCompilationAccess) and
Feature.afterCompilation(Feature.AfterCompilationAccess).- Since:
- 19.0
-
Method Summary
Modifier and TypeMethodDescriptionlongobjectFieldOffset(Field field) Returns the field offset of the provided instance field.voidregisterAsImmutable(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.voidregisterAsImmutable(Object root, Predicate<Object> includeObject) Register the object, and everything it transitively references, as immutable.Methods inherited from interface Feature.FeatureAccess
findClassByName, getApplicationClassLoader, getApplicationClassPath, getApplicationModulePath
-
Method Details
-
objectFieldOffset
Returns the field offset of the provided instance field.- Since:
- 19.0
-
registerAsImmutable
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.- Since:
- 19.0
-
registerAsImmutable
-