public class NonIncrementalGeneratorContext extends DelegatingGeneratorContext
GeneratorContext instance but with
generator result caching disabled.| Modifier and Type | Method and Description |
|---|---|
CachedGeneratorResult |
getCachedGeneratorResult()
Get the cached rebind result that has been provided to the context, if
available.
|
boolean |
isGeneratorResultCachingEnabled()
Check whether generator result caching is currently enabled.
|
static GeneratorContext |
newInstance(GeneratorContext baseContext)
Get a new instance wrapped from a base
GeneratorContext
implementation. |
boolean |
tryReuseTypeFromCache(java.lang.String typeName)
Mark a type to be reused from the generator result cache, if available.
|
checkRebindRuleAvailable, commit, commitArtifact, commitResource, getPropertyOracle, getResourcesOracle, getTypeOracle, isProdMode, tryCreate, tryCreateResourcepublic static GeneratorContext newInstance(GeneratorContext baseContext)
GeneratorContext
implementation.public CachedGeneratorResult getCachedGeneratorResult()
GeneratorContextgetCachedGeneratorResult in interface GeneratorContextgetCachedGeneratorResult in class DelegatingGeneratorContextCachedGeneratorResult object, if one has been provided to
the context. Null is returned if there is no previous result
available.public boolean isGeneratorResultCachingEnabled()
GeneratorContextisGeneratorResultCachingEnabled in interface GeneratorContextisGeneratorResultCachingEnabled in class DelegatingGeneratorContextpublic boolean tryReuseTypeFromCache(java.lang.String typeName)
GeneratorContextIncrementalGenerator.generateIncrementally(com.google.gwt.core.ext.TreeLogger, com.google.gwt.core.ext.GeneratorContext, java.lang.String), with a result
containing RebindMode.USE_PARTIAL_CACHED.tryReuseTypeFromCache in interface GeneratorContexttryReuseTypeFromCache in class DelegatingGeneratorContexttypeName - the fully qualified source name of a type.