Class writing, call graph, eclipse project
This commit is contained in:
@@ -2,6 +2,8 @@ package info.sigterm.deob.attributes.code;
|
||||
|
||||
import info.sigterm.deob.execution.Frame;
|
||||
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public abstract class Instruction
|
||||
@@ -21,6 +23,11 @@ public abstract class Instruction
|
||||
this.type = type;
|
||||
this.pc = pc;
|
||||
}
|
||||
|
||||
public void write(DataOutputStream out, int pc) throws IOException
|
||||
{
|
||||
out.writeByte(type.getCode());
|
||||
}
|
||||
|
||||
public Instructions getInstructions()
|
||||
{
|
||||
@@ -59,6 +66,10 @@ public abstract class Instruction
|
||||
public void buildInstructionGraph()
|
||||
{
|
||||
}
|
||||
|
||||
public void buildCallGraph()
|
||||
{
|
||||
}
|
||||
|
||||
public abstract void execute(Frame e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user