Files
runelite/src/main/java/info/sigterm/deob/pool/PoolEntry.java
2015-07-30 16:39:48 -04:00

54 lines
841 B
Java

package info.sigterm.deob.pool;
import java.io.DataOutputStream;
import java.io.IOException;
import info.sigterm.deob.ConstantPool;
import info.sigterm.deob.execution.Type;
public abstract class PoolEntry
{
private ConstantType type;
public int id;
protected PoolEntry(ConstantType type)
{
this.type = type;
}
// read objects from indexes
public void resolve(ConstantPool pool)
{
}
// make objects and prime indexes
public void prime(ConstantPool pool)
{
}
@Override
public abstract boolean equals(Object other);
public abstract void write(DataOutputStream out) throws IOException;
public ConstantType getType()
{
return type;
}
public Type getTypeClass()
{
throw new UnsupportedOperationException();
}
public int getSlots()
{
return 1;
}
public Object getObject()
{
return this;
}
}