Package proguard.util

Class BasicHierarchyProvider

  • All Implemented Interfaces:
    HierarchyProvider

    public class BasicHierarchyProvider
    extends java.lang.Object
    implements HierarchyProvider
    Basic implementation of HierarchyProvider, 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.
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BasicHierarchyProvider

        public BasicHierarchyProvider​(ClassPool programClassPool,
                                      ClassPool libraryClassPool)
    • Method Detail

      • getSubClasses

        public java.util.Set<java.lang.String> getSubClasses​(java.lang.String className)
        Specified by:
        getSubClasses in interface HierarchyProvider
        Parameters:
        className - name of the parent Clazz.
        Returns:
        A set of names of the subclasses, not including the parent Clazz's.