121 lines
2.8 KiB
Smali
121 lines
2.8 KiB
Smali
.class Llombok/launch/Main;
|
|
.super Ljava/lang/Object;
|
|
.source "Main.java"
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>()V
|
|
.locals 0
|
|
|
|
.prologue
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static createShadowClassLoader()Ljava/lang/ClassLoader;
|
|
.locals 8
|
|
|
|
.prologue
|
|
const/4 v7, 0x0
|
|
|
|
new-instance v0, Llombok/launch/ShadowClassLoader;
|
|
|
|
const-class v1, Llombok/launch/Main;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "lombok"
|
|
|
|
const/4 v3, 0x0
|
|
|
|
new-array v4, v7, [Ljava/lang/String;
|
|
|
|
invoke-static {v4}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v4
|
|
|
|
const/4 v5, 0x1
|
|
|
|
new-array v5, v5, [Ljava/lang/String;
|
|
|
|
const-string v6, "lombok.patcher.Symbols"
|
|
|
|
aput-object v6, v5, v7
|
|
|
|
invoke-static {v5}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-direct/range {v0 .. v5}, Llombok/launch/ShadowClassLoader;-><init>(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static main([Ljava/lang/String;)V
|
|
.locals 7
|
|
.param p0, "args" # [Ljava/lang/String;
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Throwable;
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
invoke-static {}, Llombok/launch/Main;->createShadowClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v0
|
|
|
|
.local v0, "cl":Ljava/lang/ClassLoader;
|
|
const-string v3, "lombok.core.Main"
|
|
|
|
invoke-virtual {v0, v3}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class;
|
|
|
|
move-result-object v2
|
|
|
|
.local v2, "mc":Ljava/lang/Class;, "Ljava/lang/Class<*>;"
|
|
:try_start_0
|
|
const-string v3, "main"
|
|
|
|
const/4 v4, 0x1
|
|
|
|
new-array v4, v4, [Ljava/lang/Class;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const-class v6, [Ljava/lang/String;
|
|
|
|
aput-object v6, v4, v5
|
|
|
|
invoke-virtual {v2, v3, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x1
|
|
|
|
new-array v5, v5, [Ljava/lang/Object;
|
|
|
|
const/4 v6, 0x0
|
|
|
|
aput-object p0, v5, v6
|
|
|
|
invoke-virtual {v3, v4, v5}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
.local v1, "e":Ljava/lang/reflect/InvocationTargetException;
|
|
invoke-virtual {v1}, Ljava/lang/reflect/InvocationTargetException;->getCause()Ljava/lang/Throwable;
|
|
|
|
move-result-object v3
|
|
|
|
throw v3
|
|
.end method
|