Package io.github.qishr.cascara.lang.yaml.util
Class YamlAliasResolver
java.lang.Object
io.github.qishr.cascara.lang.yaml.util.YamlAliasResolver
public class YamlAliasResolver
Constructor Summary
| Constructor | Description |
|---|---|
| YamlAliasResolver() |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public YamlAliasResolver | setReporter(Reporter reporter) | |
| public YamlNode | resolve(YamlNode root) | Traverses the document to collect all anchors, then replaces all YamlAlias nodes with their dereferenced target nodes. |
| public YamlStream | resolve(YamlStream stream) | Resolves aliases across all documents in a stream, maintaining a single anchor mapping table across document boundaries if needed. |
Method Details
setReporter
public YamlAliasResolver setReporter(Reporter reporter)
resolve
public YamlNode resolve(YamlNode root)
Traverses the document to collect all anchors, then replaces all YamlAlias nodes with their dereferenced target nodes.
resolve
public YamlStream resolve(YamlStream stream)
Resolves aliases across all documents in a stream, maintaining a single anchor mapping table across document boundaries if needed.