Package proguard.util
Class BasicHierarchyProvider
- java.lang.Object
-
- proguard.util.BasicHierarchyProvider
-
- All Implemented Interfaces:
HierarchyProvider
public class BasicHierarchyProvider extends java.lang.Object implements HierarchyProvider
Basic implementation ofHierarchyProvider
, walking the class pools every time the sub-classes of a class are needed. If there is need to compute the hierarchy for a class multiple times and performance is a concern, rely on an implementation precomputing or caching the class hierarchy.
-
-
Constructor Summary
Constructors Constructor Description BasicHierarchyProvider(ClassPool programClassPool, ClassPool libraryClassPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Clazz
getClazz(java.lang.String className)
java.util.Set<java.lang.String>
getSubClasses(java.lang.String className)
-
-
-
Method Detail
-
getClazz
public Clazz getClazz(java.lang.String className)
- Specified by:
getClazz
in interfaceHierarchyProvider
- Parameters:
className
- name of theClazz
.- Returns:
- The
Clazz
object.
-
getSubClasses
public java.util.Set<java.lang.String> getSubClasses(java.lang.String className)
- Specified by:
getSubClasses
in interfaceHierarchyProvider
- Parameters:
className
- name of the parentClazz
.- Returns:
- A set of names of the subclasses, not including the parent
Clazz
's.
-
-