Interface CtTryWithResource

    • Method Detail

      • getResources

        java.util.List<CtLocalVariable<?>> getResources()
        Gets the auto-closeable resources of this try. Available from Java 7 with the try-with-resource statement.
      • setResources

        <T extends CtTryWithResource> T setResources​(java.util.List<CtLocalVariable<?>> resources)
        Sets the auto-closeable resources of this try. Available from Java 7 with the try-with-resource statement.
      • removeResource

        boolean removeResource​(CtLocalVariable<?> resource)
        Removes a resource.