Add support for renaming/moving classes

This commit is contained in:
Ben Gruver
2015-03-28 12:50:36 -07:00
parent 50810d1f5b
commit 07e6ade7fe
17 changed files with 539 additions and 10 deletions

View File

@ -0,0 +1,36 @@
.class public Lmy/blah2;
.super Lmy/blah2;
.implements Lmy/blah2;
.annotation build Lmy/blah2;
value = .subannotation Lmy/blah2;
value = Lmy/blah2;
.end subannotation
.end annotation
.field static public blah:Lmy/blah2; = Lmy/blah2;
.method public blah(Lmy/blah2;)Lmy/blah2;
.registers 2
.local p0, "this":Lmy/blah2;
:start
iget-object v0, v0, Lmy/blah2;->blah:Lmy/blah2;
invoke-virtual {v0}, Lmy/blah2;->blah(Lmy/blah2;)Lmy/blah2;
instance-of v0, v0, Lmy/blah2;
check-cast v0, Lmy/blah2;
new-instance v0, Lmy/blah2;
const-class v0, Lmy/blah2;
throw-verification-error generic-error, Lmy/blah2;
filled-new-array {v0, v0, v0, v0, v0}, Lmy/blah2;
new-array v0, v0, Lmy/blah2;
filled-new-array/range {v0}, Lmy/blah2;
:end
.catch Lmy/blah2; { :start .. :end } :handler
:handler
return-void
.end method

View File

@ -0,0 +1,36 @@
.class public Lmy/blah;
.super Lmy/blah;
.implements Lmy/blah;
.annotation build Lmy/blah;
value = .subannotation Lmy/blah;
value = Lmy/blah;
.end subannotation
.end annotation
.field static public blah:Lmy/blah; = Lmy/blah;
.method public blah(Lmy/blah;)Lmy/blah;
.registers 2
.local p0, "this":Lmy/blah;
:start
iget-object v0, v0, Lmy/blah;->blah:Lmy/blah;
invoke-virtual {v0}, Lmy/blah;->blah(Lmy/blah;)Lmy/blah;
instance-of v0, v0, Lmy/blah;
check-cast v0, Lmy/blah;
new-instance v0, Lmy/blah;
const-class v0, Lmy/blah;
throw-verification-error generic-error, Lmy/blah;
filled-new-array {v0, v0, v0, v0, v0}, Lmy/blah;
new-array v0, v0, Lmy/blah;
filled-new-array/range {v0}, Lmy/blah;
:end
.catch Lmy/blah; { :start .. :end } :handler
:handler
return-void
.end method