use of com.google.classyshark.silverghost.translator.java.dex.MetaObjectDex in project android-classyshark by google.
the class MetaObjectFactory method getMetaObjectFromDex.
private static MetaObject getMetaObjectFromDex(String className, File archiveFile) {
MetaObject result;
try {
DexFile dexFile = DexlibLoader.loadDexFile(archiveFile);
ClassDef classDef = DexlibAdapter.getClassDefByName(className, dexFile);
result = new MetaObjectDex(classDef);
} catch (Exception e) {
result = new MetaObjectClass(Exception.class);
}
return result;
}
Aggregations