Klasse JavaModelAccess
java.lang.Object
org.aspectj.org.eclipse.jdt.core.provisional.JavaModelAccess
Provisional API for use by JDT/UI or JDT/Debug, which may possibly be removed in a future version.
See Bug 522391.
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic IModuleDescription
Returns theIModuleDescription
that the given java element contains when regarded as an automatic module.static String[]
getRequiredModules
(IModuleDescription module) Veraltet.static boolean
isSystemModule
(IModuleDescription module) Veraltet.please useIModuleDescription.isSystemModule()
-
Konstruktordetails
-
JavaModelAccess
public JavaModelAccess()
-
-
Methodendetails
-
getRequiredModules
@Deprecated public static String[] getRequiredModules(IModuleDescription module) throws JavaModelException Veraltet.this provisional API has been promoted toIModuleDescription.getRequiredModuleNames()
Answer the names of all modules directly required from the given module.- Parameter:
module
- the module whose "requires" directives are queried- Gibt zurück:
- a non-null array of module names
- Löst aus:
JavaModelException
-
getAutomaticModuleDescription
public static IModuleDescription getAutomaticModuleDescription(IJavaElement element) throws JavaModelException, IllegalArgumentException Returns theIModuleDescription
that the given java element contains when regarded as an automatic module. The element must be anIPackageFragmentRoot
or anIJavaProject
.The returned module descriptor has a name (
getElementName()
) following the specification ofjava.lang.module.ModuleFinder.of(Path...)
, but it contains no other useful information.- Gibt zurück:
- the
IModuleDescription
representing this java element as an automatic module, nevernull
. - Löst aus:
JavaModelException
IllegalArgumentException
- if the provided element is neitherIPackageFragmentRoot
norIJavaProject
- Seit:
- 3.14
-
isSystemModule
Veraltet.please useIModuleDescription.isSystemModule()
Answer whether the given module is a system module.This provisional API may likely be changed into a direct method
IModuleDescription.isSystemModule()
.- Parameter:
module
- the module being queried about- Gibt zurück:
true
iff the module is defined in the system library (also known as JRE).- Seit:
- 3.18
-
IModuleDescription.getRequiredModuleNames()