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:
java.io.Serializable,java.lang.Comparable<Artifact<?>>
public class DelegatingCompilationResult extends CompilationResult
A delegate forCompilationResultintended 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DelegatingCompilationResult(java.lang.Class<? extends Linker> linkerType, CompilationResult compilationResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getJavaScript()Returns the JavaScript compilation.intgetPermutationId()Returns the permutation ID.java.util.SortedSet<java.util.SortedMap<SelectionProperty,java.lang.String>>getPropertyMap()Provides values forSelectionPropertyinstances 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 byCompilationResult.getJavaScript().java.lang.StringgetStrongName()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.StringtoString()-
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 Detail
-
DelegatingCompilationResult
public DelegatingCompilationResult(java.lang.Class<? extends Linker> linkerType, CompilationResult compilationResult)
-
-
Method Detail
-
getJavaScript
public java.lang.String[] getJavaScript()
Description copied from class:CompilationResultReturns 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. SeeAsyncFragmentLoaderfor details on the necessary linker support for runAsync.- Specified by:
getJavaScriptin classCompilationResult
-
getPermutationId
public int getPermutationId()
Description copied from class:CompilationResultReturns the permutation ID.- Specified by:
getPermutationIdin classCompilationResult
-
getPropertyMap
public java.util.SortedSet<java.util.SortedMap<SelectionProperty,java.lang.String>> getPropertyMap()
Description copied from class:CompilationResultProvides values forSelectionPropertyinstances 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:
getPropertyMapin classCompilationResult
-
getSoftPermutations
public SoftPermutation[] getSoftPermutations()
Description copied from class:CompilationResultReturns the permutations of the collapsed deferred-binding property values that are compiled into the CompilationResult.- Specified by:
getSoftPermutationsin classCompilationResult
-
getStatementRanges
public StatementRanges[] getStatementRanges()
Description copied from class:CompilationResultReturns the statement ranges for the JavaScript returned byCompilationResult.getJavaScript(). Some subclasses returnnull, in which case there is no statement range information available.- Overrides:
getStatementRangesin classCompilationResult
-
getStrongName
public java.lang.String getStrongName()
Description copied from class:CompilationResultReturn a string that uniquely identifies this compilation result. Typically this is a cryptographic hash of the compiled data.- Specified by:
getStrongNamein classCompilationResult
-
getSymbolMap
public SymbolData[] getSymbolMap()
Description copied from class:CompilationResultReturns 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:
getSymbolMapin classCompilationResult
-
toString
public java.lang.String toString()
- Overrides:
toStringin classCompilationResult
-
-