Klasse JavaModelAccess

java.lang.Object
org.aspectj.org.eclipse.jdt.core.provisional.JavaModelAccess

public class JavaModelAccess extends Object
Provisional API for use by JDT/UI or JDT/Debug, which may possibly be removed in a future version. See Bug 522391.
  • Konstruktordetails

    • JavaModelAccess

      public JavaModelAccess()
  • Methodendetails

    • getRequiredModules

      @Deprecated public static String[] getRequiredModules(IModuleDescription module) throws JavaModelException
      Veraltet.
      this provisional API has been promoted to IModuleDescription.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 the IModuleDescription that the given java element contains when regarded as an automatic module. The element must be an IPackageFragmentRoot or an IJavaProject.

      The returned module descriptor has a name (getElementName()) following the specification of java.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, never null.
      Löst aus:
      JavaModelException
      IllegalArgumentException - if the provided element is neither IPackageFragmentRoot nor IJavaProject
      Seit:
      3.14
    • isSystemModule

      @Deprecated public static boolean isSystemModule(IModuleDescription module)
      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