@Override public boolean test(final ExceptionHandler handler) { return handler.getHandlerBlock().getFirstInstruction() == next; } }
@Override public boolean test(final ByteCode code) { return code.instruction == e.getHandlerBlock().getLastInstruction(); } }
@Override public boolean test(final ByteCode code) { return code.instruction == e.getHandlerBlock().getLastInstruction(); } }
@Override public boolean test(final ExceptionHandler handler) { return handler.getHandlerBlock().getFirstInstruction() == next; } }
@Override public boolean test(final ByteCode code) { return code.instruction == e.getHandlerBlock().getLastInstruction(); } }
@Override public boolean test(final ExceptionHandler handler) { return handler.getHandlerBlock().getFirstInstruction() == next; } }
@Override public int compare(@NotNull final ExceptionHandler o1, @NotNull final ExceptionHandler o2) { if (o1.getHandlerBlock().contains(o2.getHandlerBlock())) { return -1; } if (o2.getHandlerBlock().contains(o1.getHandlerBlock())) { return 1; } return Integer.compare( originalHandlers.indexOf(o1), originalHandlers.indexOf(o2) ); } }
@Override public int compare(@NotNull final ExceptionHandler o1, @NotNull final ExceptionHandler o2) { if (o1.getHandlerBlock().contains(o2.getHandlerBlock())) { return -1; } if (o2.getHandlerBlock().contains(o1.getHandlerBlock())) { return 1; } return Integer.compare( originalHandlers.indexOf(o1), originalHandlers.indexOf(o2) ); } }
@Override public int compare(@NotNull final ExceptionHandler o1, @NotNull final ExceptionHandler o2) { return Integer.compare( o1.getHandlerBlock().getFirstInstruction().getOffset(), o2.getHandlerBlock().getFirstInstruction().getOffset() ); } }
@Override public int compare(@NotNull final ExceptionHandler o1, @NotNull final ExceptionHandler o2) { return Integer.compare( o1.getHandlerBlock().getFirstInstruction().getOffset(), o2.getHandlerBlock().getFirstInstruction().getOffset() ); } }
@Override public int compare(@NotNull final ExceptionHandler o1, @NotNull final ExceptionHandler o2) { return Integer.compare( o1.getHandlerBlock().getFirstInstruction().getOffset(), o2.getHandlerBlock().getFirstInstruction().getOffset() ); } }
private static ExceptionHandler findFirstHandler(final InstructionBlock tryBlock, final Collection<ExceptionHandler> handlers) { ExceptionHandler result = null; for (final ExceptionHandler handler : handlers) { if (handler.getTryBlock().equals(tryBlock) && (result == null || handler.getHandlerBlock().getFirstInstruction().getOffset() < result.getHandlerBlock().getFirstInstruction().getOffset())) { result = handler; } } return result; }
private static ExceptionHandler findFirstHandler(final InstructionBlock tryBlock, final Collection<ExceptionHandler> handlers) { ExceptionHandler result = null; for (final ExceptionHandler handler : handlers) { if (handler.getTryBlock().equals(tryBlock) && (result == null || handler.getHandlerBlock().getFirstInstruction().getOffset() < result.getHandlerBlock().getFirstInstruction().getOffset())) { result = handler; } } return result; }
private static ExceptionHandler findFirstHandler(final InstructionBlock tryBlock, final Collection<ExceptionHandler> handlers) { ExceptionHandler result = null; for (final ExceptionHandler handler : handlers) { if (handler.getTryBlock().equals(tryBlock) && (result == null || handler.getHandlerBlock().getFirstInstruction().getOffset() < result.getHandlerBlock().getFirstInstruction().getOffset())) { result = handler; } } return result; }
public ControlFlowNode(final int blockIndex, final ExceptionHandler exceptionHandler, final ControlFlowNode endFinallyNode) { _blockIndex = blockIndex; _exceptionHandler = VerifyArgument.notNull(exceptionHandler, "exceptionHandler"); _nodeType = exceptionHandler.isFinally() ? ControlFlowNodeType.FinallyHandler : ControlFlowNodeType.CatchHandler; _endFinallyNode = endFinallyNode; final InstructionBlock handlerBlock = exceptionHandler.getHandlerBlock(); // _start = handlerBlock.getFirstInstruction(); // _end = handlerBlock.getLastInstruction(); _start = null; _end = null; _offset = handlerBlock.getFirstInstruction().getOffset(); //_start.getOffset(); }
public ControlFlowNode(final int blockIndex, final ExceptionHandler exceptionHandler, final ControlFlowNode endFinallyNode) { _blockIndex = blockIndex; _exceptionHandler = VerifyArgument.notNull(exceptionHandler, "exceptionHandler"); _nodeType = exceptionHandler.isFinally() ? ControlFlowNodeType.FinallyHandler : ControlFlowNodeType.CatchHandler; _endFinallyNode = endFinallyNode; final InstructionBlock handlerBlock = exceptionHandler.getHandlerBlock(); // _start = handlerBlock.getFirstInstruction(); // _end = handlerBlock.getLastInstruction(); _start = null; _end = null; _offset = handlerBlock.getFirstInstruction().getOffset(); //_start.getOffset(); }
public ControlFlowNode(final int blockIndex, final ExceptionHandler exceptionHandler, final ControlFlowNode endFinallyNode) { _blockIndex = blockIndex; _exceptionHandler = VerifyArgument.notNull(exceptionHandler, "exceptionHandler"); _nodeType = exceptionHandler.isFinally() ? ControlFlowNodeType.FinallyHandler : ControlFlowNodeType.CatchHandler; _endFinallyNode = endFinallyNode; final InstructionBlock handlerBlock = exceptionHandler.getHandlerBlock(); // _start = handlerBlock.getFirstInstruction(); // _end = handlerBlock.getLastInstruction(); _start = null; _end = null; _offset = handlerBlock.getFirstInstruction().getOffset(); //_start.getOffset(); }
private static ExceptionHandler findInnermostExceptionHandler( final List<ExceptionHandler> exceptionHandlers, final int offsetInTryBlock) { for (final ExceptionHandler handler : exceptionHandlers) { final InstructionBlock tryBlock = handler.getTryBlock(); final InstructionBlock handlerBlock = handler.getHandlerBlock(); if (tryBlock.getFirstInstruction().getOffset() <= offsetInTryBlock && offsetInTryBlock < handlerBlock.getFirstInstruction().getOffset()) { return handler; } } return null; } }
private static ExceptionHandler findInnermostExceptionHandler( final List<ExceptionHandler> exceptionHandlers, final int offsetInTryBlock) { for (final ExceptionHandler handler : exceptionHandlers) { final InstructionBlock tryBlock = handler.getTryBlock(); final InstructionBlock handlerBlock = handler.getHandlerBlock(); if (tryBlock.getFirstInstruction().getOffset() <= offsetInTryBlock && offsetInTryBlock < handlerBlock.getFirstInstruction().getOffset()) { return handler; } } return null; } }
private static ExceptionHandler findInnermostExceptionHandler( final List<ExceptionHandler> exceptionHandlers, final int offsetInTryBlock) { for (final ExceptionHandler handler : exceptionHandlers) { final InstructionBlock tryBlock = handler.getTryBlock(); final InstructionBlock handlerBlock = handler.getHandlerBlock(); if (tryBlock.getFirstInstruction().getOffset() <= offsetInTryBlock && offsetInTryBlock < handlerBlock.getFirstInstruction().getOffset()) { return handler; } } return null; } }