ANNOTATION, MEMBER_VALUE_PAIR, METHOD, MODULE, PACKAGE, TYPE, VARIABLE
Modifier and Type | Method and Description |
---|---|
IPackageBinding[] |
getExportedPackages()
Returns all exported packages.
|
String[] |
getExportedTo(IPackageBinding packageBinding)
If this module exports the given package to specific modules, returns the array of names of
modules, otherwise returns an empty array.
|
ITypeBinding[] |
getImplementations(ITypeBinding service)
Returns the implementations that implement the given service in this module.
|
default int |
getKind()
Returns the kind of bindings this is.
|
IPackageBinding[] |
getOpenedPackages()
Returns all opened packages.
|
String[] |
getOpenedTo(IPackageBinding packageBinding)
If this module opens the given package to specific modules, returns the array of names of
modules, otherwise returns an empty array.
|
IModuleBinding[] |
getRequiredModules()
Returns all required modules.
|
ITypeBinding[] |
getServices()
Returns the services provided by this module.
|
ITypeBinding[] |
getUses()
Returns the services used by this module.
|
boolean |
isOpen()
Returns whether this module is open or not.
|
equals, getAnnotations, getJavaElement, getKey, getModifiers, getName, isDeprecated, isEqualTo, isRecovered, isSynthetic, toString
default int getKind()
IBinding
PACKAGE
,
TYPE
,
VARIABLE
,
METHOD
,
ANNOTATION
,
MEMBER_VALUE_PAIR
, or
MODULE
.
Note that additional kinds might be added in the future, so clients should not assume this list is exhaustive and should program defensively, e.g. by having a reasonable default in a switch statement.
boolean isOpen()
true
if open, false
otherwiseIModuleBinding[] getRequiredModules()
The resulting bindings are in no particular order.
IPackageBinding[] getExportedPackages()
The resulting bindings are in no particular order.
String[] getExportedTo(IPackageBinding packageBinding)
packageBinding
- a package binding for which targeted modules are declaredIPackageBinding[] getOpenedPackages()
The resulting bindings are in no particular order.
String[] getOpenedTo(IPackageBinding packageBinding)
The resulting bindings are in no particular order.
packageBinding
- a package binding for which targeted modules are declaredITypeBinding[] getUses()
The resulting bindings are in no particular order.
ITypeBinding[] getServices()
The resulting services are in no particular order.
ITypeBinding[] getImplementations(ITypeBinding service)
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.