Package org.openrewrite.yaml.tree
Interface Yaml
- All Superinterfaces:
org.openrewrite.Tree
- All Known Subinterfaces:
Yaml.Block,YamlKey
- 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 ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic interfacestatic classstatic classstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptiondefault <R extends org.openrewrite.Tree,P>
Raccept(org.openrewrite.TreeVisitor<R, P> v, P p) default <P> @Nullable YamlacceptYaml(YamlVisitor<P> v, P p) default <P> booleanisAcceptable(org.openrewrite.TreeVisitor<?, P> v, P p) withPrefix(String prefix) Methods inherited from interface org.openrewrite.Tree
cast, getId, getJacksonPolymorphicTypeTag, getMarkers, isScope, print, print, print, printer, printTrimmed, printTrimmed, printTrimmed, withId, withMarkers
-
Method Details
-
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
-
copyPaste
Yaml copyPaste()- Returns:
- A new deep copy of this block with different IDs.
-
getPrefix
String getPrefix() -
withPrefix
-