KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > compiler > ClassCompiler


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.compiler;
13
14 import java.util.Map JavaDoc;
15 import java.util.Collection JavaDoc;
16
17 /**
18  * Something that will take a Map of fully qualified name -> src code and
19  * return a Map of fully qualified name -> bytecode for each class.
20  */

21 public interface ClassCompiler {
22
23     /**
24      * Compile each class in classMap and return a corresponding bytecode.
25      *
26      * @param classMap Fully qualified class name -> source code
27      * @param loader Use this to load referenced classes
28      * @return Map of class name -> byte[] containing bytecode
29      */

30     public Map JavaDoc compile(Map JavaDoc classMap, ClassLoader JavaDoc loader);
31
32 }
33
34
Popular Tags