Methods Summary |
---|
public void | addExcludedClass(java.lang.String className)
imp.addExcludedClass(className);
|
public void | addExcludedPackage(java.lang.String pkgName)
imp.addExcludedPackage(pkgName);
|
public void | addExcludedPattern(java.lang.String pattern)
imp.addExcludedPattern(pattern);
|
public boolean | buildClosure(java.lang.String className)
logger.entering(myClassName, "buildClosure", className); // NOI18N
return imp.buildClosure(className);
|
public boolean | buildClosure(java.util.jar.JarFile jar)
return imp.buildClosure(jar);
|
public java.util.Collection | getClosure()
return imp.getClosure();
|
public java.util.Map | getFailed()
return imp.getFailed();
|
public java.util.Collection | getNativeMethods()
return imp.getNativeMethods();
|
public static void | main(java.lang.String[] args)
if (args.length < 2) {
System.out.println(
"Usage : java " + com.sun.enterprise.tools.verifier.apiscan.classfile.ClosureCompilerImpl.class.getName() + // NOI18N
" <classpath> <external class name(s)>"); // NOI18N
System.out.println("Example: to find the closure of " + // NOI18N
"mypkg.MySessionBean which is packaged in myejb.jar run\n" + // NOI18N
" java " + com.sun.enterprise.tools.verifier.apiscan.classfile.ClosureCompilerImpl.class.getName() + // NOI18N
" path_to_j2ee.jar"+File.pathSeparator+"path_to_myejb.jar"+ // NOI18N
" mypkg.MySessionBean"); // NOI18N
System.exit(1);
}
String cp=args[0];
System.out.println("Using classpath " + cp); // NOI18N
ClassFileLoader cfl = ClassFileLoaderFactory.newInstance(
new Object[]{cp});
ClosureCompilerImpl closure = new ClosureCompilerImpl(cfl);
closure.addExcludedPattern("java."); // NOI18N
for (int i = 1; i < args.length; i++) {
String clsName = args[i];
System.out.println("Building closure for " + clsName); // NOI18N
closure.reset();
closure.buildClosure(clsName);
System.out.println("The closure is [" + closure+"\n]"); // NOI18N
}
|
public void | reset()Reset the closure for next closure computation.
Clear the internal cache. It includes the result it has collected since
last reset(). But it does not clear the excludedd list. If you want to
reset the excluded list, create a new ClosureCompiler.
imp.reset();
|
public java.lang.String | toString()
return imp.toString();
|