ClassFile classFile= new ClassFile(file);
ClassInputProcess inputProcess= new ClassInputProcess(arguments, classFile);
DEXmlvmOutputProcess outputProcess= new DEXmlvmOutputProcess(arguments, enableRedList, false);
outputProcess.addPreprocess(inputProcess);
CompilationBundle bundle= new CompilationBundle();
inputProcess.processPhase1(bundle);
outputProcess.processPhase1(bundle);
if (bundle.getResources().size() != 1)
{
return null;
}
XmlvmResource resource= bundle.getResources().iterator().next();
cache.put(file.getAbsolutePath(), resource);
return resource;
}