Class BasicEntryPool

java.lang.Object
software.coley.sourcesolver.resolve.entry.BasicEntryPool
All Implemented Interfaces:
EntryPool

public class BasicEntryPool extends Object implements EntryPool
  • Constructor Details

    • BasicEntryPool

      public BasicEntryPool()
  • Method Details

    • register

      public void register(@Nonnull ClassEntry entry)
      Description copied from interface: EntryPool
      Adds the given class to the current pool.
      Specified by:
      register in interface EntryPool
      Parameters:
      entry - Class to add.
    • getClass

      @Nullable public ClassEntry getClass(@Nonnull String name)
      Specified by:
      getClass in interface EntryPool
      Parameters:
      name - Internal class name. For instance "java/lang/String".
      Returns:
      Entry of the class, if found within this pool.
    • getClassesInPackage

      @Nonnull public List<ClassEntry> getClassesInPackage(@Nullable String packageName)
      Specified by:
      getClassesInPackage in interface EntryPool
      Parameters:
      packageName - Internal package name. For instance "java/lang".
      Returns:
      List of all entries in the package (but not sub-packages) that are known to this pool.