Modifier and Type | Field and Description |
---|---|
static TreeLogger |
TreeLogger.NULL
A valid logger that ignores all messages.
|
Modifier and Type | Method and Description |
---|---|
TreeLogger |
TreeLogger.branch(TreeLogger.Type type,
String msg)
Calls
branch(com.google.gwt.core.ext.TreeLogger.Type, String, Throwable, com.google.gwt.core.ext.TreeLogger.HelpInfo)
with a null caught and helpInfo . |
TreeLogger |
TreeLogger.branch(TreeLogger.Type type,
String msg,
Throwable caught)
Calls
branch(com.google.gwt.core.ext.TreeLogger.Type, String, Throwable, com.google.gwt.core.ext.TreeLogger.HelpInfo)
with a null helpInfo . |
abstract TreeLogger |
TreeLogger.branch(TreeLogger.Type type,
String msg,
Throwable caught,
TreeLogger.HelpInfo helpInfo)
Produces a branched logger, which can be used to write messages that are
logically grouped together underneath the current logger.
|
Modifier and Type | Method and Description |
---|---|
boolean |
CachedPropertyInformation.checkPropertiesWithPropertyOracle(TreeLogger logger,
PropertyOracle oracle)
Check a previously cached set of deferred-binding and configuration
properties with the provided property oracle.
|
void |
DelegatingGeneratorContext.commit(TreeLogger logger,
PrintWriter pw) |
void |
GeneratorContext.commit(TreeLogger logger,
PrintWriter pw)
Commits source generation begun with
GeneratorContext.tryCreate(TreeLogger, String, String) . |
void |
StubGeneratorContext.commit(TreeLogger logger,
PrintWriter pw) |
void |
DelegatingGeneratorContext.commitArtifact(TreeLogger logger,
Artifact<?> artifact) |
void |
GeneratorContext.commitArtifact(TreeLogger logger,
Artifact<?> artifact)
Add an Artifact to the
ArtifactSet
that will be presented to the Linker chain at the end of the
compilation cycle. |
void |
StubGeneratorContext.commitArtifact(TreeLogger logger,
Artifact<?> artifact) |
GeneratedResource |
DelegatingGeneratorContext.commitResource(TreeLogger logger,
OutputStream os) |
GeneratedResource |
GeneratorContext.commitResource(TreeLogger logger,
OutputStream os)
Commits resource generation begun with
GeneratorContext.tryCreateResource(TreeLogger, String) . |
GeneratedResource |
StubGeneratorContext.commitResource(TreeLogger logger,
OutputStream os) |
String |
IncrementalGenerator.generate(TreeLogger logger,
GeneratorContext context,
String typeName)
This method overrides
Generator.generate(com.google.gwt.core.ext.TreeLogger, com.google.gwt.core.ext.GeneratorContext, java.lang.String) , and is included only for
backwards compatibility. |
abstract String |
Generator.generate(TreeLogger logger,
GeneratorContext context,
String typeName)
Generate a default constructible subclass of the requested type.
|
abstract RebindResult |
IncrementalGenerator.generateIncrementally(TreeLogger logger,
GeneratorContext context,
String typeName)
Incrementally generate a default constructible subclass of the requested
type.
|
static RebindResult |
IncrementalGenerator.generateNonIncrementally(TreeLogger logger,
Generator generator,
GeneratorContext context,
String typeName)
A static helper method to wrap a non-incremental generator's result.
|
SelectionProperty |
SubsetFilteringPropertyOracle.getSelectionProperty(TreeLogger logger,
String propertyName) |
SelectionProperty |
PropertyOracle.getSelectionProperty(TreeLogger logger,
String propertyName)
Attempts to get a named deferred binding property.
|
ArtifactSet |
Linker.link(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts)
This method is invoked for linkers not annotated with
Shardable . |
ArtifactSet |
Linker.link(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts,
boolean onePermutation)
This method is invoked for linkers annotated with
Shardable . |
String |
LinkerContext.optimizeJavaScript(TreeLogger logger,
String jsProgram)
Applies optimizations to a JavaScript program.
|
boolean |
ServletContainerLauncher.processArguments(TreeLogger logger,
String arguments)
Process any supplied arguments.
|
ArtifactSet |
Linker.relink(TreeLogger logger,
LinkerContext context,
ArtifactSet newArtifacts)
Re-invoke the Linker with newly generated artifacts.
|
abstract ServletContainer |
ServletContainerLauncher.start(TreeLogger logger,
int port,
File appRootDir)
Start an embedded HTTP servlet container.
|
PrintWriter |
DelegatingGeneratorContext.tryCreate(TreeLogger logger,
String packageName,
String simpleName) |
PrintWriter |
GeneratorContext.tryCreate(TreeLogger logger,
String packageName,
String simpleName)
Attempts to get a
PrintWriter so that the caller can generate
the source code for the named type. |
PrintWriter |
StubGeneratorContext.tryCreate(TreeLogger logger,
String packageName,
String simpleName) |
OutputStream |
DelegatingGeneratorContext.tryCreateResource(TreeLogger logger,
String partialPath) |
OutputStream |
GeneratorContext.tryCreateResource(TreeLogger logger,
String partialPath)
Attempts to get an
OutputStream so that the caller can write
file contents into the named file underneath the compilation output
directory. |
OutputStream |
StubGeneratorContext.tryCreateResource(TreeLogger logger,
String partialPath) |
Constructor and Description |
---|
CachedPropertyInformation(TreeLogger logger,
PropertyOracle oracle,
Collection<String> selectionPropertyNames,
Collection<String> configPropertyNames) |
Modifier and Type | Method and Description |
---|---|
static InputStream |
ResourceLocatorImpl.tryFindResourceAsStream(TreeLogger logger,
ResourceOracle resourceOracle,
String resourceName)
Returns an InputStream for the given resource as found in the ResourceOracle.
|
static URL |
ResourceLocatorImpl.tryFindResourceUrl(TreeLogger logger,
ResourceOracle resourceOracle,
String resourceName)
Returns a URL for the given resource as found in the ResourceOracle.
|
Modifier and Type | Method and Description |
---|---|
protected SyntheticArtifact |
AbstractLinker.emitBytes(TreeLogger logger,
byte[] what,
String partialPath)
A helper method to create an artifact from an array of bytes.
|
protected SyntheticArtifact |
AbstractLinker.emitBytes(TreeLogger logger,
byte[] what,
String partialPath,
long lastModified)
A helper method to create an artifact from an array of bytes.
|
protected SyntheticArtifact |
AbstractLinker.emitInputStream(TreeLogger logger,
InputStream what,
String partialPath)
A helper method to create an artifact to emit the contents of an
InputStream.
|
protected SyntheticArtifact |
AbstractLinker.emitInputStream(TreeLogger logger,
InputStream what,
String partialPath,
long lastModified)
A helper method to create an artifact to emit the contents of an
InputStream.
|
protected SyntheticArtifact |
AbstractLinker.emitString(TreeLogger logger,
String what,
String partialPath)
A helper method to create an artifact to emit a String.
|
protected SyntheticArtifact |
AbstractLinker.emitString(TreeLogger logger,
String what,
String partialPath,
long lastModified)
A helper method to create an artifact to emit a String.
|
protected SyntheticArtifact |
AbstractLinker.emitWithStrongName(TreeLogger logger,
byte[] what,
String prefix,
String suffix)
A helper method to create an artifact from an array of bytes with a strong
name.
|
protected SyntheticArtifact |
AbstractLinker.emitWithStrongName(TreeLogger logger,
byte[] what,
String prefix,
String suffix,
long lastModified)
A helper method to create an artifact from an array of bytes with a strong
name.
|
String |
PropertyProviderGenerator.generate(TreeLogger logger,
SortedSet<String> possibleValues,
String fallback,
SortedSet<ConfigurationProperty> configProperties)
Generate a property provider.
|
InputStream |
SyntheticArtifact.getContents(TreeLogger logger) |
abstract InputStream |
EmittedArtifact.getContents(TreeLogger logger)
Provides access to the contents of the EmittedResource.
|
String |
SelectionProperty.getPropertyProvider(TreeLogger logger,
SortedSet<ConfigurationProperty> configProperties)
Returns a raw function body that provides the runtime value to be used for
a deferred binding property.
|
void |
SyntheticArtifact.writeTo(TreeLogger logger,
OutputStream out) |
void |
EmittedArtifact.writeTo(TreeLogger logger,
OutputStream out)
Provides access to the contents of the EmittedResource.
|
Modifier and Type | Method and Description |
---|---|
static String |
PropertiesUtil.addKnownPropertiesJs(TreeLogger logger,
CompilationResult result) |
StringBuffer |
PermutationsUtil.addPermutationsJs(StringBuffer selectionScript,
TreeLogger logger,
LinkerContext context)
Uses the internal map to insert JS to select a permutation into the
selection script.
|
static StringBuffer |
PropertiesUtil.addPropertiesJs(StringBuffer selectionScript,
TreeLogger logger,
LinkerContext context) |
protected int |
SelectionScriptLinker.charsPerChunk(LinkerContext context,
TreeLogger logger)
Extract via
SelectionScriptLinker.CHUNK_SIZE_PROPERTY the number of characters to be included in each
chunk. |
protected Collection<Artifact<?>> |
SelectionScriptLinker.doEmitCompilation(TreeLogger logger,
LinkerContext context,
CompilationResult result,
ArtifactSet artifacts) |
protected EmittedArtifact |
SelectionScriptLinker.emitSelectionScript(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts) |
protected String |
SelectionScriptLinker.fillSelectionScriptTemplate(StringBuffer selectionScript,
TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts,
CompilationResult result)
Generate a selection script.
|
protected String |
SelectionScriptLinker.generateDeferredFragment(TreeLogger logger,
LinkerContext context,
int fragment,
String js,
ArtifactSet artifacts,
CompilationResult result) |
protected byte[] |
SelectionScriptLinker.generatePrimaryFragment(TreeLogger logger,
LinkerContext context,
CompilationResult result,
String[] js,
ArtifactSet artifacts)
Generate the primary fragment.
|
protected String |
SelectionScriptLinker.generatePrimaryFragmentString(TreeLogger logger,
LinkerContext context,
CompilationResult result,
String js,
int length,
ArtifactSet artifacts) |
static String |
PropertiesUtil.generatePropertiesSnippet(ModuleDef module,
TreeLogger compileLogger)
Returns JavaScript that declares and initializes the "providers" and "values" variables.
|
protected String |
SelectionScriptLinker.generateSelectionScript(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts) |
String |
HostedModeLinker.generateSelectionScript(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts)
TODO: When this class is removed, move SelectionScriptLinker to gwt-user.
|
protected String |
SelectionScriptLinker.generateSelectionScript(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts,
CompilationResult result) |
ArtifactSet |
StandardLinkerContext.getArtifactsForPublicResources(TreeLogger logger,
ModuleDef module)
Convert all static resources in the specified module to artifacts.
|
protected abstract String |
SelectionScriptLinker.getCompilationExtension(TreeLogger logger,
LinkerContext context) |
protected String |
HostedModeLinker.getCompilationExtension(TreeLogger logger,
LinkerContext context) |
InputStream |
BinaryOnlyArtifactWrapper.getContents(TreeLogger logger) |
InputStream |
StandardGeneratedResource.getContents(TreeLogger logger) |
InputStream |
StandardPublicResource.getContents(TreeLogger logger) |
InputStream |
JarEntryEmittedArtifact.getContents(TreeLogger logger) |
protected String |
SelectionScriptLinker.getDeferredFragmentPrefix(TreeLogger logger,
LinkerContext context,
int fragment) |
protected String |
SelectionScriptLinker.getDeferredFragmentSuffix(TreeLogger logger,
LinkerContext context,
int fragment)
Deprecated.
|
protected String |
SelectionScriptLinker.getDeferredFragmentSuffix2(TreeLogger logger,
LinkerContext context,
int fragment,
String strongName)
Returns the suffix at the end of a JavaScript fragment other than the initial fragment
(new version).
|
protected String |
SelectionScriptLinker.getFragmentSubdir(TreeLogger logger,
LinkerContext context)
Returns the subdirectory name to be used by getModulPrefix when requesting a runAsync module.
|
protected abstract String |
SelectionScriptLinker.getModulePrefix(TreeLogger logger,
LinkerContext context,
String strongName)
Compute the beginning of a JavaScript file that will hold the main module implementation.
|
protected String |
HostedModeLinker.getModulePrefix(TreeLogger logger,
LinkerContext context,
String strongName) |
protected String |
SelectionScriptLinker.getModulePrefix(TreeLogger logger,
LinkerContext context,
String strongName,
int numFragments)
Compute the beginning of a JavaScript file that will hold the main module implementation.
|
protected String |
SelectionScriptLinker.getModuleSuffix(TreeLogger logger,
LinkerContext context)
Deprecated.
|
protected String |
HostedModeLinker.getModuleSuffix(TreeLogger logger,
LinkerContext context) |
protected String |
SelectionScriptLinker.getModuleSuffix2(TreeLogger logger,
LinkerContext context,
String strongName)
Returns the suffix for the initial JavaScript fragment (new version).
|
String |
StandardSelectionProperty.getPropertyProvider(TreeLogger logger,
SortedSet<ConfigurationProperty> configProperties) |
protected String |
SelectionScriptLinker.getScriptChunkSeparator(TreeLogger logger,
LinkerContext context)
Some subclasses support "chunking" of the primary fragment.
|
protected abstract String |
SelectionScriptLinker.getSelectionScriptTemplate(TreeLogger logger,
LinkerContext context) |
protected String |
HostedModeLinker.getSelectionScriptTemplate(TreeLogger logger,
LinkerContext context) |
ArtifactSet |
StandardLinkerContext.invokeFinalLink(TreeLogger logger,
ArtifactSet artifacts) |
ArtifactSet |
StandardLinkerContext.invokeLegacyLinkers(TreeLogger logger,
ArtifactSet artifacts)
Run linkers that have not been updated for the shardable API.
|
ArtifactSet |
StandardLinkerContext.invokeLinkForOnePermutation(TreeLogger logger,
StandardCompilationResult permResult,
ArtifactSet permArtifacts)
Invoke the shardable linkers on one permutation result.
|
ArtifactSet |
StandardLinkerContext.invokeRelink(TreeLogger logger,
ArtifactSet newlyGeneratedArtifacts) |
ArtifactSet |
SelectionScriptLinker.link(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts)
This method is left in place for existing subclasses of SelectionScriptLinker that have not
been upgraded for the sharding API.
|
ArtifactSet |
StandardLinkerContext.link(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts) |
ArtifactSet |
HostedModeLinker.link(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts) |
ArtifactSet |
SelectionScriptLinker.link(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts,
boolean onePermutation) |
protected void |
SelectionScriptLinker.maybeAddHostedModeFile(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts,
CompilationResult result)
Add the Development Mode file to the artifact set.
|
protected void |
SelectionScriptLinker.maybeOutputPropertyMap(TreeLogger logger,
LinkerContext context,
ArtifactSet toReturn) |
String |
StandardLinkerContext.optimizeJavaScript(TreeLogger logger,
String program) |
void |
StandardLinkerContext.produceOutput(TreeLogger logger,
ArtifactSet artifacts,
EmittedArtifact.Visibility visibility,
OutputFileSet out)
Emit EmittedArtifacts artifacts onto
out . |
protected StringBuffer |
SelectionScriptLinker.readFileToStringBuffer(String filename,
TreeLogger logger) |
protected String |
SelectionScriptLinker.wrapDeferredFragment(TreeLogger logger,
LinkerContext context,
int fragment,
String script,
ArtifactSet artifacts) |
protected String |
SelectionScriptLinker.wrapPrimaryFragment(TreeLogger logger,
LinkerContext context,
String script,
ArtifactSet artifacts,
CompilationResult result) |
void |
StandardGeneratedResource.writeTo(TreeLogger logger,
OutputStream out) |
Constructor and Description |
---|
StandardLinkerContext(TreeLogger logger,
ModuleDef module,
ResourceOracle publicResourceOracle,
JsOutputOption outputOption) |
Modifier and Type | Method and Description |
---|---|
protected void |
DependencyRecorder.recordDependenciesImpl(TreeLogger logger,
JProgram jprogram)
Used to record dependencies of a program.
|
static void |
SizeMapRecorder.recordMap(TreeLogger logger,
OutputStream out,
SizeBreakdown[] sizeBreakdowns,
JavaToJavaScriptMap jjsmap,
Map<JsName,JsLiteral> internedLiteralByVariableName) |
static void |
SplitPointRecorder.recordSplitPoints(JProgram jprogram,
OutputStream out,
TreeLogger logger)
Used to record (runAsync) split points of a program.
|
static void |
StoryRecorder.recordStories(TreeLogger logger,
OutputStream out,
List<JsSourceMap> sourceInfoMaps,
String[] js)
Used to record dependencies of a program.
|
protected void |
StoryRecorder.recordStoriesImpl(TreeLogger logger,
OutputStream out,
List<JsSourceMap> sourceInfoMaps,
String[] js) |
Modifier and Type | Method and Description |
---|---|
protected Collection<Artifact<?>> |
D8ScriptLinker.doEmitCompilation(TreeLogger logger,
LinkerContext context,
CompilationResult result,
ArtifactSet artifacts) |
protected Collection<Artifact<?>> |
SingleScriptLinker.doEmitCompilation(TreeLogger logger,
LinkerContext context,
CompilationResult result,
ArtifactSet artifacts) |
protected void |
SymbolMapsLinker.doEmitSymbolMap(TreeLogger logger,
ArtifactSet artifacts,
CompilationResult result,
ByteArrayOutputStream out)
Override to change the manner in which the symbol map is emitted.
|
protected void |
SymbolMapsLinker.doWriteSymbolMap(TreeLogger logger,
CompilationResult result,
PrintWriter pw)
Override to change the format of the symbol map.
|
protected EmittedArtifact |
D8ScriptLinker.emitSelectionScript(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts) |
protected EmittedArtifact |
SingleScriptLinker.emitSelectionScript(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts) |
protected SyntheticArtifact |
SymbolMapsLinker.emitSourceMapString(TreeLogger logger,
String contents,
String partialPath) |
protected String |
CrossSiteIframeLinker.fillSelectionScriptTemplate(StringBuffer ss,
TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts,
CompilationResult result) |
protected String |
IFrameLinker.getCompilationExtension(TreeLogger logger,
LinkerContext context)
Deprecated.
|
protected String |
D8ScriptLinker.getCompilationExtension(TreeLogger logger,
LinkerContext context)
Unimplemented.
|
protected String |
SingleScriptLinker.getCompilationExtension(TreeLogger logger,
LinkerContext context)
Unimplemented.
|
protected String |
XSLinker.getCompilationExtension(TreeLogger logger,
LinkerContext context)
Deprecated.
|
protected String |
CrossSiteIframeLinker.getCompilationExtension(TreeLogger logger,
LinkerContext context) |
protected String |
CrossSiteIframeLinker.getDeferredFragmentSuffix2(TreeLogger logger,
LinkerContext context,
int fragment,
String strongName) |
protected String |
IFrameLinker.getModulePrefix(TreeLogger logger,
LinkerContext context,
String strongName)
Deprecated.
|
protected String |
D8ScriptLinker.getModulePrefix(TreeLogger logger,
LinkerContext context,
String strongName)
Unimplemented.
|
protected String |
SingleScriptLinker.getModulePrefix(TreeLogger logger,
LinkerContext context,
String strongName)
Unimplemented.
|
protected String |
XSLinker.getModulePrefix(TreeLogger logger,
LinkerContext context,
String strongName)
Deprecated.
|
protected String |
CrossSiteIframeLinker.getModulePrefix(TreeLogger logger,
LinkerContext context,
String strongName) |
protected String |
IFrameLinker.getModulePrefix(TreeLogger logger,
LinkerContext context,
String strongName,
int numFragments)
Deprecated.
|
protected String |
XSLinker.getModulePrefix(TreeLogger logger,
LinkerContext context,
String strongName,
int numFragments)
Deprecated.
|
protected String |
IFrameLinker.getModuleSuffix(TreeLogger logger,
LinkerContext context)
Deprecated.
|
protected String |
D8ScriptLinker.getModuleSuffix(TreeLogger logger,
LinkerContext context)
Unimplemented.
|
protected String |
SingleScriptLinker.getModuleSuffix(TreeLogger logger,
LinkerContext context)
Unimplemented.
|
protected String |
XSLinker.getModuleSuffix(TreeLogger logger,
LinkerContext context)
Deprecated.
|
protected String |
CrossSiteIframeLinker.getModuleSuffix2(TreeLogger logger,
LinkerContext context,
String strongName) |
protected String |
IFrameLinker.getScriptChunkSeparator(TreeLogger logger,
LinkerContext context)
Deprecated.
|
protected String |
CrossSiteIframeLinker.getScriptChunkSeparator(TreeLogger logger,
LinkerContext context) |
protected String |
IFrameLinker.getSelectionScriptTemplate(TreeLogger logger,
LinkerContext context)
Deprecated.
|
protected String |
D8ScriptLinker.getSelectionScriptTemplate(TreeLogger logger,
LinkerContext context) |
protected String |
SingleScriptLinker.getSelectionScriptTemplate(TreeLogger logger,
LinkerContext context) |
protected String |
XSLinker.getSelectionScriptTemplate(TreeLogger logger,
LinkerContext context)
Deprecated.
|
protected String |
CrossSiteIframeLinker.getSelectionScriptTemplate(TreeLogger logger,
LinkerContext context) |
protected void |
CrossSiteIframeLinker.includeJs(StringBuffer selectionScript,
TreeLogger logger,
String jsSource,
String templateVar) |
ArtifactSet |
SymbolMapsLinker.link(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts)
Included to support legacy non-shardable subclasses.
|
ArtifactSet |
IFrameLinker.link(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts,
boolean onePermutation)
Deprecated.
|
ArtifactSet |
SymbolMapsLinker.link(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts,
boolean onePermutation) |
ArtifactSet |
XSLinker.link(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts,
boolean onePermutation)
Deprecated.
|
ArtifactSet |
SoycReportLinker.link(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts,
boolean onePermutation) |
protected void |
CrossSiteIframeLinker.maybeAddHostedModeFile(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts,
CompilationResult result) |
protected void |
CrossSiteIframeLinker.maybeOutputPropertyMap(TreeLogger logger,
LinkerContext context,
ArtifactSet toReturn) |
protected String |
XSLinker.wrapDeferredFragment(TreeLogger logger,
LinkerContext context,
int fragment,
String js,
ArtifactSet artifacts)
Deprecated.
|
protected String |
CrossSiteIframeLinker.wrapDeferredFragment(TreeLogger logger,
LinkerContext context,
int fragment,
String js,
ArtifactSet artifacts) |
protected String |
CrossSiteIframeLinker.wrapPrimaryFragment(TreeLogger logger,
LinkerContext context,
String script,
ArtifactSet artifacts,
CompilationResult result) |
Modifier and Type | Method and Description |
---|---|
TreeLogger |
ModulePanel.getLogger() |
TreeLogger |
WebServerPanel.getLogger() |
TreeLogger |
ModuleHandle.getLogger() |
TreeLogger |
SwingUI.SwingModuleHandle.getLogger() |
TreeLogger |
DevModeBase.getTopLogger() |
TreeLogger |
SwingUI.getTopLogger() |
TreeLogger |
HeadlessUI.getWebServerLogger(String serverName,
byte[] serverIcon) |
TreeLogger |
SwingUI.getWebServerLogger(String serverName,
byte[] serverIcon) |
Modifier and Type | Method and Description |
---|---|
void |
MinimalRebuildCache.addModifiedCompilationUnitNames(TreeLogger logger,
Set<String> modifiedCompilationUnitNames) |
void |
NullRebuildCache.addModifiedCompilationUnitNames(TreeLogger logger,
Set<String> modifiedCompilationUnitNames) |
IncrementalBuilder.BuildResultStatus |
IncrementalBuilder.build(TreeLogger logger) |
static PermutationResult |
CompilePerms.compile(TreeLogger logger,
CompilerContext compilerContext,
Permutation permutation,
UnifiedAst unifiedAst)
Compile a single permutation.
|
static void |
CompilePerms.compile(TreeLogger logger,
CompilerContext compilerContext,
Precompilation precompilation,
Permutation[] perms,
int localWorkers,
List<PersistenceBackedObject<PermutationResult>> resultFiles)
Compile multiple permutations.
|
static void |
PermutationWorkerFactory.compilePermutations(TreeLogger logger,
CompilerContext compilerContext,
Precompilation precompilation,
int localWorkers,
List<PersistenceBackedObject<PermutationResult>> resultFiles)
Compiles all Permutations in a Precompilation and returns an array of Files
that can be consumed by Link using the system-default
PermutationWorkersFactories.
|
static void |
PermutationWorkerFactory.compilePermutations(TreeLogger logger,
CompilerContext compilerContext,
Precompilation precompilation,
Permutation[] permutations,
int localWorkers,
List<PersistenceBackedObject<PermutationResult>> resultFiles)
Compiles a subset of the Permutations in a Precompilation and returns an
array of Files that can be consumed by Link using the system-default
PermutationWorkersFactories.
|
Set<String> |
MinimalRebuildCache.computeAndClearStaleTypesCache(TreeLogger logger,
JTypeOracle typeOracle)
Calculates the set of stale types and clears their cached Js, StatementRanges and SourceMaps.
|
Set<String> |
NullRebuildCache.computeAndClearStaleTypesCache(TreeLogger logger,
JTypeOracle typeOracle) |
protected ShellModuleSpaceHost |
DevModeBase.doCreateShellModuleSpaceHost(TreeLogger logger,
CompilationState compilationState,
ModuleDef moduleDef)
Creates an instance of ShellModuleSpaceHost (or a derived class) using the
specified constituent parts.
|
static UnitCache |
Compiler.getOrCreateUnitCache(TreeLogger logger,
CompilerOptions options)
Locates the unit cache dir relative to the war dir and returns a UnitCache instance.
|
abstract Collection<com.google.gwt.dev.PermutationWorker> |
PermutationWorkerFactory.getWorkers(TreeLogger logger,
UnifiedAst unifiedAst,
int numWorkers)
Return some number of PermutationWorkers.
|
Collection<com.google.gwt.dev.PermutationWorker> |
ThreadedPermutationWorkerFactory.getWorkers(TreeLogger logger,
UnifiedAst unifiedAst,
int numWorkers) |
Collection<com.google.gwt.dev.PermutationWorker> |
ExternalPermutationWorkerFactory.getWorkers(TreeLogger logger,
UnifiedAst unifiedAst,
int numWorkers) |
abstract void |
PermutationWorkerFactory.init(TreeLogger logger)
Initialize the PermutationWorkerFactory.
|
void |
ThreadedPermutationWorkerFactory.init(TreeLogger logger) |
void |
ExternalPermutationWorkerFactory.init(TreeLogger logger) |
protected StandardLinkerContext |
DevModeBase.link(TreeLogger logger,
ModuleDef module)
Perform an initial hosted mode link, without overwriting newer or
unmodified files in the output folder.
|
static void |
Link.link(TreeLogger logger,
ModuleDef module,
ResourceOracle publicResourceOracle,
ArtifactSet generatedArtifacts,
Permutation[] permutations,
List<PersistenceBackedObject<PermutationResult>> resultFiles,
Set<PermutationResult> libraries,
PrecompileTaskOptions precompileOptions,
Link.LinkOptions linkOptions) |
static void |
Link.linkOnePermutationToJar(TreeLogger logger,
ModuleDef module,
ResourceOracle publicResourceOracle,
ArtifactSet generatedArtifacts,
PermutationResult permResult,
File jarFile,
PrecompileTaskOptions precompileOptions)
This link operation is performed on a CompilePerms shard for one
permutation.
|
protected ModuleDef |
DevMode.loadModule(TreeLogger logger,
String moduleName,
boolean refresh) |
protected ModuleDef |
DevModeBase.loadModule(TreeLogger logger,
String moduleName,
boolean refresh)
Load a module.
|
void |
DevMode.onRestartServer(TreeLogger logger)
Called by the UI on a restart server event.
|
static Precompilation |
Precompile.precompile(TreeLogger logger,
CompilerContext compilerContext)
Precompiles the given module.
|
protected void |
DevMode.produceOutput(TreeLogger logger,
StandardLinkerContext linkerStack,
ArtifactSet artifacts,
ModuleDef module,
boolean isRelink) |
protected abstract void |
DevModeBase.produceOutput(TreeLogger logger,
StandardLinkerContext linkerStack,
ArtifactSet artifacts,
ModuleDef module,
boolean isRelink) |
static PrecompileTaskOptions |
AnalyzeModule.readAnalyzeModuleOptionsFile(TreeLogger logger,
File compilerWorkDir)
Loads the AnalyzeModule.OPTIONS_FILENAME data.
|
IncrementalBuilder.BuildResultStatus |
IncrementalBuilder.rebuild(TreeLogger logger) |
void |
Precompilation.removeSourceArtifacts(TreeLogger logger)
Removes saved source code from the generated artifacts.
|
void |
WebServerPanel.RestartAction.restartServer(TreeLogger logger) |
static boolean |
CompilePermsServer.run(CompilePermsServer.CompileServerOptions options,
TreeLogger logger) |
boolean |
CompileTaskRunner.CompileTask.run(TreeLogger logger) |
boolean |
PrecompileOnePerm.run(TreeLogger logger) |
boolean |
CompilePerms.run(TreeLogger logger) |
boolean |
CompileOnePerm.run(TreeLogger logger) |
boolean |
Precompile.run(TreeLogger logger) |
boolean |
CompileModule.run(TreeLogger logger)
Main loop.
|
boolean |
Link.run(TreeLogger logger) |
boolean |
Compiler.run(TreeLogger logger) |
boolean |
AnalyzeModule.run(TreeLogger logger) |
boolean |
Compiler.run(TreeLogger logger,
ModuleDef... modules) |
void |
MinimalRebuildCache.setJsForType(TreeLogger logger,
String typeName,
String typeJs) |
void |
NullRebuildCache.setJsForType(TreeLogger logger,
String typeName,
String typeJs) |
void |
MinimalRebuildCache.setPreambleTypeNames(TreeLogger logger,
Set<String> preambleTypeNames) |
void |
NullRebuildCache.setPreambleTypeNames(TreeLogger logger,
Set<String> preambleTypeNames) |
void |
SwingUI.setWebServerSecure(TreeLogger serverLogger) |
static boolean |
Precompile.validate(TreeLogger logger,
CompilerContext compilerContext)
Validates the given module can be compiled.
|
Modifier and Type | Method and Description |
---|---|
static ModuleDef |
ModuleDefLoader.createSyntheticModule(TreeLogger logger,
CompilerContext compilerContext,
String moduleName,
String[] inherits,
boolean refresh)
Creates a module in memory that is not associated with a
.gwt.xml file on disk. |
void |
ModuleDef.defineLinker(TreeLogger logger,
String name,
Class<? extends Linker> linker)
Associate a Linker class with a symbolic name.
|
protected boolean |
ConditionWhenPropertyIs.doEval(TreeLogger logger,
DeferredBindingQuery query) |
protected boolean |
ConditionAny.doEval(TreeLogger logger,
DeferredBindingQuery query) |
protected boolean |
ConditionAll.doEval(TreeLogger logger,
DeferredBindingQuery query) |
protected abstract boolean |
Condition.doEval(TreeLogger logger,
DeferredBindingQuery query) |
protected boolean |
ConditionWhenTypeIs.doEval(TreeLogger logger,
DeferredBindingQuery query) |
protected boolean |
ConditionNone.doEval(TreeLogger logger,
DeferredBindingQuery query) |
protected boolean |
ConditionWhenLinkerAdded.doEval(TreeLogger logger,
DeferredBindingQuery query)
Deprecated.
|
protected boolean |
ConditionWhenTypeAssignableTo.doEval(TreeLogger logger,
DeferredBindingQuery query) |
com.google.gwt.thirdparty.guava.common.collect.ImmutableList<com.google.gwt.thirdparty.guava.common.collect.ImmutableMap<String,String>> |
PermProps.findEmbeddedProperties(TreeLogger logger)
Returns the binding property values to be embedded into the initial JavaScript fragment
for this permutation.
|
String |
PropertyProviderRegistratorGenerator.generate(TreeLogger logger,
GeneratorContext context,
String moduleName) |
String |
EntryMethodHolderGenerator.generate(TreeLogger logger,
GeneratorContext context,
String moduleCanonicalName) |
String |
RuntimeRebindRegistratorGenerator.generate(TreeLogger logger,
GeneratorContext context,
String canonicalModuleName) |
void |
RuleGenerateWith.generate(TreeLogger logger,
Properties moduleProperties,
GeneratorContext context,
String typeName)
Generate all possible Generator output for the wrapped Generator in combination with the scope
of Properties and values known about by the passed GeneratorContext.
|
void |
RuleFail.generateRuntimeRebindClasses(TreeLogger logger,
ModuleDef module,
GeneratorContext context) |
void |
Rule.generateRuntimeRebindClasses(TreeLogger logger,
ModuleDef module,
GeneratorContext context)
Generate runtime rebind classes that perform the same rebinding behavior represented by the
current Rule.
|
void |
RuleReplaceWith.generateRuntimeRebindClasses(TreeLogger logger,
ModuleDef module,
GeneratorContext context) |
CompilationState |
ModuleDef.getCompilationState(TreeLogger logger,
CompilerContext compilerContext) |
SelectionProperty |
DynamicPropertyOracle.getSelectionProperty(TreeLogger logger,
String propertyName) |
boolean |
Rule.isApplicable(TreeLogger logger,
StandardGeneratorContext context,
String typeName) |
boolean |
Condition.isTrue(TreeLogger logger,
DeferredBindingQuery query)
Test the condition with the given parameters.
|
protected void |
ModuleDefLoader.load(TreeLogger logger,
String nameOfModuleToLoad,
ModuleDef dest)
Loads a module and all its included modules, recursively, into the given ModuleDef.
|
static ModuleDef |
ModuleDefLoader.loadFromClassPath(TreeLogger logger,
CompilerContext compilerContext,
String moduleName)
Loads a new module from the class path and defers scanning associated directories for
resources.
|
static ModuleDef |
ModuleDefLoader.loadFromClassPath(TreeLogger logger,
CompilerContext compilerContext,
String moduleName,
boolean refresh)
Loads a new module from the class path and may or may not immediately scan associated
directories for resources.
|
static ModuleDef |
ModuleDefLoader.loadFromResources(TreeLogger logger,
CompilerContext compilerContext,
String moduleName,
ResourceLoader resources,
boolean refresh)
Loads a new module from the given ResourceLoader and may or may not immediately scan associated
directories for resources.
|
void |
ModuleDef.printOverlappingSourceWarnings(TreeLogger logger) |
RebindResult |
RuleFail.realize(TreeLogger logger,
StandardGeneratorContext context,
String typeName) |
RebindResult |
RuleGenerateWith.realize(TreeLogger logger,
StandardGeneratorContext context,
String typeName) |
abstract RebindResult |
Rule.realize(TreeLogger logger,
StandardGeneratorContext context,
String typeName) |
RebindResult |
RuleReplaceWith.realize(TreeLogger logger,
StandardGeneratorContext context,
String typeName) |
void |
LibraryGroup.verify(TreeLogger logger) |
Constructor and Description |
---|
ModuleDefSchema(TreeLogger logger,
ModuleDefLoader loader,
String moduleName,
URL moduleURL,
String modulePackageAsPath,
ModuleDef toConfigure) |
Modifier and Type | Method and Description |
---|---|
String |
JobRunner.getRecompileJs(TreeLogger logger,
com.google.gwt.dev.codeserver.Outbox box)
Return fresh Js that knows how to request the specific permutation recompile for the given box.
|
Modifier and Type | Method and Description |
---|---|
void |
CompilationState.addGeneratedCompilationUnits(TreeLogger logger,
Collection<GeneratedUnit> generatedUnits)
Compiles the given source files (unless cached) and adds them to the
CompilationState.
|
Collection<CompilationUnit> |
CompilationStateBuilder.CompileMoreLater.addGeneratedTypes(TreeLogger logger,
Collection<GeneratedUnit> generatedUnits,
CompilationState compilationState)
Compiles generated source files (unless cached) and adds them to the
CompilationState.
|
protected void |
CompilationUnitTypeOracleUpdater.addNewTypesDontIndex(TreeLogger logger,
Collection<CompilationUnit> compilationUnits) |
void |
CompilationUnitTypeOracleUpdater.addNewUnits(TreeLogger logger,
Collection<CompilationUnit> compilationUnits)
Adds new units to an existing TypeOracle and indexes their type hierarchy.
|
void |
CompilationState.addReferencedCompilationUnits(TreeLogger logger,
List<CompilationUnit> referencedUnits)
Indexes referenced external compilation units but does not save them in a library.
|
static CompilationState |
CompilationStateBuilder.buildFrom(TreeLogger logger,
CompilerContext compilerContext,
Set<Resource> resources)
Compiles the given source files and adds them to the CompilationState.
|
static CompilationState |
CompilationStateBuilder.buildFrom(TreeLogger logger,
CompilerContext compilerContext,
Set<Resource> resources,
JdtCompiler.AdditionalTypeProviderDelegate delegate)
Compiles the given source files and adds them to the CompilationState.
|
void |
UnitCache.cleanup(TreeLogger logger)
Each run of the compiler should call
UnitCache.cleanup(TreeLogger) when
finished adding units to the cache so that cache files from previous runs
can be purged from a persistent cache. |
void |
MemoryUnitCache.cleanup(TreeLogger logger)
This method is a no-op for an in-memory cache.
|
void |
LibraryGroupUnitCache.cleanup(TreeLogger logger) |
void |
StandardGeneratorContext.GeneratedUnitImpl.commit(TreeLogger logger)
Finalizes the source and adds this generated unit to the host.
|
void |
StandardGeneratorContext.commit(TreeLogger logger,
PrintWriter pw)
Commits a pending generated type.
|
void |
StandardGeneratorContext.commitArtifact(TreeLogger logger,
Artifact<?> artifact)
Adds an Artifact to the context's ArtifactSets.
|
void |
StandardGeneratorContext.commitArtifactsFromCache(TreeLogger logger)
Commits all available cached Artifacts to the context.
|
GeneratedResource |
StandardGeneratorContext.commitResource(TreeLogger logger,
OutputStream os) |
static List<CompilationUnit> |
JdtCompiler.compile(TreeLogger logger,
CompilerContext compilerContext,
Collection<CompilationUnitBuilder> builders)
Compiles the given set of units.
|
boolean |
CompilationUnit.constructAnonymousClassMappings(TreeLogger logger)
Deprecated.
|
CompilationState |
CompilationStateBuilder.doBuildFrom(TreeLogger logger,
CompilerContext compilerContext,
Set<Resource> resources) |
CompilationState |
CompilationStateBuilder.doBuildFrom(TreeLogger logger,
CompilerContext compilerContext,
Set<Resource> resources,
JdtCompiler.AdditionalTypeProviderDelegate compilerDelegate)
Build a new compilation state from a source oracle.
|
void |
JdtCompiler.doCompile(TreeLogger logger,
Collection<CompilationUnitBuilder> builders)
Compiles source using the JDT.
|
ArtifactSet |
StandardGeneratorContext.finish(TreeLogger logger)
Call this whenever generators are known to not be running to clear out
uncommitted compilation units and to force committed compilation units to
be parsed and added to the type oracle.
|
static UnitCache |
UnitCacheSingleton.get(TreeLogger logger,
File cacheDir)
If the cache is enabled, instantiates the cache and begins loading units
into memory in a background thread.
|
static UnableToCompleteException |
CompilationProblemReporter.logAndTranslateException(TreeLogger logger,
Throwable e)
Used as a convenience to catch all exceptions thrown by the compiler.
|
static int |
CompilationProblemReporter.logErrorTrace(TreeLogger logger,
TreeLogger.Type logLevel,
CompilerContext compilerContext,
List<CompilationUnit> units,
boolean hint)
Provides meaningful error messages and hints for types that failed to compile or are otherwise
missing.
|
static void |
CompilationProblemReporter.logErrorTrace(TreeLogger logger,
TreeLogger.Type logLevel,
CompilerContext compilerContext,
String typeSourceName,
boolean hint)
Provides a meaning error message and hints for a type that failed to compile or is otherwise
missing.
|
static int |
CompilationProblemReporter.logWarnings(TreeLogger logger,
TreeLogger.Type logLevelForWarnings,
List<CompilationUnit> units) |
static boolean |
CompilationProblemReporter.reportErrors(TreeLogger logger,
CompilationUnit unit,
boolean suppressErrors)
Logs errors to the console.
|
boolean |
Resolver.resolveAnnotation(TreeLogger logger,
CollectAnnotationData annotVisitor,
Map<Class<? extends Annotation>,Annotation> declaredAnnotations) |
boolean |
Resolver.resolveAnnotations(TreeLogger logger,
List<CollectAnnotationData> annotations,
Map<Class<? extends Annotation>,Annotation> declaredAnnotations) |
boolean |
Resolver.resolveClass(TreeLogger logger,
JRealClassType type) |
static void |
CompilationUnitInvalidator.retainValidUnits(TreeLogger logger,
Collection<CompilationUnit> units,
Map<String,CompiledClass> validClasses,
CompilationErrorsIndex compilationErrorsIndex)
Mutates
units by retaining only valid units. |
String |
StandardGeneratorContext.runGenerator(TreeLogger logger,
Class<? extends Generator> generatorClass,
String typeName)
This method is maintained for backwards compatibility.
|
RebindResult |
StandardGeneratorContext.runGeneratorIncrementally(TreeLogger logger,
Class<? extends Generator> generatorClass,
String typeName)
Runs a generator incrementally, with support for managing the returned
RebindResult object, which can contain cached results. |
PrintWriter |
StandardGeneratorContext.tryCreate(TreeLogger logger,
String packageName,
String simpleTypeName) |
OutputStream |
StandardGeneratorContext.tryCreateResource(TreeLogger logger,
String partialPath) |
Constructor and Description |
---|
ResolveClassSignature(Resolver resolver,
TreeLogger logger,
JRealClassType type,
TypeParameterLookup lookup) |
ResolveMethodSignature(Resolver resolver,
TreeLogger logger,
JAbstractMethod method,
TypeParameterLookup typeParamLookup,
boolean hasReturnType,
CollectMethodData methodData,
org.objectweb.asm.Type[] argTypes,
String[] argNames,
boolean argNamesAreReal,
MethodArgNamesLookup allMethodArgs)
Resolve a method signature.
|
ResolveTypeSignature(Resolver resolver,
TreeLogger logger,
JType[] returnTypeRef,
TypeParameterLookup lookup,
JClassType enclosingClass)
Resolve a parameterized type.
|
ResolveTypeSignature(Resolver resovler,
TreeLogger logger,
JType[] returnTypeRef,
TypeParameterLookup lookup,
JClassType enclosingClass,
char wildcardMatch) |
Modifier and Type | Method and Description |
---|---|
void |
GeneratorContextBuilder.setTreeLogger(TreeLogger treeLogger)
Sets a custom logger on for this generator context.
|
Modifier and Type | Method and Description |
---|---|
String[] |
RebindPermutationOracle.getAllPossibleRebindAnswers(TreeLogger logger,
String sourceTypeName)
Finds the types that may be returned for a GWT.create() call, ordered by
permutation id.
|
String |
RebindOracle.rebind(TreeLogger logger,
String sourceTypeName)
Determines which type should be substituted for the requested type.
|
Modifier and Type | Field and Description |
---|---|
protected TreeLogger |
JavaToJavaScriptCompiler.logger |
Modifier and Type | Method and Description |
---|---|
PermutationResult |
UnifiedAst.compilePermutation(TreeLogger logger,
CompilerContext compilerContext,
Permutation permutation)
Compiles a particular permutation.
|
static JProgram |
AstConstructor.construct(TreeLogger logger,
CompilationState state,
PrecompileTaskOptions options,
ConfigProps config)
Construct an simple AST representing an entire
CompilationState . |
static void |
EnumNameObfuscator.exec(JProgram jprogram,
TreeLogger logger,
List<String> blacklistedEnums,
boolean closureMode) |
UnifiedAst |
JavaScriptCompiler.precompile(TreeLogger logger,
CompilerContext compilerContext,
RebindPermutationOracle rpo,
String[] declEntryPts,
String[] additionalRootTypes,
boolean singlePermutation,
PrecompilationMetricsArtifact precompilationMetrics) |
UnifiedAst |
AbstractCompiler.precompile(TreeLogger logger,
CompilerContext compilerContext,
RebindPermutationOracle rpo,
String[] declEntryPts,
String[] additionalRootTypes,
boolean singlePermutation,
PrecompilationMetricsArtifact precompilationMetrics)
Performs a precompilation, returning an object that can then be used to
compile individual permutations..
|
Constructor and Description |
---|
JavaToJavaScriptCompiler(TreeLogger logger,
CompilerContext compilerContext) |
LibraryJavaToJavaScriptCompiler(TreeLogger logger,
CompilerContext compilerContext)
Constructs a JavaToJavaScriptCompiler with customizations for compiling independent libraries.
|
MonolithicJavaToJavaScriptCompiler(TreeLogger logger,
CompilerContext compilerContext)
Constructs a JavaToJavaScriptCompiler with customizations for compiling independent libraries.
|
Modifier and Type | Method and Description |
---|---|
TreeLogger |
EnumOrdinalizer.Tracker.logResultsSummary(TreeLogger logger,
TreeLogger.Type logType) |
Modifier and Type | Method and Description |
---|---|
static void |
JsniRestrictionChecker.exec(TreeLogger logger,
JProgram jprogram) |
static void |
TypeRefDepsChecker.exec(TreeLogger logger,
JProgram program,
DepsInfoProvider depsInfoProvider,
boolean warnMissingDeps,
File missingDepsFile) |
static Pair<JavaToJavaScriptMap,Set<JsNode>> |
GenerateJavaScriptAST.exec(TreeLogger logger,
JProgram program,
JsProgram jsProgram,
CompilerContext compilerContext,
ResolveRuntimeTypeReferences.TypeMapper<?> typeMapper,
Map<StandardSymbolData,JsName> symbolTable,
PermProps props)
This is the main entry point for the translation from Java to JavaScript.
|
void |
EnumOrdinalizer.Tracker.logEnumsNotOrdinalized(TreeLogger logger,
TreeLogger.Type logType) |
void |
EnumOrdinalizer.Tracker.logEnumsOrdinalized(TreeLogger logger,
TreeLogger.Type logType) |
void |
EnumOrdinalizer.Tracker.logEnumsOrdinalizedPerPass(TreeLogger logger,
TreeLogger.Type logType) |
void |
EnumOrdinalizer.Tracker.logEnumsVisitedPerPass(TreeLogger logger,
TreeLogger.Type logType) |
void |
EnumOrdinalizer.Tracker.logResults(TreeLogger logger,
TreeLogger.Type logType) |
void |
EnumOrdinalizer.Tracker.logResultsDetailed(TreeLogger logger,
TreeLogger.Type logType) |
TreeLogger |
EnumOrdinalizer.Tracker.logResultsSummary(TreeLogger logger,
TreeLogger.Type logType) |
Constructor and Description |
---|
JsniRestrictionChecker(TreeLogger logger,
JProgram jprogram) |
JsTypeLinker(TreeLogger logger,
JsAbstractTextTransformer textTransformer,
List<NamedRange> typeRanges,
NamedRange programTypeRange,
MinimalRebuildCache minimalRebuildCache,
JTypeOracle typeOracle) |
TypeRefDepsChecker(TreeLogger logger,
JProgram program,
DepsInfoProvider depsInfoProvider,
boolean warnMissingDeps,
File missingDepsFile) |
UnifyAst(TreeLogger logger,
CompilerContext compilerContext,
JProgram program,
JsProgram jsProgram,
RebindPermutationOracle rpo) |
Modifier and Type | Method and Description |
---|---|
static void |
ReplaceRunAsyncs.exec(TreeLogger logger,
JProgram program) |
static void |
CodeSplitter.exec(TreeLogger logger,
JProgram jprogram,
JsProgram jsprogram,
JavaToJavaScriptMap map,
int expectedFragmentCount,
int minFragmentSize,
MultipleDependencyGraphRecorder dependencyRecorder) |
static JRunAsync |
CodeSplitters.findRunAsync(String refString,
JProgram program,
TreeLogger branch)
Find a split point as designated in the
CodeSplitters.PROP_INITIAL_SEQUENCE
configuration property. |
Collection<com.google.gwt.dev.jjs.impl.codesplitter.Fragment> |
FragmentPartitionStrategy.partitionIntoFragments(TreeLogger logger,
ControlFlowAnalyzer initiallyLive,
Collection<Collection<JRunAsync>> groupedNonInitialRunAsyncs) |
static void |
CodeSplitters.pickInitialLoadSequence(TreeLogger logger,
JProgram program,
ConfigProps config)
Choose an initial load sequence of split points for the specified program.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
JsCoerceIntShift.exec(JsProgram program,
TreeLogger logger,
PropertyOracle[] propertyOracles)
If this permutation may be executed on WebKit, rewrite a >> b as ~~a >> b.
|
Modifier and Type | Method and Description |
---|---|
static ClassPathEntry |
ResourceOracleImpl.createEntryForUrl(TreeLogger logger,
URL url) |
List<Map<AbstractResource,ResourceResolution>> |
DirectoryClassPathEntry.findApplicableResources(TreeLogger logger,
List<PathPrefixSet> pathPrefixSets) |
List<Map<AbstractResource,ResourceResolution>> |
ClassPathEntry.findApplicableResources(TreeLogger logger,
List<PathPrefixSet> pathPrefixSets)
Finds applicable resources for a list of pathPrefixSets, returning a
distinct answer for each set.
|
Map<AbstractResource,ResourceResolution> |
ZipFileClassPathEntry.findApplicableResources(TreeLogger logger,
PathPrefixSet pathPrefixSet)
Indexes the zip file on-demand, and only once over the life of the process.
|
Map<AbstractResource,ResourceResolution> |
DirectoryClassPathEntry.findApplicableResources(TreeLogger logger,
PathPrefixSet pathPrefixSet) |
abstract Map<AbstractResource,ResourceResolution> |
ClassPathEntry.findApplicableResources(TreeLogger logger,
PathPrefixSet pathPrefixSet)
Finds every resource at abstract path P within this classpath such that P
begins with a prefix X from the path prefix set and P is allowed by the
filter associated with X.
|
static void |
ResourceOracleImpl.preload(TreeLogger logger)
Preinitializes the classpath from the thread default
ClassLoader . |
static void |
ResourceOracleImpl.preload(TreeLogger logger,
ClassLoader classLoader)
Preinitializes the classpath for a given
ClassLoader . |
static void |
ResourceOracleImpl.preload(TreeLogger logger,
ResourceLoader resources)
Preinitializes the classpath for a given
ResourceLoader . |
void |
ResourceOracleImpl.printOverlappingModuleIncludeWarnings(TreeLogger logger)
Print overlapping include warnings that accumulated during resource
scanning.
|
void |
ResourceOracleImpl.scanResources(TreeLogger logger)
Scans the associated paths to recompute the available resources.
|
Constructor and Description |
---|
ResourceOracleImpl(TreeLogger logger)
Constructs a
ResourceOracleImpl from the thread's default
ClassLoader . |
ResourceOracleImpl(TreeLogger logger,
ClassLoader classLoader)
Constructs a
ResourceOracleImpl from a ClassLoader . |
ResourceOracleImpl(TreeLogger logger,
ResourceLoader resources) |
Modifier and Type | Method and Description |
---|---|
protected static TreeLogger |
ModuleSpace.getLogger() |
TreeLogger |
ShellMainWindow.getLogger() |
TreeLogger |
ShellModuleSpaceHost.getLogger() |
TreeLogger |
ModuleSpaceHost.getLogger() |
abstract TreeLogger |
BrowserChannelServer.SessionHandlerServer.loadModule(BrowserChannelServer channel,
String moduleName,
String userAgent,
String url,
String tabKey,
String sessionKey,
byte[] userAgentIcon)
Load a new instance of a module.
|
TreeLogger |
OophmSessionHandler.loadModule(BrowserChannelServer channel,
String moduleName,
String userAgent,
String url,
String tabKey,
String sessionKey,
byte[] userAgentIcon) |
Modifier and Type | Method and Description |
---|---|
void |
ArtifactAcceptor.accept(TreeLogger logger,
ArtifactSet newlyGeneratedArtifacts)
Called whenever new artifacts are generated.
|
static FutureTask<CheckForUpdates.UpdateResult> |
CheckForUpdates.checkForUpdatesInBackgroundThread(TreeLogger logger,
long minCheckMillis) |
void |
ModuleSpaceOOPHM.createNativeMethods(TreeLogger logger,
List<JsniMethod> jsniMethods,
DispatchIdOracle dispatchIdOracle) |
void |
ShellJavaScriptHost.createNativeMethods(TreeLogger logger,
List<JsniMethod> jsniMethods,
DispatchIdOracle dispatchIdOracle)
Define one or more JSNI methods.
|
protected abstract void |
ModuleSpace.createStaticDispatcher(TreeLogger logger)
Create the __defineStatic method.
|
protected void |
ModuleSpaceOOPHM.createStaticDispatcher(TreeLogger logger) |
static CheckForUpdates |
CheckForUpdates.createUpdateChecker(TreeLogger logger) |
static CheckForUpdates |
CheckForUpdates.createUpdateChecker(TreeLogger logger,
String entryPoint) |
protected byte[] |
CheckForUpdates.doHttpGet(TreeLogger branch,
String userAgent,
String url)
Default implementation just uses the platform-independent method.
|
SelectionProperty |
ModuleSpacePropertyOracle.getSelectionProperty(TreeLogger logger,
String propertyName) |
protected byte[] |
CheckForUpdates.httpGetNonNative(TreeLogger branch,
String userAgent,
String url)
This default implementation uses regular Java HTTP, which doesn't deal with
proxies automagically.
|
static void |
CheckForUpdates.logUpdateAvailable(TreeLogger logger,
CheckForUpdates.UpdateResult result) |
static void |
CheckForUpdates.logUpdateAvailable(TreeLogger logger,
FutureTask<CheckForUpdates.UpdateResult> updater) |
static void |
BrowserWidgetHostChecker.notifyBlacklistedHost(String blacklistRuleFound,
String url,
TreeLogger header,
TreeLogger.Type msgType)
This method formats a message, and logs it to the treelogger, stating that
the url was blocked.
|
static void |
BrowserWidgetHostChecker.notifyUntrustedHost(String url,
TreeLogger header,
TreeLogger.Type msgType)
This method formats a message, and logs it to the treelogger, stating that
the url was not trusted.
|
void |
ModuleSpace.onLoad(TreeLogger logger)
Runs the module's user startup code.
|
String |
ShellModuleSpaceHost.rebind(TreeLogger logger,
String sourceTypeName) |
String |
StandardRebindOracle.rebind(TreeLogger logger,
String typeName) |
String |
StandardRebindOracle.rebind(TreeLogger logger,
String typeName,
ArtifactAcceptor artifactAcceptor) |
static boolean |
HostedHtmlVersion.validHostedHtmlVersion(TreeLogger logger,
String version)
Validate that the supplied hosted.html version matches.
|
void |
BrowserListener.waitUntilReady(TreeLogger logger) |
void |
CodeServerListener.waitUntilReady(TreeLogger logger)
Blocks until the code server ready to handle requests.
|
void |
SuperDevListener.waitUntilReady(TreeLogger logger) |
Constructor and Description |
---|
BrowserChannelServer(TreeLogger initialLogger,
Socket socket,
BrowserChannelServer.SessionHandlerServer handler,
boolean ignoreRemoteDeath)
Create a code server for the supplied socket.
|
BrowserListener(TreeLogger treeLogger,
DevMode.HostedModeOptions options,
BrowserChannelServer.SessionHandlerServer handler)
Listens for new connections from browsers.
|
CheckForUpdates(TreeLogger logger,
String entryPoint)
Create an update checker which will poll a server URL and log a message
about an update if available.
|
CompilingClassLoader(TreeLogger logger,
CompilationState compilationState,
ShellJavaScriptHost javaScriptHost) |
HostedModePluginObject(com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine jsEngine,
TreeLogger logger)
Creates a HostedModePluginObject with the passed-in JavaScriptEngine.
|
ModuleSpace(TreeLogger logger,
ModuleSpaceHost host,
String moduleName) |
OophmSessionHandler(TreeLogger topLogger,
BrowserWidgetHost host)
Listens for new connections from browsers.
|
ShellModuleSpaceHost(TreeLogger logger,
CompilationState compilationState,
ModuleDef module,
File genDir,
ArtifactAcceptor artifactAcceptor,
RebindCache rebindCache) |
SuperDevListener(TreeLogger treeLogger,
DevMode.HostedModeOptions options)
Listens for new connections from browsers.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
CheckForUpdatesIE6.doHttpGet(TreeLogger branch,
String userAgent,
String url) |
Constructor and Description |
---|
CheckForUpdatesIE6(TreeLogger logger,
String entryPoint) |
Modifier and Type | Method and Description |
---|---|
protected JettyLauncher.JettyServletContainer |
JettyLauncher.createServletContainer(TreeLogger logger,
File appRootDir,
org.eclipse.jetty.server.Server server,
org.eclipse.jetty.webapp.WebAppContext wac,
int localPort) |
protected org.eclipse.jetty.webapp.WebAppContext |
JettyLauncher.createWebAppContext(TreeLogger logger,
File appRootDir) |
protected org.eclipse.jetty.server.AbstractConnector |
JettyLauncher.getConnector(TreeLogger logger) |
boolean |
JettyLauncher.processArguments(TreeLogger logger,
String arguments) |
ServletContainer |
JettyLauncher.start(TreeLogger logger,
int port,
File appRootDir) |
Constructor and Description |
---|
JettyRequestLogger(TreeLogger logger,
TreeLogger.Type normalLogLevel) |
JettyServletContainer(TreeLogger logger,
org.eclipse.jetty.server.Server server,
org.eclipse.jetty.webapp.WebAppContext wac,
int actualPort,
File appRootDir) |
JettyTreeLogger(TreeLogger logger) |
Modifier and Type | Class and Description |
---|---|
class |
ServletContextTreeLogger
Tree logger that logs servlet context information.
|
class |
SwingTreeLogger
Tree logger built on an Swing tree item.
|
Modifier and Type | Method and Description |
---|---|
TreeLogger |
SwingLoggerPanel.getLogger() |
Modifier and Type | Class and Description |
---|---|
class |
ViewerServiceTreeLogger
A tree logger that creates log entries using a ViewerService.
|
Modifier and Type | Method and Description |
---|---|
TreeLogger |
RemoteUI.getWebServerLogger(String serverName,
byte[] serverIcon) |
Constructor and Description |
---|
ViewerServiceClient(MessageTransport processor,
TreeLogger unexpectedErrorLogger)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected TreeLogger |
DevModeUI.getConsoleLogger() |
TreeLogger |
DevModeUI.getTopLogger()
Create a top-level logger for messages which are not associated with the
web server or any module.
|
abstract TreeLogger |
DevModeUI.getWebServerLogger(String serverName,
byte[] serverIcon)
Create the web server portion of the UI if not already created, and
return its TreeLogger instance.
|
Modifier and Type | Method and Description |
---|---|
void |
RestartServerCallback.onRestartServer(TreeLogger logger)
The user has requested the web server should be restarted.
|
void |
DevModeUI.setWebServerSecure(TreeLogger serverLogger)
Show in the UI that the web server, identified by the logger returned from
DevModeUI.getWebServerLogger(String, byte[]) , is operating in a secure
fashion. |
Modifier and Type | Method and Description |
---|---|
static boolean |
Util.copy(TreeLogger logger,
File in,
File out) |
static void |
Util.copy(TreeLogger logger,
InputStream is,
File out)
Copies an input stream out to a file.
|
static void |
Util.copy(TreeLogger logger,
InputStream is,
OutputStream os)
Copies an input stream out to an output stream.
|
static boolean |
Util.copy(TreeLogger logger,
URL in,
File out) |
static Reader |
Util.createReader(TreeLogger logger,
URL url) |
T |
PersistenceBackedObject.newInstance(TreeLogger logger)
Constructs and returns a new instance of the object stored at the path.
|
T |
ZipEntryBackedObject.newInstance(TreeLogger logger) |
T |
FileBackedObject.newInstance(TreeLogger logger) |
T |
MemoryBackedObject.newInstance(TreeLogger logger) |
void |
PersistenceBackedObject.set(TreeLogger logger,
T object)
Serializes the provided object to the intended path.
|
void |
ZipEntryBackedObject.set(TreeLogger logger,
T object) |
void |
FileBackedObject.set(TreeLogger logger,
T object) |
void |
MemoryBackedObject.set(TreeLogger logger,
T object) |
static void |
Util.writeBytesToFile(TreeLogger logger,
File where,
byte[] what) |
static void |
Util.writeBytesToFile(TreeLogger logger,
File where,
byte[][] what)
Gathering write.
|
static void |
Util.writeCharsAsFile(TreeLogger logger,
File file,
char[] chars) |
static void |
Util.writeObjectAsFile(TreeLogger logger,
File file,
Object... objects)
Serializes an object and writes it to a file.
|
static void |
Util.writeStringAsFile(TreeLogger logger,
File file,
String string) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractTreeLogger
Abstract base class for TreeLoggers.
|
class |
CompositeTreeLogger
Forks logging over two child loggers.
|
class |
PrintWriterTreeLogger
Tree logger that logs to a print writer.
|
Modifier and Type | Method and Description |
---|---|
TreeLogger |
CompositeTreeLogger.branch(TreeLogger.Type type,
String msg,
Throwable caught,
TreeLogger.HelpInfo helpInfo) |
TreeLogger |
AbstractTreeLogger.branch(TreeLogger.Type type,
String msg,
Throwable caught,
TreeLogger.HelpInfo helpInfo)
Implements branching behavior that supports lazy logging for low-priority
branched loggers.
|
Constructor and Description |
---|
CompositeTreeLogger(TreeLogger... loggers) |
Modifier and Type | Method and Description |
---|---|
TreeLogger |
Message2ClassClass.branch(TreeLogger logger,
Class<?> c1,
Class<?> c2,
Throwable caught) |
TreeLogger |
Message2FileString.branch(TreeLogger logger,
File f,
String s,
Throwable caught) |
TreeLogger |
Message1File.branch(TreeLogger logger,
File f,
Throwable caught) |
TreeLogger |
Message3IntMethodString.branch(TreeLogger logger,
int x,
Method m,
String s,
Throwable caught) |
TreeLogger |
Message3IntStringClass.branch(TreeLogger logger,
int x,
String s,
Class<?> c,
Throwable caught) |
TreeLogger |
Message4IntStringStringString.branch(TreeLogger logger,
int x,
String s1,
String s2,
String s3,
Throwable caught) |
TreeLogger |
Message3IntStringString.branch(TreeLogger logger,
int x,
String s1,
String s2,
Throwable caught) |
TreeLogger |
Message2IntString.branch(TreeLogger logger,
int x,
String s,
Throwable caught) |
TreeLogger |
Message2LongString.branch(TreeLogger logger,
long x,
String s,
Throwable caught) |
TreeLogger |
Message1Long.branch(TreeLogger logger,
long x,
Throwable caught) |
protected TreeLogger |
Message.branch(TreeLogger logger,
Object[] args,
Object[] fmts,
Throwable caught) |
protected TreeLogger |
Message.branch(TreeLogger logger,
Object arg,
Formatter fmt,
Throwable caught) |
protected TreeLogger |
Message.branch(TreeLogger logger,
Object arg1,
Object arg2,
Formatter fmt1,
Formatter fmt2,
Throwable caught) |
protected TreeLogger |
Message.branch(TreeLogger logger,
Object arg1,
Object arg2,
Object arg3,
Formatter fmt1,
Formatter fmt2,
Formatter fmt3,
Throwable caught) |
protected TreeLogger |
Message.branch(TreeLogger logger,
Object arg1,
Object arg2,
Object arg3,
Object arg4,
Formatter fmt1,
Formatter fmt2,
Formatter fmt3,
Formatter fmt4,
Throwable caught) |
TreeLogger |
Message1ToString.branch(TreeLogger logger,
Object o,
Throwable caught) |
TreeLogger |
Message1StringArray.branch(TreeLogger logger,
String[] sa,
Throwable caught) |
TreeLogger |
Message2StringFile.branch(TreeLogger logger,
String s,
File f,
Throwable caught) |
TreeLogger |
Message3StringIntString.branch(TreeLogger logger,
String s1,
int x,
String s2,
Throwable caught) |
TreeLogger |
Message2StringInt.branch(TreeLogger logger,
String s,
int x,
Throwable caught) |
TreeLogger |
Message2StringStringArray.branch(TreeLogger logger,
String s,
String[] sa,
Throwable caught) |
TreeLogger |
Message2StringString.branch(TreeLogger logger,
String s1,
String s2,
Throwable caught) |
TreeLogger |
Message1String.branch(TreeLogger logger,
String s,
Throwable caught) |
TreeLogger |
Message2StringURL.branch(TreeLogger logger,
String s,
URL u,
Throwable caught) |
protected TreeLogger |
Message.branch(TreeLogger logger,
Throwable caught) |
TreeLogger |
Message0.branch(TreeLogger logger,
Throwable caught) |
TreeLogger |
Message2URLInt.branch(TreeLogger logger,
URL u,
int x,
Throwable caught) |
TreeLogger |
Message2URLString.branch(TreeLogger logger,
URL u,
String s,
Throwable caught) |
TreeLogger |
Message1URL.branch(TreeLogger logger,
URL u,
Throwable caught) |
TreeLogger |
Message2URLURL.branch(TreeLogger logger,
URL u1,
URL u2,
Throwable caught) |
Modifier and Type | Method and Description |
---|---|
TreeLogger |
Message2ClassClass.branch(TreeLogger logger,
Class<?> c1,
Class<?> c2,
Throwable caught) |
TreeLogger |
Message2FileString.branch(TreeLogger logger,
File f,
String s,
Throwable caught) |
TreeLogger |
Message1File.branch(TreeLogger logger,
File f,
Throwable caught) |
TreeLogger |
Message3IntMethodString.branch(TreeLogger logger,
int x,
Method m,
String s,
Throwable caught) |
TreeLogger |
Message3IntStringClass.branch(TreeLogger logger,
int x,
String s,
Class<?> c,
Throwable caught) |
TreeLogger |
Message4IntStringStringString.branch(TreeLogger logger,
int x,
String s1,
String s2,
String s3,
Throwable caught) |
TreeLogger |
Message3IntStringString.branch(TreeLogger logger,
int x,
String s1,
String s2,
Throwable caught) |
TreeLogger |
Message2IntString.branch(TreeLogger logger,
int x,
String s,
Throwable caught) |
TreeLogger |
Message2LongString.branch(TreeLogger logger,
long x,
String s,
Throwable caught) |
TreeLogger |
Message1Long.branch(TreeLogger logger,
long x,
Throwable caught) |
protected TreeLogger |
Message.branch(TreeLogger logger,
Object[] args,
Object[] fmts,
Throwable caught) |
protected TreeLogger |
Message.branch(TreeLogger logger,
Object arg,
Formatter fmt,
Throwable caught) |
protected TreeLogger |
Message.branch(TreeLogger logger,
Object arg1,
Object arg2,
Formatter fmt1,
Formatter fmt2,
Throwable caught) |
protected TreeLogger |
Message.branch(TreeLogger logger,
Object arg1,
Object arg2,
Object arg3,
Formatter fmt1,
Formatter fmt2,
Formatter fmt3,
Throwable caught) |
protected TreeLogger |
Message.branch(TreeLogger logger,
Object arg1,
Object arg2,
Object arg3,
Object arg4,
Formatter fmt1,
Formatter fmt2,
Formatter fmt3,
Formatter fmt4,
Throwable caught) |
TreeLogger |
Message1ToString.branch(TreeLogger logger,
Object o,
Throwable caught) |
TreeLogger |
Message1StringArray.branch(TreeLogger logger,
String[] sa,
Throwable caught) |
TreeLogger |
Message2StringFile.branch(TreeLogger logger,
String s,
File f,
Throwable caught) |
TreeLogger |
Message3StringIntString.branch(TreeLogger logger,
String s1,
int x,
String s2,
Throwable caught) |
TreeLogger |
Message2StringInt.branch(TreeLogger logger,
String s,
int x,
Throwable caught) |
TreeLogger |
Message2StringStringArray.branch(TreeLogger logger,
String s,
String[] sa,
Throwable caught) |
TreeLogger |
Message2StringString.branch(TreeLogger logger,
String s1,
String s2,
Throwable caught) |
TreeLogger |
Message1String.branch(TreeLogger logger,
String s,
Throwable caught) |
TreeLogger |
Message2StringURL.branch(TreeLogger logger,
String s,
URL u,
Throwable caught) |
protected TreeLogger |
Message.branch(TreeLogger logger,
Throwable caught) |
TreeLogger |
Message0.branch(TreeLogger logger,
Throwable caught) |
TreeLogger |
Message2URLInt.branch(TreeLogger logger,
URL u,
int x,
Throwable caught) |
TreeLogger |
Message2URLString.branch(TreeLogger logger,
URL u,
String s,
Throwable caught) |
TreeLogger |
Message1URL.branch(TreeLogger logger,
URL u,
Throwable caught) |
TreeLogger |
Message2URLURL.branch(TreeLogger logger,
URL u1,
URL u2,
Throwable caught) |
void |
Message2ClassClass.log(TreeLogger logger,
Class<?> c1,
Class<?> c2,
Throwable caught) |
void |
Message2FileString.log(TreeLogger logger,
File f,
String s,
Throwable caught) |
void |
Message1File.log(TreeLogger logger,
File f,
Throwable caught) |
void |
Message3IntMethodString.log(TreeLogger logger,
int x,
Method m,
String s,
Throwable caught) |
void |
Message3IntStringClass.log(TreeLogger logger,
int x,
String s,
Class<?> c,
Throwable caught) |
void |
Message4IntStringStringString.log(TreeLogger logger,
int x,
String s1,
String s2,
String s3,
Throwable caught) |
void |
Message3IntStringString.log(TreeLogger logger,
int x,
String s1,
String s2,
Throwable caught) |
void |
Message2IntString.log(TreeLogger logger,
int x,
String s,
Throwable caught) |
void |
Message2LongString.log(TreeLogger logger,
long x,
String s,
Throwable caught) |
void |
Message1Long.log(TreeLogger logger,
long x,
Throwable caught) |
protected void |
Message.log(TreeLogger logger,
Object[] args,
Object[] fmts,
Throwable caught) |
protected void |
Message.log(TreeLogger logger,
Object arg,
Formatter fmt,
Throwable caught) |
protected void |
Message.log(TreeLogger logger,
Object arg1,
Object arg2,
Formatter fmt1,
Formatter fmt2,
Throwable caught) |
protected void |
Message.log(TreeLogger logger,
Object arg1,
Object arg2,
Object arg3,
Formatter fmt1,
Formatter fmt2,
Formatter fmt3,
Throwable caught) |
protected void |
Message.log(TreeLogger logger,
Object arg1,
Object arg2,
Object arg3,
Object arg4,
Formatter fmt1,
Formatter fmt2,
Formatter fmt3,
Formatter fmt4,
Throwable caught) |
void |
Message1ToString.log(TreeLogger logger,
Object o,
Throwable caught) |
void |
Message1StringArray.log(TreeLogger logger,
String[] sa,
Throwable caught) |
void |
Message2StringFile.log(TreeLogger logger,
String s,
File f,
Throwable caught) |
void |
Message3StringIntString.log(TreeLogger logger,
String s1,
int x,
String s2,
Throwable caught) |
void |
Message2StringInt.log(TreeLogger logger,
String s,
int x,
Throwable caught) |
void |
Message2StringStringArray.log(TreeLogger logger,
String s,
String[] sa,
Throwable caught) |
void |
Message2StringString.log(TreeLogger logger,
String s1,
String s2,
Throwable caught) |
void |
Message1String.log(TreeLogger logger,
String s,
Throwable caught) |
void |
Message2StringURL.log(TreeLogger logger,
String s,
URL u,
Throwable caught) |
protected void |
Message.log(TreeLogger logger,
Throwable caught) |
void |
Message0.log(TreeLogger logger,
Throwable caught) |
void |
Message2URLInt.log(TreeLogger logger,
URL u,
int x,
Throwable caught) |
void |
Message2URLString.log(TreeLogger logger,
URL u,
String s,
Throwable caught) |
void |
Message1URL.log(TreeLogger logger,
URL u,
Throwable caught) |
void |
Message2URLURL.log(TreeLogger logger,
URL u1,
URL u2,
Throwable caught) |
Modifier and Type | Method and Description |
---|---|
static void |
ReflectiveParser.parse(TreeLogger logger,
Schema schema,
Reader reader) |
Constructor and Description |
---|
DefaultSchema(TreeLogger logger) |
Modifier and Type | Method and Description |
---|---|
String |
LocalePropertyProviderGenerator.generate(TreeLogger logger,
SortedSet<String> possibleValues,
String fallback,
SortedSet<ConfigurationProperty> configProperties) |
protected void |
LocalePropertyProviderGenerator.generateCookieLookup(TreeLogger logger,
com.google.gwt.user.rebind.SourceWriter body,
String cookieName)
Generate JS code that looks up the locale value from a cookie.
|
protected void |
LocalePropertyProviderGenerator.generateInheritanceLookup(TreeLogger logger,
com.google.gwt.user.rebind.SourceWriter body)
Generate JS code that takes the value of the "locale" variable and finds
parent locales until the value is a supported locale or the default locale.
|
protected void |
LocalePropertyProviderGenerator.generateMetaLookup(TreeLogger logger,
com.google.gwt.user.rebind.SourceWriter body)
Generate JS code to fetch the locale from a meta property.
|
protected void |
LocalePropertyProviderGenerator.generateQueryParamLookup(TreeLogger logger,
com.google.gwt.user.rebind.SourceWriter body,
String queryParam)
Generate JS code to get the locale from a query parameter.
|
protected void |
LocalePropertyProviderGenerator.generateUserAgentLookup(TreeLogger logger,
com.google.gwt.user.rebind.SourceWriter body)
Generate JS code to fetch the locale from the user agent's compile-time
locale.
|
Modifier and Type | Method and Description |
---|---|
ArtifactSet |
PrecompressLinker.link(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts,
boolean onePermutation) |
Constructor and Description |
---|
Css2Gss(URL fileUrl,
TreeLogger treeLogger) |
Css2Gss(URL fileUrl,
TreeLogger treeLogger,
boolean lenient) |
DefCollectorVisitor(boolean lenient,
TreeLogger treeLogger) |
GssGenerationVisitor(TextOutput out,
Map<String,String> cssToGssConstantMapping,
boolean lenient,
TreeLogger treeLogger) |
UndefinedConstantVisitor(Set<String> gssContantNames,
boolean lenient,
TreeLogger treeLogger) |
Modifier and Type | Method and Description |
---|---|
static CssStylesheet |
GenerateCssAst.exec(TreeLogger logger,
URL... stylesheets)
Create a CssStylesheet from the contents of one or more URLs.
|
static boolean |
CheckStaticCssVisitor.report(TreeLogger logger,
CssStylesheet sheet)
Returns
true if the stylsheet is statically-evaluable. |
Constructor and Description |
---|
ClassRenamer(TreeLogger logger,
Map<String,Map<JMethod,String>> classReplacementsWithPrefix,
boolean strict,
Set<String> externalClasses) |
IfEvaluator(TreeLogger logger,
PropertyOracle oracle) |
RequirementsCollector(TreeLogger logger,
ClientBundleRequirements requirements) |
Spriter(TreeLogger logger,
ResourceContext context) |
SubstitutionReplacer(TreeLogger logger,
ResourceContext context,
Map<String,CssDef> substitutions) |
Modifier and Type | Method and Description |
---|---|
String |
ResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method)
Produce the right-hand-side of a Java assignment expression to provide the
singleton instance object for a particular resource.
|
abstract String |
AbstractResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
void |
ResourceGenerator.createFields(TreeLogger logger,
ResourceContext context,
ClientBundleFields fields)
The ResourceGenerator can create fields within the implementation of the
bundle type.
|
void |
AbstractResourceGenerator.createFields(TreeLogger logger,
ResourceContext context,
ClientBundleFields fields)
A no-op implementation.
|
static URL[] |
ResourceGeneratorUtil.findResources(TreeLogger logger,
ResourceContext context,
JMethod method)
Find all resources referenced by a method in a bundle.
|
static URL[] |
ResourceGeneratorUtil.findResources(TreeLogger logger,
ResourceContext context,
JMethod method,
String[] defaultSuffixes)
Find all resources referenced by a method in a bundle.
|
void |
ResourceGenerator.finish(TreeLogger logger,
ResourceContext context)
Called at the end of the resource generation phase and can be used to
perform cleanup.
|
void |
AbstractResourceGenerator.finish(TreeLogger logger,
ResourceContext context)
A no-op implementation.
|
static long |
ResourceGeneratorUtil.getLastModified(URL[] resources,
TreeLogger logger)
Returns the most recent value of the
last-modified header fields of all the Urls
in the resources array. |
void |
ResourceGenerator.init(TreeLogger logger,
ResourceContext context)
Initialize the ResourceGenerator with the generation context that will
remain valid for the duration of the resource-generation phase.
|
void |
AbstractResourceGenerator.init(TreeLogger logger,
ResourceContext context)
A no-op implementation.
|
void |
ResourceGenerator.prepare(TreeLogger logger,
ResourceContext context,
ClientBundleRequirements requirements,
JMethod method)
Called once for each method the ResourceGenerator is expected to handle.
|
void |
AbstractResourceGenerator.prepare(TreeLogger logger,
ResourceContext context,
ClientBundleRequirements requirements,
JMethod method)
A no-op implementation.
|
static URL |
ResourceGeneratorUtil.tryFindResource(TreeLogger logger,
GeneratorContext genContext,
ResourceContext resourceContext,
String resourceName)
Try to find a resource with the given resourceName.
|
Modifier and Type | Method and Description |
---|---|
protected void |
CssResourceGenerator.checkSheet(TreeLogger logger,
CssStylesheet stylesheet) |
String |
DataResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
String |
BundleResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
String |
GssResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
String |
TextResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
String |
ImageResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
String |
ExternalTextResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
String |
GwtCreateResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
String |
CssResourceGenerator.createAssignment(TreeLogger logger,
ResourceContext context,
JMethod method) |
void |
ImageResourceGenerator.createFields(TreeLogger logger,
ResourceContext context,
ClientBundleFields fields)
We use this as a signal that we have received all image methods and can now
create the bundled images.
|
void |
ExternalTextResourceGenerator.createFields(TreeLogger logger,
ResourceContext context,
ClientBundleFields fields) |
protected abstract String |
AbstractCssResourceGenerator.getCssExpression(TreeLogger logger,
ResourceContext context,
JMethod method)
Returns the java expression that contains the compiled CSS.
|
protected String |
GssResourceGenerator.getCssExpression(TreeLogger logger,
ResourceContext context,
JMethod method) |
protected String |
CssResourceGenerator.getCssExpression(TreeLogger logger,
ResourceContext context,
JMethod method) |
protected String |
CssResourceGenerator.getResourceImplAsString(TreeLogger logger,
ResourceContext context,
JMethod method,
Map<JMethod,String> actualReplacements,
JClassType cssResourceSubtype,
CssStylesheet stylesheet) |
protected URL[] |
CssResourceGenerator.getResources(TreeLogger logger,
ResourceContext context,
JMethod method) |
void |
GssResourceGenerator.init(TreeLogger logger,
ResourceContext context) |
void |
ImageResourceGenerator.init(TreeLogger logger,
ResourceContext context) |
void |
ExternalTextResourceGenerator.init(TreeLogger logger,
ResourceContext context) |
void |
CssResourceGenerator.init(TreeLogger logger,
ResourceContext context) |
protected void |
CssResourceGenerator.outputAdditionalArtifacts(TreeLogger logger,
ResourceContext context,
JMethod method,
Map<JMethod,String> actualReplacements,
JClassType cssResourceSubtype,
CssStylesheet stylesheet)
Output additional artifacts.
|
protected void |
CssResourceGenerator.outputCssMapArtifact(TreeLogger logger,
ResourceContext context,
JMethod method,
Map<JMethod,String> actualReplacements)
Builds a CSV file mapping obfuscated CSS class names to their qualified source name and
outputs it as a private build artifact.
|
void |
GssResourceGenerator.prepare(TreeLogger logger,
ResourceContext context,
ClientBundleRequirements requirements,
JMethod method) |
void |
ImageResourceGenerator.prepare(TreeLogger logger,
ResourceContext context,
ClientBundleRequirements requirements,
JMethod method)
Process each image method.
|
void |
ExternalTextResourceGenerator.prepare(TreeLogger logger,
ResourceContext context,
ClientBundleRequirements requirements,
JMethod method) |
void |
CssResourceGenerator.prepare(TreeLogger logger,
ResourceContext context,
ClientBundleRequirements requirements,
JMethod method) |
protected void |
AbstractCssResourceGenerator.writeGetText(TreeLogger logger,
ResourceContext context,
JMethod method,
com.google.gwt.user.rebind.SourceWriter sw) |
protected void |
CssResourceGenerator.writeUserMethods(TreeLogger logger,
com.google.gwt.user.rebind.SourceWriter sw,
CssStylesheet sheet,
JMethod[] methods,
Map<JMethod,String> obfuscatedClassNames)
Write all of the user-defined methods in the CssResource subtype.
|
Modifier and Type | Method and Description |
---|---|
ArtifactSet |
RpcLogLinker.link(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts,
boolean onePermutation) |
ArtifactSet |
RpcPolicyManifestLinker.link(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts,
boolean onePermutation) |
Modifier and Type | Method and Description |
---|---|
boolean |
RegexFilter.isIncluded(TreeLogger logger,
String query) |
Constructor and Description |
---|
RegexFilter(TreeLogger logger,
List<String> values) |
Copyright © 2018. All rights reserved.