Package org.openrewrite
Interface SourceFile
-
- All Superinterfaces:
Tree
- All Known Implementing Classes:
PlainText,Polyglot.Source
public interface SourceFile extends Tree
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MarkersgetMarkers()java.nio.file.PathgetSourcePath()default <S extends Style>
SgetStyle(java.lang.Class<S> style)default java.lang.StringprintAll()default <P> java.lang.StringprintAll(P p)default java.lang.StringprintAllTrimmed()default <P> java.lang.StringprintAllTrimmed(P p)default <P> TreeVisitor<?,PrintOutputCapture<P>>printer(Cursor cursor)<T extends SourceFile>
TwithMarkers(Markers markers)SourceFilewithSourcePath(java.nio.file.Path path)-
Methods inherited from interface org.openrewrite.Tree
accept, getId, getJacksonPolymorphicTypeTag, isAcceptable, isScope, print, print, print, print, printTrimmed, printTrimmed, printTrimmed
-
-
-
-
Method Detail
-
getSourcePath
java.nio.file.Path getSourcePath()
- Returns:
- An absolute or relative file path.
-
withSourcePath
SourceFile withSourcePath(java.nio.file.Path path)
-
getMarkers
Markers getMarkers()
-
withMarkers
<T extends SourceFile> T withMarkers(Markers markers)
-
printAll
default <P> java.lang.String printAll(P p)
-
printAll
default java.lang.String printAll()
-
printAllTrimmed
default <P> java.lang.String printAllTrimmed(P p)
-
printAllTrimmed
default java.lang.String printAllTrimmed()
-
printer
default <P> TreeVisitor<?,PrintOutputCapture<P>> printer(Cursor cursor)
-
-