Module xl.compiler

Class PackageImportOnDemand


public final class PackageImportOnDemand extends ImportOnDemandScope
  • Constructor Details

    • PackageImportOnDemand

      public PackageImportOnDemand(Scope enclosing, Package imported)
  • Method Details

    • findMembers

      public void findMembers(String name, int flags, Members list)
      Description copied from class: Scope
      Finds all members which are declared in this scope or enclosing scopes. This method should be overwritten by subclasses; an invocation of super.findMembers has to be included in order to look for members in enclosing scopes. The flags are a combination of the bit masks defined in Members, they are used to restrict the range of possible members.
      Overrides:
      findMembers in class Scope
      Parameters:
      name - simple name of the members to find
      flags - combination of masks defined in Members
      list - found members are added to this list
    • toString

      public String toString()
      Overrides:
      toString in class Object