Package com.google.gwt.core.ext.linker
Class SyntheticArtifact
java.lang.Object
com.google.gwt.core.ext.linker.Artifact<EmittedArtifact>
com.google.gwt.core.ext.linker.EmittedArtifact
com.google.gwt.core.ext.linker.SyntheticArtifact
- All Implemented Interfaces:
Serializable
,Comparable<Artifact<?>>
- Direct Known Subclasses:
SymbolMapsLinker.SourceMapArtifact
Artifacts created by
AbstractLinker
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.core.ext.linker.EmittedArtifact
EmittedArtifact.Visibility
-
Constructor Summary
ConstructorDescriptionSyntheticArtifact
(Class<? extends Linker> linkerType, String partialPath, byte[] data) SyntheticArtifact
(Class<? extends Linker> linkerType, String partialPath, byte[] data, long lastModified) -
Method Summary
Modifier and TypeMethodDescriptiongetContents
(TreeLogger logger) Provides access to the contents of the EmittedResource.long
Returns the time, measured in milliseconds from the epoch, at which the Artifact was last modified.void
writeTo
(TreeLogger logger, OutputStream out) Provides access to the contents of the EmittedResource.Methods inherited from class com.google.gwt.core.ext.linker.EmittedArtifact
compareToComparableArtifact, getComparableArtifactType, getPartialPath, getVisibility, hashCode, setVisibility, toString
Methods inherited from class com.google.gwt.core.ext.linker.Artifact
compareTo, equals, getLinker, isTransferableFromShards
-
Constructor Details
-
SyntheticArtifact
-
SyntheticArtifact
-
-
Method Details
-
getContents
Description copied from class:EmittedArtifact
Provides access to the contents of the EmittedResource.- Specified by:
getContents
in classEmittedArtifact
- Throws:
UnableToCompleteException
-
getLastModified
public long getLastModified()Description copied from class:EmittedArtifact
Returns the time, measured in milliseconds from the epoch, at which the Artifact was last modified. This will be used to set the last-modified timestamp on the files written to disk.The default implementation always returns the current time. Subclasses should override this method to provide a type-appropriate value.
- Overrides:
getLastModified
in classEmittedArtifact
- Returns:
- the time at which the Artifact was last modified
-
writeTo
Description copied from class:EmittedArtifact
Provides access to the contents of the EmittedResource.- Overrides:
writeTo
in classEmittedArtifact
- Throws:
UnableToCompleteException
-