@Shardable public final class HostedModeLinker extends SelectionScriptLinker
COMPUTE_SCRIPT_BASE_JS, FRAGMENT_EXTENSION, FRAGMENT_SUBDIR, permutationsUtil, PROCESS_METAS_JS, USE_SOURCE_MAPS_PROPERTY
Constructor and Description |
---|
HostedModeLinker() |
Modifier and Type | Method and Description |
---|---|
String |
generateSelectionScript(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts)
TODO: When this class is removed, move SelectionScriptLinker to gwt-user.
|
protected String |
getCompilationExtension(TreeLogger logger,
LinkerContext context) |
String |
getDescription()
Returns a human-readable String describing the Linker.
|
static String |
getHostedHtml() |
protected String |
getModulePrefix(TreeLogger logger,
LinkerContext context,
String strongName)
Compute the beginning of a JavaScript file that will hold the main module implementation.
|
protected String |
getModuleSuffix(TreeLogger logger,
LinkerContext context)
Returns the suffix for the initial JavaScript fragment (deprecated version).
|
protected String |
getSelectionScriptTemplate(TreeLogger logger,
LinkerContext context) |
ArtifactSet |
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.
|
charsPerChunk, doEmitCompilation, emitSelectionInformation, emitSelectionScript, fillSelectionScriptTemplate, generateDeferredFragment, generatePrimaryFragment, generatePrimaryFragmentString, generateSelectionScript, getDeferredFragmentPrefix, getDeferredFragmentSuffix, getDeferredFragmentSuffix2, getFragmentSubdir, getHostedFilename, getModulePrefix, getModuleSuffix2, getScriptChunkSeparator, link, maybeAddHostedModeFile, maybeOutputPropertyMap, readFileToStringBuffer, replaceAll, splitPrimaryJavaScript, supportsDevModeInJunit, wrapDeferredFragment, wrapPrimaryFragment
emitBytes, emitBytes, emitInputStream, emitInputStream, emitString, emitString, emitWithStrongName, emitWithStrongName
isShardable, relink
public static String getHostedHtml() throws IOException
IOException
public String generateSelectionScript(TreeLogger logger, LinkerContext context, ArtifactSet artifacts) throws UnableToCompleteException
generateSelectionScript
in class SelectionScriptLinker
UnableToCompleteException
public String getDescription()
Linker
getDescription
in class Linker
public ArtifactSet link(TreeLogger logger, LinkerContext context, ArtifactSet artifacts) throws UnableToCompleteException
SelectionScriptLinker
link
in class SelectionScriptLinker
logger
- the TreeLogger to record tocontext
- provides access to the Linker's environmentartifacts
- an unmodifiable view of the artifacts to linkUnableToCompleteException
- if compilation violates assumptions made
by the Linker or for errors encountered by the Linkerprotected String getCompilationExtension(TreeLogger logger, LinkerContext context) throws UnableToCompleteException
getCompilationExtension
in class SelectionScriptLinker
UnableToCompleteException
protected String getModulePrefix(TreeLogger logger, LinkerContext context, String strongName) throws UnableToCompleteException
SelectionScriptLinker
getModulePrefix
in class SelectionScriptLinker
UnableToCompleteException
protected String getModuleSuffix(TreeLogger logger, LinkerContext context) throws UnableToCompleteException
SelectionScriptLinker
SelectionScriptLinker.getModuleSuffix2(com.google.gwt.core.ext.TreeLogger, com.google.gwt.core.ext.LinkerContext, java.lang.String)
to be called instead.
Subclasses should switch to extending getModuleSuffix2.getModuleSuffix
in class SelectionScriptLinker
UnableToCompleteException
protected String getSelectionScriptTemplate(TreeLogger logger, LinkerContext context)
getSelectionScriptTemplate
in class SelectionScriptLinker
Copyright © 2018. All rights reserved.