Home | History | Annotate | Download | only in smali
      1 # /*
      2 #  * Copyright 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 LDefaultInterface;
     20 .implements LConflictInterface;
     21 .implements LAbstractInterface;
     22 
     23 # public class ConcreteClass implements DefaultInterface, ConflictInterface, AbstractInterface {
     24 #     public void JniCallOverridenAbstractMethod() {
     25 #         System.out.println("ConcreteClass.JniCallOverridenAbstractMethod");
     26 #     }
     27 #
     28 #     public void JniCallOverridenDefaultMethod() {
     29 #         System.out.println("ConcreteClass.JniCallOverridenDefaultMethod");
     30 #     }
     31 #
     32 #     public void JniCallOverridenDefaultMethodWithSuper() {
     33 #         System.out.println("ConcreteClass.JniCallOverridenDefaultMethodWithSuper");
     34 #         DefaultInterface.super.JniCallOverridenDefaultMethod();
     35 #     }
     36 # }
     37 
     38 .method public constructor <init>()V
     39     .registers 1
     40     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
     41     return-void
     42 .end method
     43 
     44 .method public JniCallOverridenAbstractMethod()V
     45     .locals 2
     46 
     47     const-string v0, "ConcreteClass.JniCallOverridenAbstractMethod"
     48     sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;
     49     invoke-virtual {v1,v0}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V
     50     return-void
     51 .end method
     52 
     53 .method public JniCallOverridenDefaultMethod()V
     54     .locals 2
     55 
     56     const-string v0, "ConcreteClass.JniCallOverridenDefaultMethod"
     57     sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;
     58     invoke-virtual {v1,v0}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V
     59     return-void
     60 .end method
     61 
     62 .method public JniCallOverridenDefaultMethodWithSuper()V
     63     .locals 2
     64 
     65     const-string v0, "ConcreteClass.JniCallOverridenDefaultMethodWithSuper"
     66     sget-object v1, Ljava/lang/System;->out:Ljava/io/PrintStream;
     67     invoke-virtual {v1,v0}, Ljava/io/PrintStream;->println(Ljava/lang/Object;)V
     68 
     69     invoke-super {p0}, LDefaultInterface;->JniCallOverridenDefaultMethod()V
     70 
     71     return-void
     72 .end method
     73