Class RecordingSubstitutionMap
java.lang.Object
com.google.common.css.compiler.passes.RecordingSubstitutionMap
- All Implemented Interfaces:
SubstitutionMap,SubstitutionMap.Initializable
A decorator for a
SubstitutionMap that records which values it maps.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA-la-carte builder.Nested classes/interfaces inherited from interface com.google.common.css.SubstitutionMap
SubstitutionMap.Initializable -
Method Summary
-
Method Details
-
get
Gets the string that should be substituted forkey. The same value must be consistently returned for any particularkey, and the returned value must not be returned for any otherkeyvalue.- Specified by:
getin interfaceSubstitutionMap- Parameters:
key- the text to be replaced (never null)- Returns:
- the value to substitute for
key - Throws:
NullPointerException- if key is null.
-
getMappings
- Returns:
- The recorded mappings in the order they were created. This output may be used with
OutputRenamingMapFormat.writeRenamingMap(java.util.Map<java.lang.String, java.lang.String>, java.io.Writer)
-
initializeWithMappings
- Specified by:
initializeWithMappingsin interfaceSubstitutionMap.Initializable
-