protected String rebuildFileName(String s) { s = BaksmaliDumper.escapeId(s); s = s.replace('\\', '-'); String low = s.toLowerCase(); if (hases.contains(low)) { return s + "_d2j" + i++; } else { hases.add(low); } return s; }
static String escapeMethod(Method method) { return BaksmaliDumper.escapeType(method.getOwner()) + "->" + BaksmaliDumper.escapeId(method.getName()) + BaksmaliDumper.escapeMethodDesc(method); } static String escapeMethodDesc(Method m) {
Method method = m.method; appendAccess(m.access, buff); buff.append(escapeId(method.getName())).append(escapeMethodDesc(method)); out.s(buff.toString()); out.push(); String debugName = parameterNames == null ? null : i < parameterNames.size() ? parameterNames.get(i) : null; if (debugName != null) { out.s(".parameter \"" + escapeId(debugName) + "\" # " + type); } else { out.s(".parameter # " + type);
Object[] vs = (Object[]) o; if (name != null) { out.s(escapeId(name) + " = {"); } else { out.s("{"); DexAnnotationNode dexAnnotationNode = (DexAnnotationNode) o; if (name != null) { out.s(escapeId(name) + " = .subannotation " + escapeType(dexAnnotationNode.type)); } else { out.s(".subannotation " + escapeType(dexAnnotationNode.type)); StringBuilder sb = new StringBuilder(); if (name != null) { sb.append(escapeId(name)).append(" = ");
appendAccess(f.access | ACCESS_FIELD, buff); Field field = f.field; buff.append(escapeId(f.field.getName())).append(":").append(escapeType(field.getType())); if (f.cst != null) { buff.append(" = ");