Allow pool to be dynamically rebuilt
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user