Schnittstelle IModuleBinding
- Alle Superschnittstellen:
IBinding
A module binding represents a module (added in JLS9 API).
- Seit:
- 3.14
-
Feldübersicht
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.core.dom.IBinding
ANNOTATION, MEMBER_VALUE_PAIR, METHOD, MODULE, PACKAGE, TYPE, VARIABLE
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns 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.getImplementations
(ITypeBinding service) Returns the implementations that implement the given service in this module.default int
getKind()
Returns the kind of bindings this is.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.Returns all required modules.Returns the services provided by this module.getUses()
Returns the services used by this module.boolean
isOpen()
Returns whether this module is open or not.Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.dom.IBinding
equals, getAnnotations, getJavaElement, getKey, getModifiers, getName, isDeprecated, isEqualTo, isRecovered, isSynthetic, toString
-
Methodendetails
-
getKind
default int getKind()Beschreibung aus Schnittstelle kopiert:IBinding
Returns the kind of bindings this is. That is one of the kind constants:PACKAGE
,TYPE
,VARIABLE
,METHOD
,ANNOTATION
,MEMBER_VALUE_PAIR
, orMODULE
.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.
-
isOpen
boolean isOpen()Returns whether this module is open or not.- Gibt zurück:
true
if open,false
otherwise
-
getRequiredModules
IModuleBinding[] getRequiredModules()Returns all required modules.The resulting bindings are in no particular order.
- Gibt zurück:
- all required modules
-
getExportedPackages
IPackageBinding[] getExportedPackages()Returns all exported packages.The resulting bindings are in no particular order.
- Gibt zurück:
- array of exported package bindings
-
getExportedTo
If this module exports the given package to specific modules, returns the array of names of modules, otherwise returns an empty array.- Parameter:
packageBinding
- a package binding for which targeted modules are declared- Gibt zurück:
- array of names of targeted modules
-
getOpenedPackages
IPackageBinding[] getOpenedPackages()Returns all opened packages.The resulting bindings are in no particular order.
- Gibt zurück:
- array of package bindings
-
getOpenedTo
If this module opens the given package to specific modules, returns the array of names of modules, otherwise returns an empty array.The resulting bindings are in no particular order.
- Parameter:
packageBinding
- a package binding for which targeted modules are declared- Gibt zurück:
- array of names of targeted modules
-
getUses
ITypeBinding[] getUses()Returns the services used by this module.The resulting bindings are in no particular order.
- Gibt zurück:
- array of type bindings
-
getServices
ITypeBinding[] getServices()Returns the services provided by this module.The resulting services are in no particular order.
- Gibt zurück:
- array of services
-
getImplementations
Returns the implementations that implement the given service in this module.- Gibt zurück:
- array of implementation type bindings, in declaration order
-