for (Method method : defItem.getDirectMethods()) { loadMethod(method, sc, da, dexMethod);
PoolClassDef(@Nonnull ClassDef classDef) { this.classDef = classDef; interfaces = new TypeListPool.Key<List<String>>(ImmutableList.copyOf(classDef.getInterfaces())); staticFields = ImmutableSortedSet.copyOf(classDef.getStaticFields()); instanceFields = ImmutableSortedSet.copyOf(classDef.getInstanceFields()); directMethods = ImmutableSortedSet.copyOf( Iterables.transform(classDef.getDirectMethods(), PoolMethod.TRANSFORM)); virtualMethods = ImmutableSortedSet.copyOf( Iterables.transform(classDef.getVirtualMethods(), PoolMethod.TRANSFORM)); }
PoolClassDef(@Nonnull ClassDef classDef) { this.classDef = classDef; interfaces = new TypeListPool.Key<SortedSet<String>>(ImmutableSortedSet.copyOf(classDef.getInterfaces())); staticFields = ImmutableSortedSet.copyOf(classDef.getStaticFields()); instanceFields = ImmutableSortedSet.copyOf(classDef.getInstanceFields()); directMethods = ImmutableSortedSet.copyOf( Iterables.transform(classDef.getDirectMethods(), PoolMethod.TRANSFORM)); virtualMethods = ImmutableSortedSet.copyOf( Iterables.transform(classDef.getVirtualMethods(), PoolMethod.TRANSFORM)); }
PoolClassDef(@Nonnull ClassDef classDef) { this.classDef = classDef; interfaces = new TypeListPool.Key<List<String>>(ImmutableList.copyOf(classDef.getInterfaces())); staticFields = ImmutableSortedSet.copyOf(classDef.getStaticFields()); instanceFields = ImmutableSortedSet.copyOf(classDef.getInstanceFields()); directMethods = ImmutableSortedSet.copyOf( Iterables.transform(classDef.getDirectMethods(), PoolMethod.TRANSFORM)); virtualMethods = ImmutableSortedSet.copyOf( Iterables.transform(classDef.getVirtualMethods(), PoolMethod.TRANSFORM)); }
@Override @Nonnull public Iterable<? extends Method> getDirectMethods() { return RewriterUtils.rewriteIterable(rewriters.getMethodRewriter(), classDef.getDirectMethods()); }
@Override @Nonnull public Iterable<? extends Method> getDirectMethods() { return RewriterUtils.rewriteIterable(rewriters.getMethodRewriter(), classDef.getDirectMethods()); }
@Override @Nonnull public Iterable<? extends Method> getDirectMethods() { return RewriterUtils.rewriteIterable(rewriters.getMethodRewriter(), classDef.getDirectMethods()); }
final Iterable<? extends Method> directMethods = classDef.getDirectMethods(); final Iterable<? extends Method> virtualMethods = classDef.getVirtualMethods();
final Iterable<? extends Method> directMethods = classDef.getDirectMethods(); final Iterable<? extends Method> virtualMethods = classDef.getVirtualMethods();
HashSet<String> fieldsSetInStaticConstructor = new HashSet<String>(); for (Method method: classDef.getDirectMethods()) { if (method.getName().equals("<clinit>")) { MethodImplementation impl = method.getImplementation();
HashSet<String> fieldsSetInStaticConstructor = new HashSet<String>(); for (Method method: classDef.getDirectMethods()) { if (method.getName().equals("<clinit>")) { MethodImplementation impl = method.getImplementation();
HashSet<String> fieldsSetInStaticConstructor = new HashSet<String>(); for (Method method: classDef.getDirectMethods()) { if (method.getName().equals("<clinit>")) { MethodImplementation impl = method.getImplementation();
HashSet<String> fieldsSetInStaticConstructor = new HashSet<String>(); for (Method method : classDef.getDirectMethods()) { if (method.getName().equals("<clinit>")) { MethodImplementation impl = method.getImplementation();
modifieds = (Set<? extends Method>) DexDiffInfo.modifiedMethods; } else { directMethods = classDef.getDirectMethods();
directMethods = ((DexBackedClassDef)classDef).getDirectMethods(false); } else { directMethods = classDef.getDirectMethods();
directMethods = ((DexBackedClassDef)classDef).getDirectMethods(false); } else { directMethods = classDef.getDirectMethods();
directMethods = ((DexBackedClassDef)classDef).getDirectMethods(false); } else { directMethods = classDef.getDirectMethods();
public static ImmutableClassDef of(ClassDef classDef) { if (classDef instanceof ImmutableClassDef) { return (ImmutableClassDef)classDef; } return new ImmutableClassDef( classDef.getType(), classDef.getAccessFlags(), classDef.getSuperclass(), classDef.getInterfaces(), classDef.getSourceFile(), classDef.getAnnotations(), classDef.getStaticFields(), classDef.getInstanceFields(), classDef.getDirectMethods(), classDef.getVirtualMethods()); }
public static ImmutableClassDef of(ClassDef classDef) { if (classDef instanceof ImmutableClassDef) { return (ImmutableClassDef)classDef; } return new ImmutableClassDef( classDef.getType(), classDef.getAccessFlags(), classDef.getSuperclass(), classDef.getInterfaces(), classDef.getSourceFile(), classDef.getAnnotations(), classDef.getStaticFields(), classDef.getInstanceFields(), classDef.getDirectMethods(), classDef.getVirtualMethods()); }
public static ImmutableClassDef of(ClassDef classDef) { if (classDef instanceof ImmutableClassDef) { return (ImmutableClassDef)classDef; } return new ImmutableClassDef( classDef.getType(), classDef.getAccessFlags(), classDef.getSuperclass(), classDef.getInterfaces(), classDef.getSourceFile(), classDef.getAnnotations(), classDef.getStaticFields(), classDef.getInstanceFields(), classDef.getDirectMethods(), classDef.getVirtualMethods()); }