Class ModuleBinding.UnNamedModule

All Implemented Interfaces:
IUpdatableModule
Enclosing class:
ModuleBinding

public static class ModuleBinding.UnNamedModule extends ModuleBinding
  • Method Details

    • getAllRequiredModules

      public ModuleBinding[] getAllRequiredModules()
      Description copied from class: 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
      Overrides:
      getAllRequiredModules in class ModuleBinding
      Returns:
      An array of all required modules
    • canAccess

      public boolean canAccess(PackageBinding pkg)
      Description copied from class: 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)
      Overrides:
      canAccess in class ModuleBinding
      Parameters:
      pkg -
      Returns:
      True, if the package is accessible by this module, false otherwise
    • isPackageExportedTo

      public boolean isPackageExportedTo(PackageBinding pkg, ModuleBinding client)
      Description copied from class: 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.
      Overrides:
      isPackageExportedTo in class ModuleBinding
      Parameters:
      pkg - - the package whose visibility is to be checked
      client - - the module that wishes to use the package
      Returns:
      true if the package is visible to the client module, false otherwise
    • isUnnamed

      public boolean isUnnamed()
      Overrides:
      isUnnamed in class ModuleBinding
    • nameForLookup

      public char[] nameForLookup()
      Description copied from class: 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.
      Overrides:
      nameForLookup in class ModuleBinding
    • nameForCUCheck

      public char[] nameForCUCheck()
      Description copied from class: ModuleBinding
      Answer the name of this module as it should be used for hasCompilationUnit() checks.
      Overrides:
      nameForCUCheck in class ModuleBinding
    • readableName

      public char[] readableName()
      Overrides:
      readableName in class ModuleBinding
    • toString

      public String toString()
      Overrides:
      toString in class ModuleBinding