1# 2# Copyright (C) 2016 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16 17.class public LConcreteClass; 18.super Ljava/lang/Object; 19.implements LIface; 20 21# public class ConcreteClass implements Iface { 22# public String getString() { 23# return "STRING!!!"; 24# } 25# public String callMethod() { 26# return this.getTwice(); 27# } 28# } 29 30.method public constructor <init>()V 31 .registers 1 32 invoke-direct {p0}, Ljava/lang/Object;-><init>()V 33 return-void 34.end method 35 36.method public getString()Ljava/lang/String; 37.registers 2 38 const-string v0, "STRING!!!" 39 return-object v0 40.end method 41 42.method public callMethod()Ljava/lang/String; 43.registers 2 44 invoke-virtual {p0}, LConcreteClass;->getTwice()Ljava/lang/String; 45 move-result-object v0 46 return-object v0 47.end method 48