Package com.google.gwt.core.ext.linker
Class DelegatingCompilationResult
java.lang.Object
com.google.gwt.core.ext.linker.Artifact<CompilationResult>
com.google.gwt.core.ext.linker.CompilationResult
com.google.gwt.core.ext.linker.DelegatingCompilationResult
- All Implemented Interfaces:
Serializable
,Comparable<Artifact<?>>
A delegate for
CompilationResult
intended for third party linkers
that want to modify a compilation result. Extending this class should insulate
against future changes to the CompilationResult type.- See Also:
-
Constructor Summary
ConstructorDescriptionDelegatingCompilationResult
(Class<? extends Linker> linkerType, CompilationResult compilationResult) -
Method Summary
Modifier and TypeMethodDescriptionString[]
Returns the JavaScript compilation.int
Returns the permutation ID.Provides values forSelectionProperty
instances that are not explicitly set during the compilation phase.Returns the permutations of the collapsed deferred-binding property values that are compiled into the CompilationResult.Returns the statement ranges for the JavaScript returned byCompilationResult.getJavaScript()
.Return a string that uniquely identifies this compilation result.Returns a sorted array of obfuscated symbol names in the compilation to metadata about the symbol.toString()
Methods inherited from class com.google.gwt.core.ext.linker.CompilationResult
compareToComparableArtifact, getComparableArtifactType, hashCode
Methods inherited from class com.google.gwt.core.ext.linker.Artifact
compareTo, equals, getLinker, isTransferableFromShards
-
Constructor Details
-
DelegatingCompilationResult
public DelegatingCompilationResult(Class<? extends Linker> linkerType, CompilationResult compilationResult)
-
-
Method Details
-
getJavaScript
Description copied from class:CompilationResult
Returns the JavaScript compilation. The first element of the array contains the code that should be run when the application starts up. The remaining elements are loaded viaGWT.runAsync
. SeeAsyncFragmentLoader
for details on the necessary linker support for runAsync.- Specified by:
getJavaScript
in classCompilationResult
-
getPermutationId
public int getPermutationId()Description copied from class:CompilationResult
Returns the permutation ID.- Specified by:
getPermutationId
in classCompilationResult
-
getPropertyMap
Description copied from class:CompilationResult
Provides values forSelectionProperty
instances that are not explicitly set during the compilation phase. This method will return multiple mappings, one for each permutation that resulted in the compilation.- Specified by:
getPropertyMap
in classCompilationResult
-
getSoftPermutations
Description copied from class:CompilationResult
Returns the permutations of the collapsed deferred-binding property values that are compiled into the CompilationResult.- Specified by:
getSoftPermutations
in classCompilationResult
-
getStatementRanges
Description copied from class:CompilationResult
Returns the statement ranges for the JavaScript returned byCompilationResult.getJavaScript()
. Some subclasses returnnull
, in which case there is no statement range information available.- Overrides:
getStatementRanges
in classCompilationResult
-
getStrongName
Description copied from class:CompilationResult
Return a string that uniquely identifies this compilation result. Typically this is a cryptographic hash of the compiled data.- Specified by:
getStrongName
in classCompilationResult
-
getSymbolMap
Description copied from class:CompilationResult
Returns a sorted array of obfuscated symbol names in the compilation to metadata about the symbol. This data can allow for on-the-fly deobfuscation of stack trace information or to allow server components to have in-depth knowledge of the runtime structure of compiled objects.- Specified by:
getSymbolMap
in classCompilationResult
-
toString
- Overrides:
toString
in classCompilationResult
-