Package org.openrewrite.yaml.tree
Interface Yaml
-
- All Superinterfaces:
org.openrewrite.Tree
- All Known Subinterfaces:
Yaml.Block
- All Known Implementing Classes:
Yaml.Alias,Yaml.Anchor,Yaml.Document,Yaml.Document.End,Yaml.Documents,Yaml.Mapping,Yaml.Mapping.Entry,Yaml.Scalar,Yaml.Sequence,Yaml.Sequence.Entry
public interface Yaml extends org.openrewrite.Tree
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classYaml.Aliasstatic classYaml.Anchorstatic interfaceYaml.Blockstatic classYaml.Documentstatic classYaml.Documentsstatic classYaml.Mappingstatic classYaml.Scalarstatic classYaml.Sequence
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <R extends org.openrewrite.Tree,P>
Raccept(org.openrewrite.TreeVisitor<R,P> v, P p)default <P> @Nullable YamlacceptYaml(YamlVisitor<P> v, P p)YamlcopyPaste()org.openrewrite.marker.MarkersgetMarkers()java.lang.StringgetPrefix()default <P> booleanisAcceptable(org.openrewrite.TreeVisitor<?,P> v, P p)<Y extends Yaml>
YwithMarkers(org.openrewrite.marker.Markers markers)YamlwithPrefix(java.lang.String prefix)
-
-
-
Method Detail
-
accept
default <R extends org.openrewrite.Tree,P> R accept(org.openrewrite.TreeVisitor<R,P> v, P p)- Specified by:
acceptin interfaceorg.openrewrite.Tree
-
isAcceptable
default <P> boolean isAcceptable(org.openrewrite.TreeVisitor<?,P> v, P p)- Specified by:
isAcceptablein interfaceorg.openrewrite.Tree
-
acceptYaml
@Nullable default <P> @Nullable Yaml acceptYaml(YamlVisitor<P> v, P p)
-
copyPaste
Yaml copyPaste()
- Returns:
- A new deep copy of this block with different IDs.
-
getPrefix
java.lang.String getPrefix()
-
withPrefix
Yaml withPrefix(java.lang.String prefix)
-
withMarkers
<Y extends Yaml> Y withMarkers(org.openrewrite.marker.Markers markers)
-
getMarkers
org.openrewrite.marker.Markers getMarkers()
-
-