Class JSTypeResolver.Closer

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Enclosing class:
    JSTypeResolver

    public final class JSTypeResolver.Closer
    extends java.lang.Object
    implements java.lang.AutoCloseable
    A signal to resolve all types known to and close the owning resolver.

    This is intended to be used in a try-with-resources statement. This approach was selected over accepting a callback because it supports some level of compile-time enforcement while allowing that enforcement to be suppressed in tests.

    • Constructor Summary

      Constructors 
      Constructor Description
      Closer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Closer

        public Closer()
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable