Some thinking about exceptions
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
package info.sigterm.deob.execution;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import info.sigterm.deob.Method;
|
||||
import info.sigterm.deob.attributes.Code;
|
||||
import info.sigterm.deob.attributes.code.Exception;
|
||||
import info.sigterm.deob.attributes.code.Instruction;
|
||||
import info.sigterm.deob.attributes.code.Instructions;
|
||||
|
||||
@@ -39,6 +42,11 @@ public class Frame
|
||||
{
|
||||
return path;
|
||||
}
|
||||
|
||||
public Method getMethod()
|
||||
{
|
||||
return method;
|
||||
}
|
||||
|
||||
public Stack getStack()
|
||||
{
|
||||
@@ -102,4 +110,14 @@ public class Frame
|
||||
assert offset != 0;
|
||||
pc += offset;
|
||||
}
|
||||
|
||||
public void jumpAbsolute(int pc)
|
||||
{
|
||||
this.pc = pc;
|
||||
}
|
||||
|
||||
public Collection<Exception> getExceptionHandlers()
|
||||
{
|
||||
return method.getCode().getExceptions().getHandlersForPc(this.pc);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user