|
GWT 2.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GeneratorContextExt
EXPERIMENTAL and subject to change. Do not use this in production code.
An extension to GeneratorContext which includes access to previously cached rebind results.
TODO(jbrosenberg): Merge this into GeneratorContext
directly, once
the api has stabilized and we can remove the "experimental" moniker.
Method Summary | |
---|---|
com.google.gwt.dev.javac.rebind.CachedRebindResult |
getCachedGeneratorResult()
Get cached result from a previous run of the current generator, if available. |
long |
getSourceLastModifiedTime(JClassType sourceType)
Get source last modified time. |
boolean |
isGeneratorResultCachingEnabled()
Check whether generator result caching is currently enabled. |
boolean |
isProdMode()
Returns true if generators are being run to produce code for a production compile. |
boolean |
reuseTypeFromCacheIfAvailable(java.lang.String typeName)
Mark a type to be reused from the generator result cache. |
Methods inherited from interface com.google.gwt.core.ext.GeneratorContext |
---|
commit, commitArtifact, commitResource, getPropertyOracle, getResourcesOracle, getTypeOracle, tryCreate, tryCreateResource |
Method Detail |
---|
com.google.gwt.dev.javac.rebind.CachedRebindResult getCachedGeneratorResult()
CachedRebindResult
object,
if one has been provided to the context. Null is returned if there
is no previous result, or if generator result caching is not enabled.long getSourceLastModifiedTime(JClassType sourceType)
TODO(jbrosenberg): Implement in terms of a getVersion method yet to be added to TypeOracle, instead of looking for age of a java source file. This will soon be removed.
boolean isGeneratorResultCachingEnabled()
boolean isProdMode()
boolean reuseTypeFromCacheIfAvailable(java.lang.String typeName)
GeneratorExt.generateIncrementally(com.google.gwt.core.ext.TreeLogger, com.google.gwt.core.ext.GeneratorContextExt, java.lang.String)
, with a result containing
RebindStatus.USE_PARTIAL_CACHED
.
typeName
- the fully qualified name of a type.
|
GWT 2.3.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |