Class IsPackageJson<P>

java.lang.Object
org.openrewrite.TreeVisitor<org.openrewrite.Tree,P>
org.openrewrite.nodejs.search.IsPackageJson<P>

public class IsPackageJson<P> extends org.openrewrite.TreeVisitor<org.openrewrite.Tree,P>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    matches(Path sourcePath)
     
    org.openrewrite.Tree
    visit(@Nullable 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, preVisit, reduce, reduce, reduce, setCursor, stopAfterPreVisit, updateCursor, 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

    • IsPackageJson

      public IsPackageJson()
  • Method Details

    • visit

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

      public static boolean matches(Path sourcePath)