void build(ClassDoc classDoc) {
ClassMetaData classMetaData = classDoc.getClassMetaData();
String superClassName = classMetaData.getSuperClassName();
if (superClassName != null) {
// Assume this is a class and so has implemented all properties and methods somewhere in the superclass hierarchy
ClassDoc superClass = model.getClassDoc(superClassName);
classDoc.setSuperClass(superClass);
}
List<String> interfaceNames = classMetaData.getInterfaceNames();
for (String interfaceName : interfaceNames) {
ClassDoc superInterface = model.findClassDoc(interfaceName);
if (superInterface != null) {
classDoc.getInterfaces().add(superInterface);
}
}