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(String typeName)
Mark a type to be reused from the generator result cache, if available.
|
checkRebindRuleAvailable, commit, commitArtifact, commitResource, getPropertyOracle, getResourcesOracle, getTypeOracle, isProdMode, tryCreate, tryCreateResource
public static GeneratorContext newInstance(GeneratorContext baseContext)
GeneratorContext
implementation.public CachedGeneratorResult getCachedGeneratorResult()
GeneratorContext
getCachedGeneratorResult
in interface GeneratorContext
getCachedGeneratorResult
in class DelegatingGeneratorContext
CachedGeneratorResult
object, if one has been provided to
the context. Null is returned if there is no previous result
available.public boolean isGeneratorResultCachingEnabled()
GeneratorContext
isGeneratorResultCachingEnabled
in interface GeneratorContext
isGeneratorResultCachingEnabled
in class DelegatingGeneratorContext
public boolean tryReuseTypeFromCache(String typeName)
GeneratorContext
IncrementalGenerator.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 GeneratorContext
tryReuseTypeFromCache
in class DelegatingGeneratorContext
typeName
- the fully qualified source name of a type.Copyright © 2018. All rights reserved.