public class AccessibilityQuery extends Object
Suggested uses:
If the Java Project module is enabled, you may register an implementation to the lookup for a project rather than the default lookup.
AccessibilityQueryImplementation
Modifier and Type | Class and Description |
---|---|
static class |
AccessibilityQuery.Accessibility
The Java package accessibility.
|
static class |
AccessibilityQuery.Result
Result of finding accessibility of a Java package, encapsulating the answer as well as the
ability to listen to it.
|
Modifier and Type | Method and Description |
---|---|
static Boolean |
isPubliclyAccessible(FileObject pkg)
Check whether a given Java source package should be considered publicly
accessible for use by other compilation units.
|
static AccessibilityQuery.Result |
isPubliclyAccessible2(FileObject pkg)
Check whether a given Java source package should be considered publicly
accessible for use by other compilation units.
|
@CheckForNull public static Boolean isPubliclyAccessible(@NonNull FileObject pkg)
pkg
- a Java source package (must have a corresponding
ClassPath.SOURCE
root)@NonNull public static AccessibilityQuery.Result isPubliclyAccessible2(@NonNull FileObject pkg)
pkg
- a Java source package (must have a corresponding
ClassPath.SOURCE
root)AccessibilityQuery.Result
object encapsulating the accessibility of the Java package.
Results created for accessibility provided by the AccessibilityQueryImplementation
do not support listening.