KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > kirkk > analyzer > framework > bcel > BCELClassFactory


1 package com.kirkk.analyzer.framework.bcel;
2
3 import org.apache.bcel.classfile.*;
4 import com.kirkk.analyzer.framework.bcelbundle.*;
5 import java.io.*;
6
7 public class BCELClassFactory {
8
9     public static JavaClass getClass(String JavaDoc file, String JavaDoc className) throws IOException {
10         ClassParser classParser = new ClassParser(file, className);
11         JavaClass javaClass = classParser.parse();
12         //BCELPublicClass theClass = new BCELPublicClass(javaClass, null);
13
return javaClass;
14     }
15
16 }
Popular Tags