@Transferable public class GeneratedSource extends Artifact<GeneratedSource>
GeneratorContext.tryCreate(com.google.gwt.core.ext.TreeLogger, String, String)
during the compilation process. Currently only used for resources created via magic method injection;
this artifact type is used to build a manifest file for Super Dev Mode so that it can direct
sourcemap requests to the correct file.| Constructor and Description |
|---|
GeneratedSource(java.lang.Class<? extends Linker> linkerType,
java.lang.String typeName,
java.lang.String fileName) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
compareToComparableArtifact(GeneratedSource o)
Performs comparison with an artifact of a compatible base type.
|
protected java.lang.Class<GeneratedSource> |
getComparableArtifactType()
Returns the base type to use for comparisons between Artifacts.
|
java.lang.String |
getFileName() |
java.lang.String |
getTypeName() |
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. |
public GeneratedSource(java.lang.Class<? extends Linker> linkerType, java.lang.String typeName, java.lang.String fileName)
public int hashCode()
ArtifactArtifact.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<GeneratedSource>protected int compareToComparableArtifact(GeneratedSource o)
ArtifactArtifact.hashCode().compareToComparableArtifact in class Artifact<GeneratedSource>protected java.lang.Class<GeneratedSource> getComparableArtifactType()
ArtifactgetComparableArtifactType in class Artifact<GeneratedSource>Artifact.getComparableArtifactType()public java.lang.String getFileName()
public java.lang.String getTypeName()