Package org.pkl.core.util.yaml
Class YamlEscaper
java.lang.Object
org.pkl.core.util.AbstractCharEscaper
org.pkl.core.util.yaml.YamlEscaper
Emits escape sequences for YAML. This is only used when emitting double-quoted strings.
Note: we don't need to escape space (0x20) because we don't generate quoted multiline
strings. We also don't need to escape forward slash (0x2f) because a normal forward slash
is also valid YAML.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.pkl.core.util.AbstractCharEscaper
escape, escape
-
Constructor Details
-
YamlEscaper
public YamlEscaper()
-
-
Method Details
-
findReplacement
- Specified by:
findReplacementin classAbstractCharEscaper
-