/** * Returns whether the given instruction may throw exceptions. */ public boolean mayThrowExceptions(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction) { return instruction.mayThrowExceptions(); // mayThrowExceptions = false; // // instruction.accept(clazz, method, codeAttribute, offset, this); // // return mayThrowExceptions; }
/** * Returns whether the given instruction may throw exceptions. */ public boolean mayThrowExceptions(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction) { return instruction.mayThrowExceptions(); // mayThrowExceptions = false; // // instruction.accept(clazz, method, codeAttribute, offset, this); // // return mayThrowExceptions; }
/** * Returns whether the given instruction may throw exceptions. */ public boolean mayThrowExceptions(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction) { return instruction.mayThrowExceptions(); // mayThrowExceptions = false; // // instruction.accept(clazz, method, codeAttribute, offset, this); // // return mayThrowExceptions; }
/** * Returns whether a block of instructions may ever throw an exception. */ private boolean mayThrowExceptions(Clazz clazz, Method method, CodeAttribute codeAttribute, int startOffset, int endOffset) { for (int index = startOffset; index < endOffset; index++) { if (isTraced(index) && (evaluateAllCode || InstructionFactory.create(codeAttribute.code, index).mayThrowExceptions())) { return true; } } return false; }
/** * Returns whether a block of instructions may ever throw an exception. */ private boolean mayThrowExceptions(Clazz clazz, Method method, CodeAttribute codeAttribute, int startOffset, int endOffset) { for (int index = startOffset; index < endOffset; index++) { if (isTraced(index) && (evaluateAllCode || InstructionFactory.create(codeAttribute.code, index).mayThrowExceptions())) { return true; } } return false; }
/** * Returns whether a block of instructions may ever throw an exception. */ private boolean mayThrowExceptions(Clazz clazz, Method method, CodeAttribute codeAttribute, int startOffset, int endOffset) { for (int index = startOffset; index < endOffset; index++) { if (isTraced(index) && (evaluateAllCode || InstructionFactory.create(codeAttribute.code, index).mayThrowExceptions())) { return true; } } return false; }
/** * Returns whether the specified block of code may throw exceptions. */ private boolean mayThrowExceptions(Clazz clazz, Method method, CodeAttribute codeAttribute, int startOffset, int endOffset) { byte[] code = codeAttribute.code; // Go over all instructions. int offset = startOffset; while (offset < endOffset) { // Get the current instruction. Instruction instruction = InstructionFactory.create(code, offset); // Check if it may be throwing exceptions. if (instruction.mayThrowExceptions()) { return true; } // Go to the next instruction. offset += instruction.length(offset); } return false; }
/** * Returns whether the specified block of code may throw exceptions. */ private boolean mayThrowExceptions(Clazz clazz, Method method, CodeAttribute codeAttribute, int startOffset, int endOffset) { byte[] code = codeAttribute.code; // Go over all instructions. int offset = startOffset; while (offset < endOffset) { // Get the current instruction. Instruction instruction = InstructionFactory.create(code, offset); // Check if it may be throwing exceptions. if (instruction.mayThrowExceptions()) { return true; } // Go to the next instruction. offset += instruction.length(offset); } return false; }
/** * Returns whether the specified block of code may throw exceptions. */ private boolean mayThrowExceptions(Clazz clazz, Method method, CodeAttribute codeAttribute, int startOffset, int endOffset) { byte[] code = codeAttribute.code; // Go over all instructions. int offset = startOffset; while (offset < endOffset) { // Get the current instruction. Instruction instruction = InstructionFactory.create(code, offset); // Check if it may be throwing exceptions. if (instruction.mayThrowExceptions()) { return true; } // Go to the next instruction. offset += instruction.length(offset); } return false; }