Allow pool to be dynamically rebuilt

This commit is contained in:
Adam
2015-05-09 17:00:30 -04:00
parent 0d21d49d2d
commit 4af719032d
45 changed files with 597 additions and 333 deletions

View File

@@ -7,8 +7,9 @@ import info.sigterm.deob.ConstantPool;
public abstract class PoolEntry
{
private ConstantPool pool;
public ConstantPool pool;
private ConstantType type;
public int id;
protected PoolEntry(ConstantPool pool, ConstantType type)
{
@@ -16,6 +17,18 @@ public abstract class PoolEntry
this.type = type;
}
// read objects from indexes
public void resolve()
{
}
// make objects and prime indexes
public void prime()
{
}
public abstract boolean equals(Object other);
public abstract void write(DataOutputStream out) throws IOException;
public ConstantPool getPool()
@@ -35,6 +48,6 @@ public abstract class PoolEntry
public Object getObject()
{
throw new RuntimeException("No getObject implemented for " + this);
return this;
}
}