Package net.md_5.specialsource
Class InheritanceMap
java.lang.Object
net.md_5.specialsource.InheritanceMap
- All Implemented Interfaces:
InheritanceProvider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(InheritanceProvider inheritanceProvider, Collection<String> classes) Generate an inheritance map for the given classesgetParents(String className) Get the superclass and implemented interfaces of a classbooleanhasParents(String className) voidload(BufferedReader reader, com.google.common.collect.BiMap<String, String> classMap) voidsave(PrintWriter writer) voidsetParents(String className, Collection<String> parents) intsize()
-
Field Details
-
EMPTY
-
-
Constructor Details
-
InheritanceMap
public InheritanceMap()
-
-
Method Details
-
generate
Generate an inheritance map for the given classes -
save
-
load
public void load(BufferedReader reader, com.google.common.collect.BiMap<String, String> classMap) throws IOException- Throws:
IOException
-
hasParents
-
getParents
Description copied from interface:InheritanceProviderGet the superclass and implemented interfaces of a class- Specified by:
getParentsin interfaceInheritanceProvider- Parameters:
className-- Returns:
- List of interfaces, or null if no information is available and other providers should be checked
-
setParents
-
size
public int size()
-