Package org.openrewrite.java.spring
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 -
Method Summary
Modifier and TypeMethodDescription@Nullable org.openrewrite.Treevisit(@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
-
Constructor Details
-
IsPossibleSpringConfigFile
public IsPossibleSpringConfigFile()
-
-
Method Details
-
visit
public @Nullable org.openrewrite.Tree visit(@Nullable org.openrewrite.Tree tree, org.openrewrite.ExecutionContext ctx) - Overrides:
visitin classorg.openrewrite.TreeVisitor<org.openrewrite.Tree,org.openrewrite.ExecutionContext>
-