Interface EntryPool
- All Known Implementing Classes:
BasicEntryPool
public interface EntryPool
Outline of a pool that provides access to class metadata.
- Author:
- Matt Coley
-
Method Summary
Modifier and TypeMethodDescriptiongetClassesInPackage(String packageName) default DescribableEntrygetDescribable(String descriptor) voidregister(ClassEntry entry) Adds the given class to the current pool.
-
Method Details
-
register
Adds the given class to the current pool.- Parameters:
entry- Class to add.
-
getDescribable
- Parameters:
descriptor- Descriptor of some kind (primitive, array, or class)- Returns:
- Entry of the parsed primitive, array, or class type.
nullif the descriptor could not be mapped to a known entry.
-
getClass
- Parameters:
name- Internal class name. For instance"java/lang/String".- Returns:
- Entry of the class, if found within this pool.
-
getClassesInPackage
- 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.
-