|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.ext.Linker
com.google.gwt.core.ext.linker.AbstractLinker
com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
com.google.gwt.core.linker.IFrameLinker
@LinkerOrder(value=PRIMARY) public class IFrameLinker
Implements the canonical GWT bootstrap sequence that loads the GWT module in a separate iframe.
Field Summary |
---|
Fields inherited from class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker |
---|
FRAGMENT_EXTENSION, FRAGMENT_SUBDIR |
Constructor Summary | |
---|---|
IFrameLinker()
|
Method Summary | |
---|---|
protected byte[] |
generatePrimaryFragment(TreeLogger logger,
LinkerContext context,
CompilationResult result,
java.lang.String[] js)
This implementation divides the code of the initial fragment into multiple script tags. |
protected java.lang.String |
getCompilationExtension(TreeLogger logger,
LinkerContext context)
|
java.lang.String |
getDescription()
Returns a human-readable String describing the Linker. |
protected java.lang.String |
getFragmentSubdir()
Returns the subdirectory name to be used by getModulPrefix when requesting a runAsync module. |
protected java.lang.String |
getModulePrefix(TreeLogger logger,
LinkerContext context,
java.lang.String strongName)
Compute the beginning of a JavaScript file that will hold the main module implementation. |
protected java.lang.String |
getModulePrefix(TreeLogger logger,
LinkerContext context,
java.lang.String strongName,
int numFragments)
Compute the beginning of a JavaScript file that will hold the main module implementation. |
protected java.lang.String |
getModuleSuffix(TreeLogger logger,
LinkerContext context)
|
protected java.lang.String |
getSelectionScriptTemplate(TreeLogger logger,
LinkerContext context)
|
ArtifactSet |
link(TreeLogger logger,
LinkerContext context,
ArtifactSet artifacts)
Invoke the Linker. |
protected java.lang.String |
modifyPrimaryJavaScript(java.lang.String js)
|
Methods inherited from class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker |
---|
doEmitCompilation, emitSelectionScript, generatePropertyProvider, generateScriptInjector, generateSelectionScript, generateStylesheetInjector, getCompilationStrongName, isRelativeURL, replaceAll |
Methods inherited from class com.google.gwt.core.ext.linker.AbstractLinker |
---|
emitBytes, emitBytes, emitInputStream, emitInputStream, emitString, emitString, emitWithStrongName, emitWithStrongName |
Methods inherited from class com.google.gwt.core.ext.Linker |
---|
relink |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IFrameLinker()
Method Detail |
---|
public java.lang.String getDescription()
Linker
getDescription
in class Linker
public ArtifactSet link(TreeLogger logger, LinkerContext context, ArtifactSet artifacts) throws UnableToCompleteException
Linker
link
in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
logger
- the TreeLogger to record tocontext
- provides access to the Linker's environmentartifacts
- an unmodifiable view of the artifacts to link
UnableToCompleteException
- if compilation violates assumptions made
by the Linker or for errors encountered by the Linkerprotected byte[] generatePrimaryFragment(TreeLogger logger, LinkerContext context, CompilationResult result, java.lang.String[] js) throws UnableToCompleteException
generatePrimaryFragment
in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
UnableToCompleteException
protected java.lang.String getCompilationExtension(TreeLogger logger, LinkerContext context)
getCompilationExtension
in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
protected java.lang.String getFragmentSubdir()
protected java.lang.String getModulePrefix(TreeLogger logger, LinkerContext context, java.lang.String strongName)
com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
getModulePrefix
in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
protected java.lang.String getModulePrefix(TreeLogger logger, LinkerContext context, java.lang.String strongName, int numFragments)
com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
SelectionScriptLinker.getModulePrefix(TreeLogger, LinkerContext, String)
.
getModulePrefix
in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
strongName
- strong name of the module being emittednumFragments
- the number of fragments for this module, including the
main fragment (fragment 0)protected java.lang.String getModuleSuffix(TreeLogger logger, LinkerContext context)
getModuleSuffix
in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
protected java.lang.String getSelectionScriptTemplate(TreeLogger logger, LinkerContext context)
getSelectionScriptTemplate
in class com.google.gwt.core.ext.linker.impl.SelectionScriptLinker
protected java.lang.String modifyPrimaryJavaScript(java.lang.String js)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |