use of jadx.core.clsp.ClspGraph in project jadx by skylot.
the class JadxClasspathTest method initClsp.
@Before
public void initClsp() throws IOException, DecodeException {
clsp = new ClspGraph();
clsp.load();
dex = mock(DexNode.class);
RootNode rootNode = mock(RootNode.class);
when(rootNode.getClsp()).thenReturn(clsp);
when(dex.root()).thenReturn(rootNode);
}
use of jadx.core.clsp.ClspGraph in project jadx by skylot.
the class TypeMergeTest method initClsp.
@Before
public void initClsp() throws IOException, DecodeException {
ClspGraph clsp = new ClspGraph();
clsp.load();
dex = mock(DexNode.class);
RootNode rootNode = mock(RootNode.class);
when(rootNode.getClsp()).thenReturn(clsp);
when(dex.root()).thenReturn(rootNode);
}
use of jadx.core.clsp.ClspGraph in project jadx by skylot.
the class RootNode method initClassPath.
public void initClassPath() throws DecodeException {
try {
if (this.clsp == null) {
ClspGraph clsp = new ClspGraph();
clsp.load();
List<ClassNode> classes = new ArrayList<ClassNode>();
for (DexNode dexNode : dexNodes) {
classes.addAll(dexNode.getClasses());
}
clsp.addApp(classes);
this.clsp = clsp;
}
} catch (IOException e) {
throw new DecodeException("Error loading classpath", e);
}
}
Aggregations