Package org.openrewrite.yaml.tree
Class Yaml.Mapping
java.lang.Object
org.openrewrite.yaml.tree.Yaml.Mapping
- All Implemented Interfaces:
org.openrewrite.Tree,Yaml,Yaml.Block
- Enclosing interface:
Yaml
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.openrewrite.yaml.tree.Yaml
Yaml.Alias, Yaml.Anchor, Yaml.Block, Yaml.Document, Yaml.Documents, Yaml.Mapping, Yaml.Scalar, Yaml.Sequence, Yaml.Tag -
Constructor Summary
ConstructorsConstructorDescriptionMapping(UUID id, org.openrewrite.marker.Markers markers, @Nullable String openingBracePrefix, List<Yaml.Mapping.Entry> entries, @Nullable String closingBracePrefix, @Nullable Yaml.Anchor anchor, @Nullable Yaml.Tag tag) -
Method Summary
Modifier and TypeMethodDescription<P> YamlacceptYaml(YamlVisitor<P> v, P p) Prefixes will always be onYaml.Mapping.Entry.withPrefix(String prefix) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openrewrite.Tree
cast, getId, getMarkers, isScope, print, print, print, printer, printTrimmed, printTrimmed, printTrimmed, withId, withMarkersMethods inherited from interface org.openrewrite.yaml.tree.Yaml
accept, isAcceptable
-
Constructor Details
-
Mapping
public Mapping(UUID id, org.openrewrite.marker.Markers markers, @Nullable String openingBracePrefix, List<Yaml.Mapping.Entry> entries, @Nullable String closingBracePrefix, @Nullable Yaml.Anchor anchor, @Nullable Yaml.Tag tag)
-
-
Method Details
-
acceptYaml
- Specified by:
acceptYamlin interfaceYaml
-
copyPaste
- Specified by:
copyPastein interfaceYaml- Specified by:
copyPastein interfaceYaml.Block- Returns:
- A new deep copy of this block with different IDs.
-
getPrefix
Prefixes will always be onYaml.Mapping.Entry. -
withPrefix
- Specified by:
withPrefixin interfaceYaml- Specified by:
withPrefixin interfaceYaml.Block
-