Class IsPossibleSpringConfigFile

java.lang.Object
org.openrewrite.TreeVisitor<org.openrewrite.Tree,org.openrewrite.ExecutionContext>
org.openrewrite.java.spring.IsPossibleSpringConfigFile

public class IsPossibleSpringConfigFile extends org.openrewrite.TreeVisitor<org.openrewrite.Tree,org.openrewrite.ExecutionContext>
A precondition to determine if a file might be a Spring configuration file. This does not make positive identification of files which are spring configuration files, as there are few hard limits. Instead, this tries to rule out files which, due to their type or location, cannot be spring properties.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable org.openrewrite.Tree
    visit(@Nullable org.openrewrite.Tree tree, org.openrewrite.ExecutionContext ctx)
     

    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

    • IsPossibleSpringConfigFile

      public IsPossibleSpringConfigFile()
  • Method Details

    • visit

      public @Nullable org.openrewrite.Tree visit(@Nullable org.openrewrite.Tree tree, org.openrewrite.ExecutionContext ctx)
      Overrides:
      visit in class org.openrewrite.TreeVisitor<org.openrewrite.Tree,org.openrewrite.ExecutionContext>