Debian Codegraph @

test/975-iface-private/smali/Iface.smali

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