Class JSTypeResolver.Closer
java.lang.Object
com.google.javascript.rhino.jstype.JSTypeResolver.Closer
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
JSTypeResolver
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 -
Method Summary
-
Constructor Details
-
Closer
public Closer()
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-