本文整理匯總了Java中com.google.gwt.core.ext.GeneratorContext.getCachedGeneratorResult方法的典型用法代碼示例。如果您正苦於以下問題:Java GeneratorContext.getCachedGeneratorResult方法的具體用法?Java GeneratorContext.getCachedGeneratorResult怎麽用?Java GeneratorContext.getCachedGeneratorResult使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.google.gwt.core.ext.GeneratorContext
的用法示例。
在下文中一共展示了GeneratorContext.getCachedGeneratorResult方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: checkAlreadyGenerated
import com.google.gwt.core.ext.GeneratorContext; //導入方法依賴的package包/類
private boolean checkAlreadyGenerated(TreeLogger logger,
GeneratorContext ctx,
String generatedClassQualifiedName) {
CachedGeneratorResult lastRebindResult = ctx.getCachedGeneratorResult();
if (lastRebindResult == null || !ctx.isGeneratorResultCachingEnabled()) {
return false;
}
/* it looks like we could use the existing one */
return true;
}
示例2: checkAlreadyGenerated
import com.google.gwt.core.ext.GeneratorContext; //導入方法依賴的package包/類
private boolean checkAlreadyGenerated(TreeLogger logger,
GeneratorContext ctx,
Mvp4gConfiguration configuration) {
CachedGeneratorResult lastRebindResult = ctx.getCachedGeneratorResult();
if (lastRebindResult == null || !ctx.isGeneratorResultCachingEnabled()) {
return false;
}
// Check whether all files are up to date
// EventBus
if (!this.checkEventBus(logger,
ctx)) {
return false;
}
// Module
if (!this.checkModule(logger,
ctx,
configuration.getModule())) {
return false;
}
// ChildModuleElement
if (!this.checkSet(logger,
ctx,
configuration.getChildModules())) {
return false;
}
// everything ok! -> use the old one ...
return true;
}
示例3: isNothingChanged
import com.google.gwt.core.ext.GeneratorContext; //導入方法依賴的package包/類
private boolean isNothingChanged(TreeLogger logger, GeneratorContext context, SerializableTypeOracle serializationOracle) {// caching use
CachedGeneratorResult cachedResult = context.getCachedGeneratorResult();
if (cachedResult == null || !context.isGeneratorResultCachingEnabled()){
return false;
}
Object obj = context.getCachedGeneratorResult().getClientData(ProxyCreator.CACHED_TYPE_INFO_KEY);
return obj != null && ((CachedRpcTypeInformation) obj).checkTypeInformation(logger, context.getTypeOracle(),
serializationOracle, serializationOracle);
}