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 Lblah;
.super Lblah;
.implements Lblah;
.annotation build Lblah;
value = .subannotation Lblah;
value = Lblah;
.end subannotation
.end annotation
.field static public blah:Lblah; = Lblah;
.method public blah(Lblah;)Lblah;
.registers 2
.local p0, "this":Lblah;
:start
iget-object v0, v0, Lblah;->blah:Lblah;
invoke-virtual {v0}, Lblah;->blah(Lblah;)Lblah;
instance-of v0, v0, Lblah;
check-cast v0, Lblah;
new-instance v0, Lblah;
const-class v0, Lblah;
throw-verification-error generic-error, Lblah;
filled-new-array {v0, v0, v0, v0, v0}, Lblah;
new-array v0, v0, Lblah;
filled-new-array/range {v0}, Lblah;
:end
.catch Lblah; { :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