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(java.lang.Class<? extends Linker> linkerType,
CompilationResult compilationResult) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getJavaScript()
Returns the JavaScript compilation.
|
int |
getPermutationId()
Returns the permutation ID.
|
java.util.SortedSet<java.util.SortedMap<SelectionProperty,java.lang.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(). |
java.lang.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.
|
java.lang.String |
toString() |
compareToComparableArtifact, getComparableArtifactType, hashCodecompareTo, equals, getLinker, isTransferableFromShardspublic DelegatingCompilationResult(java.lang.Class<? extends Linker> linkerType, CompilationResult compilationResult)
public java.lang.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 java.util.SortedSet<java.util.SortedMap<SelectionProperty,java.lang.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 java.lang.String getStrongName()
CompilationResultgetStrongName in class CompilationResultpublic SymbolData[] getSymbolMap()
CompilationResultgetSymbolMap in class CompilationResultpublic java.lang.String toString()
toString in class CompilationResult