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
ConstructorsConstructorDescriptionSyntheticArtifact(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.longReturns the time, measured in milliseconds from the epoch, at which the Artifact was last modified.voidwriteTo(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, toStringMethods 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:EmittedArtifactProvides access to the contents of the EmittedResource.- Specified by:
getContentsin classEmittedArtifact- Throws:
UnableToCompleteException
-
getLastModified
public long getLastModified()Description copied from class:EmittedArtifactReturns 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:
getLastModifiedin classEmittedArtifact- Returns:
- the time at which the Artifact was last modified
-
writeTo
Description copied from class:EmittedArtifactProvides access to the contents of the EmittedResource.- Overrides:
writeToin classEmittedArtifact- Throws:
UnableToCompleteException
-