Package com.google.javascript.jscomp
Class UniqueIdSupplier
java.lang.Object
com.google.javascript.jscomp.UniqueIdSupplier
- All Implemented Interfaces:
Serializable
Generates unique String Ids when requested via a compiler instance.
This supplier provides Ids that are deterministic and unique across all input files given to the compiler. The generated ID format is: uniqueId = "fileHashCode$counterForThisFile"
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetUniqueId
(CompilerInput input) Creates and returns a unique Id across all compiler input source files.
-
Method Details
-
getUniqueId
Creates and returns a unique Id across all compiler input source files.- Parameters:
input
- The compiler input for which the unique Id is requested.- Returns:
- unique ID as String
-