Package com.google.gwt.core.ext.linker
Class ScriptReference
- java.lang.Object
-
- com.google.gwt.core.ext.linker.Artifact<ScriptReference>
-
- com.google.gwt.core.ext.linker.ScriptReference
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Artifact<?>>
public abstract class ScriptReference extends Artifact<ScriptReference>
An external script file referenced in the module manifest. The index is important because output order must match module declaration order.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedScriptReference(java.lang.Class<? extends Linker> linkerType, java.lang.String src, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcompareToComparableArtifact(ScriptReference o)Performs comparison with an artifact of a compatible base type.protected java.lang.Class<ScriptReference>getComparableArtifactType()Returns the base type to use for comparisons between Artifacts.java.lang.StringgetSrc()Thesrcattribute of the resource.inthashCode()The class which is returned fromArtifact.getComparableArtifactType()must declare a final implementation which returns the same hash code for objects for whichArtifact.compareToComparableArtifact(Artifact)returns 0.java.lang.StringtoString()-
Methods inherited from class com.google.gwt.core.ext.linker.Artifact
compareTo, equals, getLinker, isTransferableFromShards
-
-
-
-
Constructor Detail
-
ScriptReference
protected ScriptReference(java.lang.Class<? extends Linker> linkerType, java.lang.String src, int index)
-
-
Method Detail
-
getSrc
public final java.lang.String getSrc()
Thesrcattribute of the resource. This string is returned raw and may be a partial path or a URL.
-
hashCode
public final int hashCode()
Description copied from class:ArtifactThe class which is returned fromArtifact.getComparableArtifactType()must declare a final implementation which returns the same hash code for objects for whichArtifact.compareToComparableArtifact(Artifact)returns 0.- Specified by:
hashCodein classArtifact<ScriptReference>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classArtifact<ScriptReference>
-
compareToComparableArtifact
protected final int compareToComparableArtifact(ScriptReference o)
Description copied from class:ArtifactPerforms comparison with an artifact of a compatible base type. Objects which compare to 0 are assumed equal, and must return the sameArtifact.hashCode().- Specified by:
compareToComparableArtifactin classArtifact<ScriptReference>
-
getComparableArtifactType
protected final java.lang.Class<ScriptReference> getComparableArtifactType()
Description copied from class:ArtifactReturns the base type to use for comparisons between Artifacts. All concrete implementations of this methods must be final.- Specified by:
getComparableArtifactTypein classArtifact<ScriptReference>
-
-