Package com.google.gwt.core.ext
Enum RebindMode
- All Implemented Interfaces:
Serializable
,Comparable<RebindMode>
,java.lang.constant.Constable
A mode to indicate how incremental generator output should be integrated by
the deferred binding implementation. The RebindMode is included as a member
of the
RebindResult
returned by
IncrementalGenerator.generateIncrementally(com.google.gwt.core.ext.TreeLogger, com.google.gwt.core.ext.GeneratorContext, java.lang.String)
. It is up to each
generator implementation to determine the conditions for reuse of previously
generated cached output.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates nothing new was generated, only cached output previously generated should be used.Indicates only newly generated output should be used.Indicates only newly generated output should be used, and no output should be cached.Indicates no generated code is needed to satisfy this rebind.Indicates that a mixture of newly generated and previously cached output should be used. -
Method Summary
Modifier and TypeMethodDescriptionstatic RebindMode
Returns the enum constant of this type with the specified name.static RebindMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
USE_EXISTING
Indicates no generated code is needed to satisfy this rebind. This mode can be used in cases where the requested type can be used directly as a default instantiable class, or in cases where a generator determines it has already run for the requested type in the current context (e.g. via a failed call toGeneratorContext.tryCreate(com.google.gwt.core.ext.TreeLogger, java.lang.String, java.lang.String)
). -
USE_ALL_NEW
Indicates only newly generated output should be used. All generated output will be cached. -
USE_ALL_NEW_WITH_NO_CACHING
Indicates only newly generated output should be used, and no output should be cached. This mode should be used when no caching can be taken advantage of, such as for generators which don't implementIncrementalGenerator.generateIncrementally(com.google.gwt.core.ext.TreeLogger, com.google.gwt.core.ext.GeneratorContext, java.lang.String)
. -
USE_ALL_CACHED
Indicates nothing new was generated, only cached output previously generated should be used. -
USE_PARTIAL_CACHED
Indicates that a mixture of newly generated and previously cached output should be used. Types marked with a successful call toGeneratorContext.tryReuseTypeFromCache(java.lang.String)
should be reused from cache, while everything else committed to the context should be treated as freshly generated output. A new composite cache entry will be created which combines the freshly generated output and the output reused from cache.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-