Interface EntryPool

All Known Implementing Classes:
BasicEntryPool

public interface EntryPool
Outline of a pool that provides access to class metadata.
Author:
Matt Coley
  • Method Details

    • register

      void register(@Nonnull ClassEntry entry)
      Adds the given class to the current pool.
      Parameters:
      entry - Class to add.
    • getDescribable

      @Nullable default DescribableEntry getDescribable(@Nonnull String descriptor)
      Parameters:
      descriptor - Descriptor of some kind (primitive, array, or class)
      Returns:
      Entry of the parsed primitive, array, or class type. null if the descriptor could not be mapped to a known entry.
    • getClass

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

      @Nonnull List<ClassEntry> getClassesInPackage(@Nullable String packageName)
      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.