Class TryBlockImpl

    • Field Detail

      • catchBlocks

        private final java.util.LinkedHashMap<java.lang.String,​CatchBlockCreatorImpl> catchBlocks
    • Method Detail

      • addCatch

        public CatchBlockCreator addCatch​(java.lang.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)