
public class DelegatingCompilationResult extends CompilationResult
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.| Constructor and Description |
|---|
DelegatingCompilationResult(Class<? extends Linker> linkerType,
CompilationResult compilationResult) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getJavaScript()
Returns the JavaScript compilation.
|
int |
getPermutationId()
Returns the permutation ID.
|
SortedSet<SortedMap<SelectionProperty,String>> |
getPropertyMap()
Provides values for
SelectionProperty instances that are not
explicitly set during the compilation phase. |
SoftPermutation[] |
getSoftPermutations()
Returns the permutations of the collapsed deferred-binding property values
that are compiled into the CompilationResult.
|
StatementRanges[] |
getStatementRanges()
Returns the statement ranges for the JavaScript returned by
CompilationResult.getJavaScript(). |
String |
getStrongName()
Return a string that uniquely identifies this compilation result.
|
SymbolData[] |
getSymbolMap()
Returns a sorted array of obfuscated symbol names in the compilation to
metadata about the symbol.
|
String |
toString() |
compareToComparableArtifact, getComparableArtifactType, hashCodecompareTo, equals, getLinker, isTransferableFromShardspublic DelegatingCompilationResult(Class<? extends Linker> linkerType, CompilationResult compilationResult)
public String[] getJavaScript()
CompilationResultGWT.runAsync. See
AsyncFragmentLoader for details on the necessary linker support for
runAsync.getJavaScript in class CompilationResultpublic int getPermutationId()
CompilationResultgetPermutationId in class CompilationResultpublic SortedSet<SortedMap<SelectionProperty,String>> getPropertyMap()
CompilationResultSelectionProperty 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.getPropertyMap in class CompilationResultpublic SoftPermutation[] getSoftPermutations()
CompilationResultgetSoftPermutations in class CompilationResultpublic StatementRanges[] getStatementRanges()
CompilationResultCompilationResult.getJavaScript(). Some subclasses return null, in
which case there is no statement range information available.getStatementRanges in class CompilationResultpublic String getStrongName()
CompilationResultgetStrongName in class CompilationResultpublic SymbolData[] getSymbolMap()
CompilationResultgetSymbolMap in class CompilationResultpublic String toString()
toString in class CompilationResultCopyright © 2018. All rights reserved.