use of jadx.api.ICodeCache in project jadx by skylot.
the class ClassNode method getCodeFromCache.
@Nullable
public ICodeInfo getCodeFromCache() {
ICodeCache codeCache = root().getCodeCache();
String clsRawName = getRawName();
ICodeInfo codeInfo = codeCache.get(clsRawName);
if (codeInfo == ICodeInfo.EMPTY) {
return null;
}
return codeInfo;
}
use of jadx.api.ICodeCache in project jadx by skylot.
the class ClassNode method decompile.
private synchronized ICodeInfo decompile(boolean searchInCache) {
if (isInner()) {
return ICodeInfo.EMPTY;
}
ICodeCache codeCache = root().getCodeCache();
String clsRawName = getRawName();
if (searchInCache) {
ICodeInfo code = codeCache.get(clsRawName);
if (code != null && code != ICodeInfo.EMPTY) {
return code;
}
}
ICodeInfo codeInfo = ProcessClass.generateCode(this);
codeCache.add(clsRawName, codeInfo);
return codeInfo;
}
use of jadx.api.ICodeCache in project jadx by skylot.
the class ClassNode method unloadFromCache.
private void unloadFromCache() {
if (isInner()) {
return;
}
ICodeCache codeCache = root().getCodeCache();
codeCache.remove(getRawName());
}
Aggregations