Class writing, call graph, eclipse project

This commit is contained in:
Adam
2015-04-25 12:47:06 -04:00
parent 4dc6bfc949
commit a9f953b46a
72 changed files with 903 additions and 18 deletions

View File

@@ -5,6 +5,7 @@ import info.sigterm.deob.attributes.code.Instruction;
import info.sigterm.deob.pool.UTF8;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.util.ArrayList;
@@ -40,6 +41,14 @@ public class Field
descriptorIndex = is.readUnsignedShort();
attributes = new Attributes(this);
}
public void write(DataOutputStream out) throws IOException
{
out.writeShort(accessFlags);
out.writeShort(nameIndex);
out.writeShort(descriptorIndex);
attributes.write(out);
}
public Fields getFields()
{