public final class JSTypeResolver
extends java.lang.Object
implements java.io.Serializable
JSType instances.
This object shares the lifecycle of a registry. Consider it as a narrow interface into the registry for the purpose of resolving types.
Every time a new type is constructed it is (by cooperation of the JSType subclasses}
added to this resolver. Depending on the state of the resolver at the time of addition, the type
will either be eagerly resolved, or stored for later resolution.
| Modifier and Type | Class and Description |
|---|---|
class |
JSTypeResolver.Closer
A signal to resolve all types known to and close the owning resolver.
|
| Modifier and Type | Method and Description |
|---|---|
JSTypeResolver.Closer |
openForDefinition()
Allow new types to be created without eagerly resolving them.
|
@MustBeClosed public JSTypeResolver.Closer openForDefinition()
This is required by, and only really useful for, type definition. Types being derived from previously defined types should not contain reference cycles, and so should be eagerly resolvable.
Copyright © 2009-2020 Google. All Rights Reserved.