All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.thoughtworks.qdox.DefaultJavaClassCache Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.1.0
Show newest version
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);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy