Class ColorRegistry
- java.lang.Object
-
- com.google.javascript.jscomp.colors.ColorRegistry
-
public final class ColorRegistry extends java.lang.ObjectStores "out of band" information about the set of Colors in use by a compilation.This includes any information that isn't specifically can't be set on a single Color object,
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classColorRegistry.BuilderBuilder
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.collect.ImmutableSet<ColorId>REQUIRED_IDS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ColorRegistry.Builderbuilder()Colorget(ColorId id)com.google.common.collect.ImmutableSet<Color>getDisambiguationSupertypes(Color x)The colors directly above `x` in the subtyping graph for the purposes of property (dis)ambiguation.com.google.common.collect.ImmutableSetMultimap<ColorId,java.lang.String>getMismatchLocationsForDebugging()An index (mismatch sourceref string) => (involved color ids).
-
-
-
Field Detail
-
REQUIRED_IDS
public static final com.google.common.collect.ImmutableSet<ColorId> REQUIRED_IDS
-
-
Method Detail
-
getDisambiguationSupertypes
public final com.google.common.collect.ImmutableSet<Color> getDisambiguationSupertypes(Color x)
The colors directly above `x` in the subtyping graph for the purposes of property (dis)ambiguation.
-
getMismatchLocationsForDebugging
public final com.google.common.collect.ImmutableSetMultimap<ColorId,java.lang.String> getMismatchLocationsForDebugging()
An index (mismatch sourceref string) => (involved color ids).This index is only intended for debugging. It may be empty or incomplete during production compilations.
-
builder
public static ColorRegistry.Builder builder()
-
-