Class IsBuildGradle<P>

java.lang.Object
org.openrewrite.TreeVisitor<org.openrewrite.Tree,P>
org.openrewrite.gradle.IsBuildGradle<P>
Type Parameters:
P -

public class IsBuildGradle<P> extends org.openrewrite.TreeVisitor<org.openrewrite.Tree,P>
Finds Gradle build files ending in `.gradle` and `.gradle.kts` files, but not `settings.gradle` or `settings.gradle.kts` files.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    IsBuildGradle(boolean exactMatch)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    matches(Path sourcePath)
     
    @Nullable org.openrewrite.Tree
    preVisit(@NonNull org.openrewrite.Tree tree, P p)
     

    Methods inherited from class org.openrewrite.TreeVisitor

    adapt, collect, collect, defaultValue, doAfterVisit, getAfterVisit, getCursor, getLanguage, isAcceptable, isAdaptableTo, noop, postVisit, reduce, reduce, reduce, setCursor, stopAfterPreVisit, updateCursor, visit, visit, visit, visitAndCast, visitAndCast, visitMarker, visitMarkers, visitNonNull, visitNonNull, visitorTreeType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IsBuildGradle

      public IsBuildGradle()
    • IsBuildGradle

      public IsBuildGradle(boolean exactMatch)
  • Method Details

    • preVisit

      public @Nullable org.openrewrite.Tree preVisit(@NonNull org.openrewrite.Tree tree, P p)
      Overrides:
      preVisit in class org.openrewrite.TreeVisitor<org.openrewrite.Tree,P>
    • matches

      public static boolean matches(Path sourcePath)