public void setTryEnd(int end) { setTryEnd((Instruction) _owner.getInstruction(end).prev); }
public void setTryEnd(int end) { setTryEnd((Instruction) _owner.getInstruction(end).prev); }
void read(DataInput in) throws IOException { setTryStart(in.readUnsignedShort()); setTryEnd(in.readUnsignedShort()); setHandlerStart(in.readUnsignedShort()); setCatchIndex(in.readUnsignedShort()); }
void read(DataInput in) throws IOException { setTryStart(in.readUnsignedShort()); setTryEnd(in.readUnsignedShort()); setHandlerStart(in.readUnsignedShort()); setCatchIndex(in.readUnsignedShort()); }
/** * Add an exception handler to this code block. * * @param tryStart the first instruction of the try {} block * @param tryEnd the last instruction of the try {} block * @param handlerStart the first instruction of the catch {} block * @param catchType the type of exception being caught */ public ExceptionHandler addExceptionHandler(Instruction tryStart, Instruction tryEnd, Instruction handlerStart, String catchType) { ExceptionHandler handler = addExceptionHandler(); handler.setTryStart(tryStart); handler.setTryEnd(tryEnd); handler.setHandlerStart(handlerStart); handler.setCatch(catchType); return handler; }
/** * Add an exception handler to this code block. * * @param tryStart the first instruction of the try {} block * @param tryEnd the last instruction of the try {} block * @param handlerStart the first instruction of the catch {} block * @param catchType the type of exception being caught */ public ExceptionHandler addExceptionHandler(Instruction tryStart, Instruction tryEnd, Instruction handlerStart, String catchType) { ExceptionHandler handler = addExceptionHandler(); handler.setTryStart(tryStart); handler.setTryEnd(tryEnd); handler.setHandlerStart(handlerStart); handler.setCatch(catchType); return handler; }
Instruction go2 = code.go2(); jumps.add(go2); handler.setTryEnd(go2); handler.setCatch(ClassNotFoundException.class); handler.setHandlerStart(throwException
Instruction go2 = code.go2(); jumps.add(go2); handler.setTryEnd(go2); handler.setCatch(ClassNotFoundException.class); handler.setHandlerStart(throwException
Instruction go2 = code.go2(); jumps.add(go2); handler.setTryEnd(go2); handler.setCatch(ClassNotFoundException.class); handler.setHandlerStart(throwException
Instruction go2 = code.go2(); jumps.add(go2); handler.setTryEnd(go2); handler.setCatch(ClassNotFoundException.class); handler.setHandlerStart(throwException
Instruction go2 = code.go2(); jumps.add(go2); handler.setTryEnd(go2); handler.setCatch(ClassNotFoundException.class); handler.setHandlerStart(throwException