public enum RebindMode extends Enum<RebindMode>
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.Enum Constant and Description |
---|
USE_ALL_CACHED
Indicates nothing new was generated, only cached output previously
generated should be used.
|
USE_ALL_NEW
Indicates only newly generated output should be used.
|
USE_ALL_NEW_WITH_NO_CACHING
Indicates only newly generated output should be used, and no output should
be cached.
|
USE_EXISTING
Indicates no generated code is needed to satisfy this rebind.
|
USE_PARTIAL_CACHED
Indicates that a mixture of newly generated and previously cached output
should be used.
|
Modifier and Type | Method and Description |
---|---|
static RebindMode |
valueOf(String name)
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.
|
compareTo, createValueOfMap, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf, valueOf
$isInstance
public static final RebindMode USE_EXISTING
GeneratorContext.tryCreate(com.google.gwt.core.ext.TreeLogger, java.lang.String, java.lang.String)
).public static final RebindMode USE_ALL_NEW
public static final RebindMode USE_ALL_NEW_WITH_NO_CACHING
IncrementalGenerator.generateIncrementally(com.google.gwt.core.ext.TreeLogger, com.google.gwt.core.ext.GeneratorContext, java.lang.String)
.public static final RebindMode USE_ALL_CACHED
public static final RebindMode USE_PARTIAL_CACHED
GeneratorContext.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.public static RebindMode[] values()
for (RebindMode c : RebindMode.values()) System.out.println(c);
public static RebindMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2018. All rights reserved.