Package com.google.javascript.jscomp
Class UniqueIdSupplier
- java.lang.Object
-
- com.google.javascript.jscomp.UniqueIdSupplier
-
- All Implemented Interfaces:
java.io.Serializable
public final class UniqueIdSupplier extends java.lang.Object implements java.io.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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getUniqueId(CompilerInput input)
Creates and returns a unique Id across all compiler input source files.
-
-
-
Method Detail
-
getUniqueId
public java.lang.String getUniqueId(CompilerInput input)
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
-
-