@Nonnull public Iterator<String> getParameterNames() { DexBackedMethodImplementation methodImpl = getImplementation(); if (methodImpl != null) { return methodImpl.getParameterNames(null); } return ImmutableSet.<String>of().iterator(); }
/** * Calculate and return the private size of a method definition. * * Calculated as: method_idx_diff + access_flags + code_off + * implementation size + reference size * * @return size in bytes */ public int getSize() { int size = 0; DexReader reader = dexFile.readerAt(startOffset); reader.readLargeUleb128(); //method_idx_diff reader.readSmallUleb128(); //access_flags reader.readSmallUleb128(); //code_off size += reader.getOffset() - startOffset; DexBackedMethodImplementation impl = getImplementation(); if (impl != null) { size += impl.getSize(); } DexBackedMethodReference methodRef = new DexBackedMethodReference(dexFile, methodIndex); size += methodRef.getSize(); return size; } }
@Nonnull public Iterator<String> getParameterNames() { DexBackedMethodImplementation methodImpl = getImplementation(); if (methodImpl != null) { return methodImpl.getParameterNames(null); } return ImmutableSet.<String>of().iterator(); }
@Nonnull public Iterator<String> getParameterNames() { DexBackedMethodImplementation methodImpl = getImplementation(); if (methodImpl != null) { return methodImpl.getParameterNames(null); } return Iterators.emptyIterator(); }
boolean find = false; for (DexBackedMethod dexBackedMethod : newDexBackedMethods) { Iterator<? extends Instruction> instructions = dexBackedMethod.getImplementation().getInstructions().iterator(); while (instructions.hasNext()) { Instruction instruction = instructions.next();
int baseAcc = baseMethod.getAccessFlags(); DexBackedMethodImplementation newMethodImplementation = newMethod.getImplementation(); DexBackedMethodImplementation baseMethodImplementation = baseMethod.getImplementation(); if (!DexCompareUtils.compareMethod(newMethodImplementation, baseMethodImplementation)|| !equalsImpl(baseAnnotations,newAnnotations)||newAcc!=baseAcc) {
/** * Calculate and return the private size of a method definition. * * Calculated as: method_idx_diff + access_flags + code_off + * implementation size + reference size * * @return size in bytes */ public int getSize() { int size = 0; DexReader reader = dexFile.readerAt(startOffset); reader.readLargeUleb128(); //method_idx_diff reader.readSmallUleb128(); //access_flags reader.readSmallUleb128(); //code_off size += reader.getOffset() - startOffset; DexBackedMethodImplementation impl = getImplementation(); if (impl != null) { size += impl.getSize(); } DexBackedMethodReference methodRef = new DexBackedMethodReference(dexFile, methodIndex); size += methodRef.getSize(); return size; } }