public static interface Feature.QueryReachabilityAccess extends Feature.FeatureAccess
Feature.afterAnalysis(org.graalvm.nativeimage.hosted.Feature.AfterAnalysisAccess)
and
Feature.duringAnalysis(org.graalvm.nativeimage.hosted.Feature.DuringAnalysisAccess)
.Modifier and Type | Method and Description |
---|---|
boolean |
isReachable(Class<?> clazz)
Returns true if the static analysis determined that the provided class is reachable at
run time.
|
boolean |
isReachable(Executable method)
Returns true if the static analysis determined that the provided method is reachable at
run time.
|
boolean |
isReachable(Field field)
Returns true if the static analysis determined that the provided field is reachable at
run time.
|
Set<Executable> |
reachableMethodOverrides(Executable baseMethod)
Returns all method overrides of the given {param baseMethod} that the static analysis
determined to be reachable at run time (including the {param baseMethod} itself).
|
Set<Class<?>> |
reachableSubtypes(Class<?> baseClass)
Returns all subtypes of the given {param baseClass} that the static analysis determined
to be reachable at run time (including the {param baseClass} itself).
|
findClassByName, getApplicationClassLoader, getApplicationClassPath, getApplicationModulePath
boolean isReachable(Class<?> clazz)
boolean isReachable(Field field)
boolean isReachable(Executable method)
Set<Class<?>> reachableSubtypes(Class<?> baseClass)
Set<Executable> reachableMethodOverrides(Executable baseMethod)