Class TryBlockExtension


  • public class TryBlockExtension
    extends Object
    • Constructor Detail

      • TryBlockExtension

        public TryBlockExtension()
    • Method Detail

      • getCatcheBlocks

        @Deprecated
        public static EList<CatchBlock> getCatcheBlocks​(TryBlock block)
        Deprecated.
        Use getCatchBlocks().
        Returns all CatchBlocks. This is a legacy method to provide a stable and backwards-compatible API.
        Parameters:
        block - the TryBlock for which the CatchBlocks are returned.
        Returns:
        the list of all CatchBlocks.
      • getStatements

        @Deprecated
        public static EList<Statement> getStatements​(TryBlock block)
        Deprecated.
        Use getBlock().getStatements().
        Returns a list with all statements within the block of a try statement. This is a legacy method to provide a stable and backwards-compatible API.
        Parameters:
        block - the try statement.
        Returns:
        the list.