/** * Import the given exception handler from another code block. */ public ExceptionHandler addExceptionHandler(ExceptionHandler handler) { ExceptionHandler newHandler = addExceptionHandler(); newHandler.read(handler); return newHandler; }
/** * Import the given exception handler from another code block. */ public ExceptionHandler addExceptionHandler(ExceptionHandler handler) { ExceptionHandler newHandler = addExceptionHandler(); newHandler.read(handler); return newHandler; }
void read(DataInput in, int length) throws IOException { _maxStack = in.readUnsignedShort(); _maxLocals = in.readUnsignedShort(); readCode(in, in.readInt()); _handlers.clear(); int exceptionCount = in.readUnsignedShort(); ExceptionHandler excep; for (int i = 0; i < exceptionCount; i++) { excep = addExceptionHandler(); excep.read(in); excep.updateTargets(); } readAttributes(in); // setup local variable markers LocalVariableTable locals = getLocalVariableTable(false); if (locals != null) locals.updateTargets(); // setup local variable markers LocalVariableTypeTable localTypes = getLocalVariableTypeTable(false); if (localTypes != null) localTypes.updateTargets(); // setup line number markers LineNumberTable lines = getLineNumberTable(false); if (lines != null) lines.updateTargets(); }
void read(DataInput in, int length) throws IOException { _maxStack = in.readUnsignedShort(); _maxLocals = in.readUnsignedShort(); readCode(in, in.readInt()); _handlers.clear(); int exceptionCount = in.readUnsignedShort(); ExceptionHandler excep; for (int i = 0; i < exceptionCount; i++) { excep = addExceptionHandler(); excep.read(in); excep.updateTargets(); } readAttributes(in); // setup local variable markers LocalVariableTable locals = getLocalVariableTable(false); if (locals != null) locals.updateTargets(); // setup local variable markers LocalVariableTypeTable localTypes = getLocalVariableTypeTable(false); if (localTypes != null) localTypes.updateTargets(); // setup line number markers LineNumberTable lines = getLineNumberTable(false); if (lines != null) lines.updateTargets(); }
for (int i = 0; i < origHandlers.length; i++) { handler = addExceptionHandler(); handler.read(origHandlers[i]); handler.updateTargets();
for (int i = 0; i < origHandlers.length; i++) { handler = addExceptionHandler(); handler.read(origHandlers[i]); handler.updateTargets();