public class InheritanceMap extends Object implements InheritanceProvider
| Modifier and Type | Field and Description |
|---|---|
static InheritanceMap |
EMPTY |
| Constructor and Description |
|---|
InheritanceMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(InheritanceProvider inheritanceProvider,
Collection<String> classes)
Generate an inheritance map for the given classes
|
List<String> |
getParents(String className)
Get the superclass and implemented interfaces of a class
|
boolean |
hasParents(String className) |
void |
load(BufferedReader reader,
com.google.common.collect.BiMap<String,String> classMap) |
void |
save(PrintWriter writer) |
void |
setParents(String className,
Collection<String> parents) |
int |
size() |
public static final InheritanceMap EMPTY
public void generate(InheritanceProvider inheritanceProvider, Collection<String> classes)
public void save(PrintWriter writer)
public void load(BufferedReader reader, com.google.common.collect.BiMap<String,String> classMap) throws IOException
IOExceptionpublic boolean hasParents(String className)
public List<String> getParents(String className)
InheritanceProvidergetParents in interface InheritanceProviderpublic void setParents(String className, Collection<String> parents)
public int size()
Copyright © 2012-2015. All Rights Reserved.