Package org.openrewrite.gradle.isolated
Class DefaultProjectParser
java.lang.Object
org.openrewrite.gradle.isolated.DefaultProjectParser
- All Implemented Interfaces:
GradleProjectParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Pathprotected final RewriteExtensionprotected final org.gradle.api.Project -
Constructor Summary
ConstructorsConstructorDescriptionDefaultProjectParser(org.gradle.api.Project project, RewriteExtension extension) -
Method Summary
Modifier and TypeMethodDescriptionvoiddiscoverRecipes(org.gradle.internal.service.ServiceRegistry serviceRegistry) voidvoiddryRun(Path reportPath, ResultsContainer results) protected org.openrewrite.config.EnvironmentCollection<org.openrewrite.config.RecipeDescriptor>protected ResultsContainerlistResults(org.openrewrite.ExecutionContext ctx) protected voidlogRecipesThatMadeChanges(org.openrewrite.Result result) Stream<org.openrewrite.SourceFile>parse(org.gradle.api.Project subproject, Set<Path> alreadyParsed, org.openrewrite.ExecutionContext ctx) Stream<org.openrewrite.SourceFile>parse(org.openrewrite.ExecutionContext ctx) protected org.openrewrite.polyglot.SourceFileStreamparseNonProjectResources(org.gradle.api.Project subproject, Set<Path> alreadyParsed, org.openrewrite.ExecutionContext ctx) voidvoidrun(ResultsContainer results, org.openrewrite.ExecutionContext ctx) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openrewrite.gradle.GradleProjectParser
discoverRecipes
-
Field Details
-
baseDir
-
extension
-
project
protected final org.gradle.api.Project project
-
-
Constructor Details
-
DefaultProjectParser
-
-
Method Details
-
getActiveRecipes
- Specified by:
getActiveRecipesin interfaceGradleProjectParser
-
getActiveStyles
- Specified by:
getActiveStylesin interfaceGradleProjectParser
-
getAvailableStyles
- Specified by:
getAvailableStylesin interfaceGradleProjectParser
-
discoverRecipes
public void discoverRecipes(org.gradle.internal.service.ServiceRegistry serviceRegistry) - Specified by:
discoverRecipesin interfaceGradleProjectParser
-
listRecipeDescriptors
-
listSources
- Specified by:
listSourcesin interfaceGradleProjectParser
-
dryRun
- Specified by:
dryRunin interfaceGradleProjectParser
-
dryRun
-
run
- Specified by:
runin interfaceGradleProjectParser
-
run
-
environment
protected org.openrewrite.config.Environment environment() -
parse
-
parse
-
parseNonProjectResources
-
listResults
-
shutdownRewrite
public void shutdownRewrite()- Specified by:
shutdownRewritein interfaceGradleProjectParser
-
logRecipesThatMadeChanges
protected void logRecipesThatMadeChanges(org.openrewrite.Result result)
-