Move deobfuscation methods to their own files

This commit is contained in:
Adam
2015-06-13 14:24:04 -04:00
parent 3140a51f3f
commit 6cac8c1cc9
9 changed files with 385 additions and 284 deletions

View File

@@ -31,8 +31,8 @@ public class Method
private String name;
private Signature arguments;
private Attributes attributes;
private List<Node> callsTo = new ArrayList<>(),
callsFrom = new ArrayList<>();
List<Node> callsTo = new ArrayList<>();
List<Node> callsFrom = new ArrayList<>();
Method(Methods methods) throws IOException
{
@@ -62,7 +62,7 @@ public class Method
assert callsFrom.isEmpty();
}
protected void removeParameter(Execution execution, int paramIndex, int lvtIndex)
public void removeParameter(Execution execution, int paramIndex, int lvtIndex)
{
Set<Instruction> done = new HashSet<>();
for (Node n : callsFrom)
@@ -197,6 +197,7 @@ public class Method
public void addCallTo(Instruction ins, Method method)
{
assert method != null;
Node node = new Node(this, method, ins);
callsTo.add(node);
method.callsFrom.add(node);