public abstract class CompilationResult extends Artifact<CompilationResult>
Modifier | Constructor and Description |
---|---|
protected |
CompilationResult(Class<? extends Linker> linkerType) |
Modifier and Type | Method and Description |
---|---|
protected int |
compareToComparableArtifact(CompilationResult o)
Performs comparison with an artifact of a compatible base type.
|
protected Class<CompilationResult> |
getComparableArtifactType()
Returns the base type to use for comparisons between Artifacts.
|
abstract String[] |
getJavaScript()
Returns the JavaScript compilation.
|
abstract int |
getPermutationId()
Returns the permutation ID.
|
abstract SortedSet<SortedMap<SelectionProperty,String>> |
getPropertyMap()
Provides values for
SelectionProperty instances that are not
explicitly set during the compilation phase. |
abstract 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
getJavaScript() . |
abstract String |
getStrongName()
Return a string that uniquely identifies this compilation result.
|
abstract SymbolData[] |
getSymbolMap()
Returns a sorted array of obfuscated symbol names in the compilation to
metadata about the symbol.
|
int |
hashCode()
The class which is returned from
Artifact.getComparableArtifactType() must
declare a final implementation which returns the same hash code for objects
for which Artifact.compareToComparableArtifact(Artifact) returns 0. |
String |
toString() |
compareTo, equals, getLinker, isTransferableFromShards
public abstract String[] getJavaScript()
GWT.runAsync
. See
AsyncFragmentLoader
for details on the necessary linker support for
runAsync.public abstract int getPermutationId()
public abstract SortedSet<SortedMap<SelectionProperty,String>> getPropertyMap()
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.public abstract SoftPermutation[] getSoftPermutations()
public StatementRanges[] getStatementRanges()
getJavaScript()
. Some subclasses return null
, in
which case there is no statement range information available.public abstract String getStrongName()
public abstract SymbolData[] getSymbolMap()
public final int hashCode()
Artifact
Artifact.getComparableArtifactType()
must
declare a final implementation which returns the same hash code for objects
for which Artifact.compareToComparableArtifact(Artifact)
returns 0.hashCode
in class Artifact<CompilationResult>
public String toString()
toString
in class Artifact<CompilationResult>
protected final int compareToComparableArtifact(CompilationResult o)
Artifact
Artifact.hashCode()
.compareToComparableArtifact
in class Artifact<CompilationResult>
protected final Class<CompilationResult> getComparableArtifactType()
Artifact
getComparableArtifactType
in class Artifact<CompilationResult>
Copyright © 2018. All rights reserved.