Class JSTypeResolver.Closer
- java.lang.Object
-
- com.google.javascript.rhino.jstype.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()
-