Home | History | Annotate | Download | only in smali
      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 .source "MethodHandleToString.smali"
     17 
     18 .class public LMethodHandleToString;
     19 .super Ljava/lang/Object;
     20 
     21 .method public constructor <init>()V
     22 .registers 1
     23   invoke-direct {p0}, Ljava/lang/Object;-><init>()V
     24   invoke-static {}, LMethodHandleToString;->getMethodHandle()Ljava/lang/invoke/MethodHandle;
     25   move-result-object v0
     26   # Attempt invoke-polymorphic on MethodHandle.toString().
     27   invoke-polymorphic {v0}, Ljava/lang/invoke/MethodHandle;->toString()Ljava/lang/String;, ()Ljava/lang/Object;
     28   return-void
     29 .end method
     30 
     31 .method public static getMethodHandle()Ljava/lang/invoke/MethodHandle;
     32 .registers 1
     33   const/4 v0, 0
     34   return-object v0
     35 .end method
     36