Klasse ModuleBinding.UnNamedModule

Alle implementierten Schnittstellen:
IUpdatableModule
Umschließende Klasse:
ModuleBinding

public static class ModuleBinding.UnNamedModule extends ModuleBinding
  • Methodendetails

    • getAllRequiredModules

      public ModuleBinding[] getAllRequiredModules()
      Beschreibung aus Klasse kopiert: ModuleBinding
      Get all the modules required by this module All required modules include modules explicitly specified as required in the module declaration as well as implicit dependencies - those specified as ' requires transitive ' by one of the dependencies
      Setzt außer Kraft:
      getAllRequiredModules in Klasse ModuleBinding
      Gibt zurück:
      An array of all required modules
    • canAccess

      public boolean canAccess(PackageBinding pkg)
      Beschreibung aus Klasse kopiert: ModuleBinding
      Check if the given package is accessible by this module. True when the package is declared in this module or exported by some required module to this module. See ModuleBinding.isPackageExportedTo(PackageBinding, ModuleBinding)
      Setzt außer Kraft:
      canAccess in Klasse ModuleBinding
      Parameter:
      pkg -
      Gibt zurück:
      True, if the package is accessible by this module, false otherwise
    • isPackageExportedTo

      public boolean isPackageExportedTo(PackageBinding pkg, ModuleBinding client)
      Beschreibung aus Klasse kopiert: ModuleBinding
      Check if the specified package is owned by the current module and exported to the client module. True if the package appears in the list of exported packages and when the export is targeted, the module appears in the targets of the exports statement.
      Setzt außer Kraft:
      isPackageExportedTo in Klasse ModuleBinding
      Parameter:
      pkg - - the package whose visibility is to be checked
      client - - the module that wishes to use the package
      Gibt zurück:
      true if the package is visible to the client module, false otherwise
    • isUnnamed

      public boolean isUnnamed()
      Setzt außer Kraft:
      isUnnamed in Klasse ModuleBinding
    • nameForLookup

      public char[] nameForLookup()
      Beschreibung aus Klasse kopiert: ModuleBinding
      Answer the name of this module as it should be used for package or type lookup. Unnamed and automatic modules answer ModuleBinding.ANY or ModuleBinding.ANY_NAMED resp., to signal that lookup should search in all accessible (named) modules.
      Setzt außer Kraft:
      nameForLookup in Klasse ModuleBinding
    • nameForCUCheck

      public char[] nameForCUCheck()
      Beschreibung aus Klasse kopiert: ModuleBinding
      Answer the name of this module as it should be used for hasCompilationUnit() checks.
      Setzt außer Kraft:
      nameForCUCheck in Klasse ModuleBinding
    • readableName

      public char[] readableName()
      Setzt außer Kraft:
      readableName in Klasse ModuleBinding
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse ModuleBinding