Class TryBlockImpl

All Implemented Interfaces:
BytecodeCreator, TryBlock, AutoCloseable

class TryBlockImpl extends BytecodeCreatorImpl implements TryBlock
  • Field Details

  • Constructor Details

  • Method Details

    • addCatch

      public CatchBlockCreator addCatch(String exceptionType)
      Description copied from interface: TryBlock
      Add a catch block. The catch block will be emitted after the try block. If the flow of control exits the bottom of the catch block, it will resume after the point where the try block was declared in the enclosing scope. The parent scope of the catch block is the same as the parent scope of the try block.
      Specified by:
      addCatch in interface TryBlock
      Parameters:
      exceptionType - the exception type to catch (must not be null)
      Returns:
      the catch block (not null)
    • writeOperations

      protected void writeOperations(org.objectweb.asm.MethodVisitor visitor)
      Overrides:
      writeOperations in class BytecodeCreatorImpl
    • findActiveResultHandles

      void findActiveResultHandles(Set<ResultHandle> handlesToAllocate)
      Overrides:
      findActiveResultHandles in class BytecodeCreatorImpl