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

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