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, hashCode
compareTo, equals, getLinker, isTransferableFromShards
public DelegatingCompilationResult(Class<? extends Linker> linkerType, CompilationResult compilationResult)
public String[] getJavaScript()
CompilationResult
GWT.runAsync
. See
AsyncFragmentLoader
for details on the necessary linker support for
runAsync.getJavaScript
in class CompilationResult
public int getPermutationId()
CompilationResult
getPermutationId
in class CompilationResult
public SortedSet<SortedMap<SelectionProperty,String>> getPropertyMap()
CompilationResult
SelectionProperty
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 CompilationResult
public SoftPermutation[] getSoftPermutations()
CompilationResult
getSoftPermutations
in class CompilationResult
public StatementRanges[] getStatementRanges()
CompilationResult
CompilationResult.getJavaScript()
. Some subclasses return null
, in
which case there is no statement range information available.getStatementRanges
in class CompilationResult
public String getStrongName()
CompilationResult
getStrongName
in class CompilationResult
public SymbolData[] getSymbolMap()
CompilationResult
getSymbolMap
in class CompilationResult
public String toString()
toString
in class CompilationResult
Copyright © 2018. All rights reserved.