@Override public boolean test(final ExceptionHandler handler) { return handler.getHandlerBlock().getFirstInstruction() == next; } }
@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.getTryBlock().getFirstInstruction().getOffset(), o2.getTryBlock().getFirstInstruction().getOffset() ); } }
@Override public int compare(@NotNull final ExceptionHandler o1, @NotNull final ExceptionHandler o2) { return Integer.compare( o1.getTryBlock().getFirstInstruction().getOffset(), o2.getTryBlock().getFirstInstruction().getOffset() ); } }
@Override public int compare(@NotNull final ExceptionHandler o1, @NotNull final ExceptionHandler o2) { return Integer.compare( o1.getTryBlock().getFirstInstruction().getOffset(), o2.getTryBlock().getFirstInstruction().getOffset() ); } }
public final boolean intersects(final InstructionBlock block) { return block != null && block.getFirstInstruction().getOffset() <= getLastInstruction().getOffset() && block.getLastInstruction().getOffset() >= getFirstInstruction().getOffset(); }
public final boolean contains(final InstructionBlock block) { return block != null && block.getFirstInstruction().getOffset() >= getFirstInstruction().getOffset() && block.getLastInstruction().getOffset() <= getLastInstruction().getOffset(); }
public final boolean contains(final InstructionBlock block) { return block != null && block.getFirstInstruction().getOffset() >= getFirstInstruction().getOffset() && block.getLastInstruction().getOffset() <= getLastInstruction().getOffset(); }
private ExceptionHandler findInnermostExceptionHandler(final int offsetInTryBlock) { ExceptionHandler result = null; for (final ExceptionHandler handler : _handlerPlaceholders) { final InstructionBlock tryBlock = handler.getTryBlock(); if (tryBlock.getFirstInstruction().getOffset() <= offsetInTryBlock && offsetInTryBlock < tryBlock.getLastInstruction().getEndOffset() && (result == null || isNarrower(handler, result))) { result = handler; } } return result; }
public final boolean intersects(final Range range) { return range != null && range.getStart() <= getLastInstruction().getOffset() && range.getEnd() >= getFirstInstruction().getOffset(); }
private ExceptionHandler findInnermostExceptionHandler(final int offsetInTryBlock) { ExceptionHandler result = null; for (final ExceptionHandler handler : _exceptionHandlers) { final InstructionBlock tryBlock = handler.getTryBlock(); if (tryBlock.getFirstInstruction().getOffset() <= offsetInTryBlock && offsetInTryBlock < tryBlock.getLastInstruction().getEndOffset() && (result == null || isNarrower(handler, result))) { result = handler; } } return result; }
public final boolean contains(final Instruction instruction) { return instruction != null && instruction.getOffset() >= getFirstInstruction().getOffset() && instruction.getOffset() <= getLastInstruction().getOffset(); }
public final boolean contains(final Instruction instruction) { return instruction != null && instruction.getOffset() >= getFirstInstruction().getOffset() && instruction.getOffset() <= getLastInstruction().getOffset(); }
public final boolean contains(final Range range) { return range != null && range.getStart() >= getFirstInstruction().getOffset() && range.getEnd() <= getLastInstruction().getEndOffset(); }
public final boolean contains(final Range range) { return range != null && range.getStart() >= getFirstInstruction().getOffset() && range.getEnd() <= getLastInstruction().getEndOffset(); }
public final boolean intersects(final Range range) { return range != null && range.getStart() <= getLastInstruction().getOffset() && range.getEnd() >= getFirstInstruction().getOffset(); }
private ExceptionHandler findInnermostExceptionHandler(final int offsetInTryBlock) { ExceptionHandler result = null; for (final ExceptionHandler handler : _handlerPlaceholders) { final InstructionBlock tryBlock = handler.getTryBlock(); if (tryBlock.getFirstInstruction().getOffset() <= offsetInTryBlock && offsetInTryBlock < tryBlock.getLastInstruction().getEndOffset() && (result == null || isNarrower(handler, result))) { result = handler; } } return result; }
private ExceptionHandler findInnermostExceptionHandler(final int offsetInTryBlock) { ExceptionHandler result = null; for (final ExceptionHandler handler : _handlerPlaceholders) { final InstructionBlock tryBlock = handler.getTryBlock(); if (tryBlock.getFirstInstruction().getOffset() <= offsetInTryBlock && offsetInTryBlock < tryBlock.getLastInstruction().getEndOffset() && (result == null || isNarrower(handler, result))) { result = handler; } } return result; }
private ExceptionHandler findInnermostExceptionHandler(final int offsetInTryBlock) { ExceptionHandler result = null; for (final ExceptionHandler handler : _exceptionHandlers) { final InstructionBlock tryBlock = handler.getTryBlock(); if (tryBlock.getFirstInstruction().getOffset() <= offsetInTryBlock && offsetInTryBlock < tryBlock.getLastInstruction().getEndOffset() && (result == null || isNarrower(handler, result))) { result = handler; } } return result; }