public interface AccessibilityQueryImplementation2
A default implementation is registered by the
org.netbeans.modules.java.project
module which looks up the
project corresponding to the file (if any) and checks whether that
project has an implementation of this interface in its lookup. If so, it
delegates to that implementation. Therefore it is not generally necessary
for a project type provider to register its own global implementation of
this query, if it depends on the Java Project module and uses this style.
AccessibilityQuery
,
FileOwnerQuery
,
Project
Modifier and Type | Interface and Description |
---|---|
static interface |
AccessibilityQueryImplementation2.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 |
---|---|
AccessibilityQueryImplementation2.Result |
isPubliclyAccessible(FileObject pkg)
Checks whether a given Java package (folder of source files)
is intended to be publicly accessed by code residing in other
compilation units.
|
@CheckForNull AccessibilityQueryImplementation2.Result isPubliclyAccessible(@NonNull FileObject pkg)
pkg
- a Java source packageAccessibilityQueryImplementation2.Result
object encapsulating the accessibility of the Java package.