Class DelegatingCompilationResult

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Artifact<?>>

    public class DelegatingCompilationResult
    extends CompilationResult
    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:
    Serialized Form
    • 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: 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 via GWT.runAsync. See AsyncFragmentLoader for details on the necessary linker support for runAsync.
        Specified by:
        getJavaScript in class CompilationResult
      • getPropertyMap

        public java.util.SortedSet<java.util.SortedMap<SelectionProperty,​java.lang.String>> getPropertyMap()
        Description copied from class: CompilationResult
        Provides values for 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.
        Specified by:
        getPropertyMap in class CompilationResult
      • getStrongName

        public java.lang.String 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 class CompilationResult
      • getSymbolMap

        public SymbolData[] 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 class CompilationResult