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 TypeMethodDescriptionlong
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.Methods inherited from interface Feature.FeatureAccess
findClassByName, getApplicationClassLoader, getApplicationClassPath, getApplicationModulePath
Modifier and TypeMethodDescriptionClass
<?> findClassByName
(String className) Returns a class if it is present on the classpath.Returns theClassLoader
that can find all classes of the class path and module path.Returns the class path of the native image that is currently built.Returns the module path of the native image that is currently built.
-
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
-