Beginning work of rename unique, now renames classes

This commit is contained in:
Adam
2015-07-09 20:56:44 -04:00
parent c92387e089
commit 5781f08152
30 changed files with 321 additions and 75 deletions

View File

@@ -20,6 +20,13 @@ public class Class extends PoolEntry
index = is.readUnsignedShort();
}
public Class(java.lang.String name)
{
super(ConstantType.CLASS);
this.name = name;
}
@Override
public void resolve(ConstantPool pool)
{

View File

@@ -22,6 +22,14 @@ public class Field extends PoolEntry
natIndex = is.readUnsignedShort();
}
public Field(Class clazz, NameAndType nat)
{
super(ConstantType.FIELDREF);
this.clazz = clazz;
this.nat = nat;
}
@Override
public void resolve(ConstantPool pool)
{