Package org.openrewrite.yaml.tree
Class Yaml.Mapping
- java.lang.Object
-
- org.openrewrite.yaml.tree.Yaml.Mapping
-
- All Implemented Interfaces:
java.io.Serializable,org.openrewrite.Tree,Yaml,Yaml.Block
- Enclosing interface:
- Yaml
public static class Yaml.Mapping extends java.lang.Object implements Yaml.Block
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classYaml.Mapping.Entry-
Nested classes/interfaces inherited from interface org.openrewrite.yaml.tree.Yaml
Yaml.Block, Yaml.Document, Yaml.Documents, Yaml.Mapping, Yaml.Scalar, Yaml.Sequence
-
-
Constructor Summary
Constructors Constructor Description Mapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> RacceptYaml(YamlSourceVisitor<R> v)Yaml.MappingcopyPaste()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openrewrite.Tree
getFormatting, getId, getPrefix, getSuffix, isScope, whenType, withFormatting, withPrefix, withSuffix
-
Methods inherited from interface org.openrewrite.yaml.tree.Yaml
accept, print, printTrimmed
-
-
-
-
Method Detail
-
acceptYaml
public <R> R acceptYaml(YamlSourceVisitor<R> v)
- Specified by:
acceptYamlin interfaceYaml
-
copyPaste
public Yaml.Mapping copyPaste()
- Specified by:
copyPastein interfaceYaml- Specified by:
copyPastein interfaceYaml.Block- Returns:
- A new deep copy of this block with different IDs.
-
-