Package org.openrewrite.yaml.tree
Class Yaml.Sequence
java.lang.Object
org.openrewrite.yaml.tree.Yaml.Sequence
- 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
ConstructorsConstructorDescriptionSequence(UUID id, org.openrewrite.marker.Markers markers, @Nullable String openingBracketPrefix, List<Yaml.Sequence.Entry> entries, @Nullable String closingBracketPrefix, @Nullable Yaml.Anchor anchor, @Nullable Yaml.Tag tag) -
Method Summary
Modifier and TypeMethodDescription<P> YamlacceptYaml(YamlVisitor<P> v, P p) 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
-
Sequence
public Sequence(UUID id, org.openrewrite.marker.Markers markers, @Nullable String openingBracketPrefix, List<Yaml.Sequence.Entry> entries, @Nullable String closingBracketPrefix, @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
-
withPrefix
- Specified by:
withPrefixin interfaceYaml- Specified by:
withPrefixin interfaceYaml.Block
-