com.thoughtworks.qdox.DefaultJavaClassCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qdox Show documentation
Show all versions of qdox Show documentation
QDox is a high speed, small footprint parser for extracting class/interface/method definitions from source files
complete with JavaDoc @tags. It is designed to be used by active code generators or documentation tools.
package com.thoughtworks.qdox;
import java.util.Hashtable;
import java.util.Map;
import com.thoughtworks.qdox.model.JavaClass;
import com.thoughtworks.qdox.model.JavaClassCache;
public class DefaultJavaClassCache implements JavaClassCache {
private Map classes = new Hashtable();
public JavaClass getClassByName(String name) {
return (JavaClass) classes.get(name);
}
public JavaClass[] getClasses() {
return (JavaClass[]) classes.values().toArray(new JavaClass[0]);
}
public void putClassByName(String name, JavaClass javaClass) {
classes.put(name, javaClass);
}
}