/** * Returns the exception handler types associated with this block, * if any. This is just a shorthand for inspecting the last * instruction in the block to see if it could throw, and if so, * grabbing the catch list out of it. If not, this returns an * empty list (not {@code null}). * * @return {@code non-null;} the exception handler types associated with * this block */ public TypeList getExceptionHandlerTypes() { Insn lastInsn = insns.getLast(); return lastInsn.getCatches(); }
/** * Returns the exception handler types associated with this block, * if any. This is just a shorthand for inspecting the last * instruction in the block to see if it could throw, and if so, * grabbing the catch list out of it. If not, this returns an * empty list (not {@code null}). * * @return {@code non-null;} the exception handler types associated with * this block */ public TypeList getExceptionHandlerTypes() { Insn lastInsn = insns.getLast(); return lastInsn.getCatches(); }
/** * Returns whether this block has any associated exception handlers. * This is just a shorthand for inspecting the last instruction in * the block to see if it could throw, and if so, whether it in fact * has any associated handlers. * * @return {@code true} iff this block has any associated * exception handlers */ public boolean hasExceptionHandlers() { Insn lastInsn = insns.getLast(); return lastInsn.getCatches().size() != 0; }
/** * Returns whether this block has any associated exception handlers. * This is just a shorthand for inspecting the last instruction in * the block to see if it could throw, and if so, whether it in fact * has any associated handlers. * * @return {@code true} iff this block has any associated * exception handlers */ public boolean hasExceptionHandlers() { Insn lastInsn = insns.getLast(); return lastInsn.getCatches().size() != 0; }
/** * Returns whether this block has any associated exception handlers. * This is just a shorthand for inspecting the last instruction in * the block to see if it could throw, and if so, whether it in fact * has any associated handlers. * * @return {@code true} iff this block has any associated * exception handlers */ public boolean hasExceptionHandlers() { Insn lastInsn = insns.getLast(); return lastInsn.getCatches().size() != 0; }
/** * Returns whether this block has any associated exception handlers. * This is just a shorthand for inspecting the last instruction in * the block to see if it could throw, and if so, whether it in fact * has any associated handlers. * * @return {@code true} iff this block has any associated * exception handlers */ public boolean hasExceptionHandlers() { Insn lastInsn = insns.getLast(); return lastInsn.getCatches().size() != 0; }
/** * Returns whether this block has any associated exception handlers. * This is just a shorthand for inspecting the last instruction in * the block to see if it could throw, and if so, whether it in fact * has any associated handlers. * * @return {@code true} iff this block has any associated * exception handlers */ public boolean hasExceptionHandlers() { Insn lastInsn = insns.getLast(); return lastInsn.getCatches().size() != 0; }
/** * Returns whether this block has any associated exception handlers. * This is just a shorthand for inspecting the last instruction in * the block to see if it could throw, and if so, whether it in fact * has any associated handlers. * * @return {@code true} iff this block has any associated * exception handlers */ public boolean hasExceptionHandlers() { Insn lastInsn = insns.getLast(); return lastInsn.getCatches().size() != 0; }
/** * Returns whether this block has any associated exception handlers. * This is just a shorthand for inspecting the last instruction in * the block to see if it could throw, and if so, whether it in fact * has any associated handlers. * * @return {@code true} iff this block has any associated * exception handlers */ public boolean hasExceptionHandlers() { Insn lastInsn = insns.getLast(); return lastInsn.getCatches().size() != 0; }
/** * Returns whether this block has any associated exception handlers. * This is just a shorthand for inspecting the last instruction in * the block to see if it could throw, and if so, whether it in fact * has any associated handlers. * * @return {@code true} iff this block has any associated * exception handlers */ public boolean hasExceptionHandlers() { Insn lastInsn = insns.getLast(); return lastInsn.getCatches().size() != 0; }
/** * Compares Insn contents, since {@code Insn.equals()} is defined * to be an identity compare. Insn's are {@code contentEquals()} * if they have the same opcode, registers, source position, and other * metadata. * * @return true in the case described above */ public boolean contentEquals(Insn b) { return opcode == b.getOpcode() && position.equals(b.getPosition()) && (getClass() == b.getClass()) && equalsHandleNulls(result, b.getResult()) && equalsHandleNulls(sources, b.getSources()) && StdTypeList.equalContents(getCatches(), b.getCatches()); }
/** {@inheritDoc} */ public HashSet<Type> getCatchTypes() { HashSet<Type> result = new HashSet<Type>(20); BasicBlockList blocks = method.getBlocks(); int size = blocks.size(); for (int i = 0; i < size; i++) { BasicBlock block = blocks.get(i); TypeList catches = block.getLastInsn().getCatches(); int catchSize = catches.size(); for (int j = 0; j < catchSize; j++) { result.add(catches.getType(j)); } } return result; }
/** {@inheritDoc} */ public HashSet<Type> getCatchTypes() { HashSet<Type> result = new HashSet<Type>(20); BasicBlockList blocks = method.getBlocks(); int size = blocks.size(); for (int i = 0; i < size; i++) { BasicBlock block = blocks.get(i); TypeList catches = block.getLastInsn().getCatches(); int catchSize = catches.size(); for (int j = 0; j < catchSize; j++) { result.add(catches.getType(j)); } } return result; }
/** {@inheritDoc} */ public boolean hasAnyCatches() { BasicBlockList blocks = method.getBlocks(); int size = blocks.size(); for (int i = 0; i < size; i++) { BasicBlock block = blocks.get(i); TypeList catches = block.getLastInsn().getCatches(); if (catches.size() != 0) { return true; } } return false; }
/** {@inheritDoc} */ public boolean hasAnyCatches() { BasicBlockList blocks = method.getBlocks(); int size = blocks.size(); for (int i = 0; i < size; i++) { BasicBlock block = blocks.get(i); TypeList catches = block.getLastInsn().getCatches(); if (catches.size() != 0) { return true; } } return false; }
/** {@inheritDoc} */ @Override public boolean hasAnyCatches() { BasicBlockList blocks = method.getBlocks(); int size = blocks.size(); for (int i = 0; i < size; i++) { BasicBlock block = blocks.get(i); TypeList catches = block.getLastInsn().getCatches(); if (catches.size() != 0) { return true; } } return false; }
/** {@inheritDoc} */ public boolean hasAnyCatches() { BasicBlockList blocks = method.getBlocks(); int size = blocks.size(); for (int i = 0; i < size; i++) { BasicBlock block = blocks.get(i); TypeList catches = block.getLastInsn().getCatches(); if (catches.size() != 0) { return true; } } return false; }
/** {@inheritDoc} */ public boolean hasAnyCatches() { BasicBlockList blocks = method.getBlocks(); int size = blocks.size(); for (int i = 0; i < size; i++) { BasicBlock block = blocks.get(i); TypeList catches = block.getLastInsn().getCatches(); if (catches.size() != 0) { return true; } } return false; }
/** {@inheritDoc} */ public boolean hasAnyCatches() { BasicBlockList blocks = method.getBlocks(); int size = blocks.size(); for (int i = 0; i < size; i++) { BasicBlock block = blocks.get(i); TypeList catches = block.getLastInsn().getCatches(); if (catches.size() != 0) { return true; } } return false; }
/** {@inheritDoc} */ public boolean hasAnyCatches() { BasicBlockList blocks = method.getBlocks(); int size = blocks.size(); for (int i = 0; i < size; i++) { BasicBlock block = blocks.get(i); TypeList catches = block.getLastInsn().getCatches(); if (catches.size() != 0) { return true; } } return false; }