private void internDebug(@Nonnull Method method) { for (MethodParameter param: method.getParameters()) { String paramName = param.getName(); if (paramName != null) { dexPool.stringSection.intern(paramName); } } MethodImplementation methodImpl = method.getImplementation(); if (methodImpl != null) { for (DebugItem debugItem: methodImpl.getDebugItems()) { switch (debugItem.getDebugItemType()) { case DebugItemType.START_LOCAL: StartLocal startLocal = (StartLocal)debugItem; dexPool.stringSection.internNullable(startLocal.getName()); dexPool.typeSection.internNullable(startLocal.getType()); dexPool.stringSection.internNullable(startLocal.getSignature()); break; case DebugItemType.SET_SOURCE_FILE: dexPool.stringSection.internNullable(((SetSourceFile) debugItem).getSourceFile()); break; } } } }
startLocal.getName(), startLocal.getType(), startLocal.getSignature()); break;
@Nonnull public static ImmutableStartLocal of(@Nonnull StartLocal startLocal) { if (startLocal instanceof ImmutableStartLocal) { return (ImmutableStartLocal)startLocal; } return new ImmutableStartLocal( startLocal.getCodeAddress(), startLocal.getRegister(), startLocal.getName(), startLocal.getType(), startLocal.getSignature()); }
@Nonnull public static ImmutableStartLocal of(@Nonnull StartLocal startLocal) { if (startLocal instanceof ImmutableStartLocal) { return (ImmutableStartLocal)startLocal; } return new ImmutableStartLocal( startLocal.getCodeAddress(), startLocal.getRegister(), startLocal.getName(), startLocal.getType(), startLocal.getSignature()); }
@Nonnull public static ImmutableStartLocal of(@Nonnull StartLocal startLocal) { if (startLocal instanceof ImmutableStartLocal) { return (ImmutableStartLocal)startLocal; } return new ImmutableStartLocal( startLocal.getCodeAddress(), startLocal.getRegister(), startLocal.getName(), startLocal.getType(), startLocal.getSignature()); }
@Override public boolean writeTo(IndentingWriter writer) throws IOException { writer.write(".local "); registerFormatter.writeTo(writer, startLocal.getRegister()); String name = startLocal.getName(); String type = startLocal.getType(); String signature = startLocal.getSignature(); if (name != null || type != null || signature != null) { writer.write(", "); LocalFormatter.writeLocal(writer, name, type, signature); } return true; } }
@Override public boolean writeTo(IndentingWriter writer) throws IOException { writer.write(".local "); registerFormatter.writeTo(writer, startLocal.getRegister()); String name = startLocal.getName(); String type = startLocal.getType(); String signature = startLocal.getSignature(); if (name != null || type != null || signature != null) { writer.write(", "); LocalFormatter.writeLocal(writer, name, type, signature); } return true; } }
@Override public boolean writeTo(IndentingWriter writer) throws IOException { writer.write(".local "); registerFormatter.writeTo(writer, startLocal.getRegister()); String name = startLocal.getName(); String type = startLocal.getType(); String signature = startLocal.getSignature(); if (name != null || type != null || signature != null) { writer.write(", "); LocalFormatter.writeLocal(writer, name, type, signature); } return true; } }
@Override public boolean writeTo(IndentingWriter writer) throws IOException { writer.write(".local "); registerFormatter.writeTo(writer, startLocal.getRegister()); String name = startLocal.getName(); String type = startLocal.getType(); String signature = startLocal.getSignature(); if (name != null || type != null || signature != null) { writer.write(", "); LocalFormatter.writeLocal(writer, name, type, signature); } return true; } }
private void internDebug(@Nonnull Method method) { for (MethodParameter param: method.getParameters()) { String paramName = param.getName(); if (paramName != null) { dexPool.stringSection.intern(paramName); } } MethodImplementation methodImpl = method.getImplementation(); if (methodImpl != null) { for (DebugItem debugItem: methodImpl.getDebugItems()) { switch (debugItem.getDebugItemType()) { case DebugItemType.START_LOCAL: StartLocal startLocal = (StartLocal)debugItem; dexPool.stringSection.internNullable(startLocal.getName()); dexPool.typeSection.internNullable(startLocal.getType()); dexPool.stringSection.internNullable(startLocal.getSignature()); break; case DebugItemType.SET_SOURCE_FILE: dexPool.stringSection.internNullable(((SetSourceFile) debugItem).getSourceFile()); break; } } } }
private void internDebug(@Nonnull Method method) { for (MethodParameter param: method.getParameters()) { String paramName = param.getName(); if (paramName != null) { stringPool.intern(paramName); } } MethodImplementation methodImpl = method.getImplementation(); if (methodImpl != null) { for (DebugItem debugItem: methodImpl.getDebugItems()) { switch (debugItem.getDebugItemType()) { case DebugItemType.START_LOCAL: StartLocal startLocal = (StartLocal)debugItem; stringPool.internNullable(startLocal.getName()); typePool.internNullable(startLocal.getType()); stringPool.internNullable(startLocal.getSignature()); break; case DebugItemType.SET_SOURCE_FILE: stringPool.internNullable(((SetSourceFile) debugItem).getSourceFile()); break; } } } }
startLocal.getName(), startLocal.getType(), startLocal.getSignature()); break;
startLocal.getName(), startLocal.getType(), startLocal.getSignature()); break;