Home
last modified time | relevance | path

Searched refs:methodImplementation (Results 1 – 10 of 10) sorted by relevance

/external/smali/dexlib2/src/main/java/org/jf/dexlib2/rewriter/
DMethodImplementationRewriter.java50 …@Override public MethodImplementation rewrite(@Nonnull MethodImplementation methodImplementation) { in rewrite() argument
51 return new RewrittenMethodImplementation(methodImplementation); in rewrite()
55 @Nonnull protected MethodImplementation methodImplementation; field in MethodImplementationRewriter.RewrittenMethodImplementation
57 public RewrittenMethodImplementation(@Nonnull MethodImplementation methodImplementation) { in RewrittenMethodImplementation() argument
58 this.methodImplementation = methodImplementation; in RewrittenMethodImplementation()
62 return methodImplementation.getRegisterCount(); in getRegisterCount()
67 methodImplementation.getInstructions()); in getInstructions()
72 methodImplementation.getTryBlocks()); in getTryBlocks()
77 methodImplementation.getDebugItems()); in getDebugItems()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/
DImmutableMethodImplementation.java75 …blic static ImmutableMethodImplementation of(@Nullable MethodImplementation methodImplementation) { in of() argument
76 if (methodImplementation == null) { in of()
79 if (methodImplementation instanceof ImmutableMethodImplementation) { in of()
80 return (ImmutableMethodImplementation)methodImplementation; in of()
83 methodImplementation.getRegisterCount(), in of()
84 methodImplementation.getInstructions(), in of()
85 methodImplementation.getTryBlocks(), in of()
86 methodImplementation.getDebugItems()); in of()
DImmutableMethod.java57 @Nullable protected final ImmutableMethodImplementation methodImplementation; field in ImmutableMethod
65 @Nullable MethodImplementation methodImplementation) { in ImmutableMethod() argument
72 this.methodImplementation = ImmutableMethodImplementation.of(methodImplementation); in ImmutableMethod()
81 @Nullable ImmutableMethodImplementation methodImplementation) { in ImmutableMethod() argument
88 this.methodImplementation = methodImplementation; in ImmutableMethod()
112 …@Nullable public ImmutableMethodImplementation getImplementation() { return methodImplementation; } in getImplementation()
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/builder/
DMutableMethodImplementationTest.java58 MethodImplementation methodImplementation = builder.getMethodImplementation(); in testTryEndAtEndOfMethod() local
60 Assert.assertEquals(0, methodImplementation.getTryBlocks().get(0).getStartCodeAddress()); in testTryEndAtEndOfMethod()
61 Assert.assertEquals(8, methodImplementation.getTryBlocks().get(0).getCodeUnitCount()); in testTryEndAtEndOfMethod()
63 methodImplementation = new MutableMethodImplementation(methodImplementation); in testTryEndAtEndOfMethod()
65 Assert.assertEquals(0, methodImplementation.getTryBlocks().get(0).getStartCodeAddress()); in testTryEndAtEndOfMethod()
66 Assert.assertEquals(8, methodImplementation.getTryBlocks().get(0).getCodeUnitCount()); in testTryEndAtEndOfMethod()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/builder/
DBuilderMethod.java48 @Nullable final MethodImplementation methodImplementation; field in BuilderMethod
57 @Nullable MethodImplementation methodImplementation) { in BuilderMethod() argument
62 this.methodImplementation = methodImplementation; in BuilderMethod()
72 …Override @Nullable public MethodImplementation getImplementation() { return methodImplementation; } in getImplementation()
DDexBuilder.java105 … @Nullable MethodImplementation methodImplementation) { in internMethod() argument
113 methodImplementation); in internMethod()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/
DMutableMethodImplementation.java62 public MutableMethodImplementation(@Nonnull MethodImplementation methodImplementation) { in MutableMethodImplementation() argument
63 this.registerCount = methodImplementation.getRegisterCount(); in MutableMethodImplementation()
68 for (Instruction instruction: methodImplementation.getInstructions()) { in MutableMethodImplementation()
84 for (final Instruction instruction: methodImplementation.getInstructions()) { in MutableMethodImplementation()
105 for (DebugItem debugItem: methodImplementation.getDebugItems()) { in MutableMethodImplementation()
114 for (TryBlock<? extends ExceptionHandler> tryBlock: methodImplementation.getTryBlocks()) { in MutableMethodImplementation()
/external/smali/smali/src/main/antlr/
DsmaliTreeWalker.g395 MethodImplementation methodImplementation = null;
407 methodImplementation = $method::methodBuilder.getMethodImplementation();
409 if (Iterables.isEmpty(methodImplementation.getInstructions())) {
429 if (methodImplementation.getTryBlocks().size() > 0) {
433 if (!Iterables.isEmpty(methodImplementation.getDebugItems())) {
437 methodImplementation = null;
464 methodImplementation);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
DDexWriter.java823 private void fixInstructions(@Nonnull MutableMethodImplementation methodImplementation) {
824 List<? extends Instruction> instructions = methodImplementation.getInstructions();
832methodImplementation.replaceInstruction(i, new BuilderInstruction31c(Opcode.CONST_STRING_JUMBO,
/external/smali/smali/src/main/java/org/jf/smali/
DsmaliTreeWalker.java2194 MethodImplementation methodImplementation = null; in method() local
2206 methodImplementation = method_stack.peek().methodBuilder.getMethodImplementation(); in method()
2208 if (Iterables.isEmpty(methodImplementation.getInstructions())) { in method()
2228 if (methodImplementation.getTryBlocks().size() > 0) { in method()
2232 if (!Iterables.isEmpty(methodImplementation.getDebugItems())) { in method()
2236 methodImplementation = null; in method()
2263 methodImplementation); in method()