public
Created

  • Download Gist
Shrubbery-Enum.smali
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
.class public final enum LShrubbery;
.super Ljava/lang/Enum;
.source "Shrubbery.java"
 
 
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum",
"<",
"LShrubbery;",
">;"
}
.end annotation
 
 
# static fields
.field private static final synthetic $VALUES:[LShrubbery;
 
.field public static final enum CRAWLING:LShrubbery;
 
.field public static final enum GROUND:LShrubbery;
 
.field public static final enum HANGING:LShrubbery;
 
 
# direct methods
.method static constructor <clinit>()V
.registers 5
 
.prologue
const/4 v4, 0x2
 
const/4 v3, 0x1
 
const/4 v2, 0x0
 
.line 2
new-instance v0, LShrubbery;
 
const-string v1, "GROUND"
 
invoke-direct {v0, v1, v2}, LShrubbery;-><init>(Ljava/lang/String;I)V
 
sput-object v0, LShrubbery;->GROUND:LShrubbery;
 
new-instance v0, LShrubbery;
 
const-string v1, "CRAWLING"
 
invoke-direct {v0, v1, v3}, LShrubbery;-><init>(Ljava/lang/String;I)V
 
sput-object v0, LShrubbery;->CRAWLING:LShrubbery;
 
new-instance v0, LShrubbery;
 
const-string v1, "HANGING"
 
invoke-direct {v0, v1, v4}, LShrubbery;-><init>(Ljava/lang/String;I)V
 
sput-object v0, LShrubbery;->HANGING:LShrubbery;
 
.line 1
const/4 v0, 0x3
 
new-array v0, v0, [LShrubbery;
 
sget-object v1, LShrubbery;->GROUND:LShrubbery;
 
aput-object v1, v0, v2
 
sget-object v1, LShrubbery;->CRAWLING:LShrubbery;
 
aput-object v1, v0, v3
 
sget-object v1, LShrubbery;->HANGING:LShrubbery;
 
aput-object v1, v0, v4
 
sput-object v0, LShrubbery;->$VALUES:[LShrubbery;
 
return-void
.end method
 
.method private constructor <init>(Ljava/lang/String;I)V
.registers 3
.parameter
.parameter
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
 
.prologue
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
 
return-void
.end method
 
.method public static valueOf(Ljava/lang/String;)LShrubbery;
.registers 2
.parameter
 
.prologue
.line 1
const-class v0, LShrubbery;
 
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
 
move-result-object p0
 
check-cast p0, LShrubbery;
 
return-object p0
.end method
 
.method public static values()[LShrubbery;
.registers 1
 
.prologue
.line 1
sget-object v0, LShrubbery;->$VALUES:[LShrubbery;
 
invoke-virtual {v0}, [LShrubbery;->clone()Ljava/lang/Object;
 
move-result-object v0
 
check-cast v0, [LShrubbery;
 
return-object v0
.end method
Shrubbery.smali
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
.class public LShrubbery;
.super Ljava/lang/Object;
.source "Shrubbery.java"
 
 
# static fields
.field public static final CRAWLING:I = 0x1
 
.field public static final GROUND:I = 0x0
 
.field public static final HANGING:I = 0x2
 
 
# direct methods
.method public constructor <init>()V
.registers 1
 
.prologue
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 
return-void
.end method

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.