proguard.util.HierarchyProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proguard-core Show documentation
Show all versions of proguard-core Show documentation
ProGuardCORE is a free library to read, analyze, modify, and write Java class files.
package proguard.util;
import java.util.Set;
import org.jetbrains.annotations.Nullable;
import proguard.classfile.Clazz;
/**
* And interface to be implemented by classes that are able to provide information on the hierarchy
* of classes.
*
* For example implementations could simply use a {@link
* proguard.classfile.visitor.ClassHierarchyTraveler} or provide faster access by pre-computing the
* class hierarchy.
*/
public interface HierarchyProvider {
/**
* @param className name of the {@link Clazz}.
* @return The {@link Clazz} object.
*/
@Nullable
Clazz getClazz(String className);
/**
* @param className name of the parent {@link Clazz}.
* @return A set of names of the subclasses, not including the parent {@link Clazz}'s.
*/
Set getSubClasses(String className);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy