Class UpgradeAssistant

java.lang.Object
org.openrewrite.Recipe
org.openrewrite.ScanningRecipe<org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator>
org.openrewrite.dotnet.UpgradeAssistant
All Implemented Interfaces:
Cloneable

public class UpgradeAssistant extends org.openrewrite.ScanningRecipe<org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator>
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.openrewrite.Recipe

    org.openrewrite.Recipe.Builder, org.openrewrite.Recipe.DelegatingRecipe
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     

    Fields inherited from class org.openrewrite.Recipe

    contributors, examples, PANIC
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    buildUpgradeAssistantCommand(org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator acc, org.openrewrite.ExecutionContext ctx, Path projectFile)
     
    protected org.openrewrite.SourceFile
    createAfter(org.openrewrite.SourceFile before, org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator acc, org.openrewrite.ExecutionContext ctx)
     
    protected void
    deleteFile(@Nullable Path path)
     
    protected void
    execUpgradeAssistant(Path inputFile, org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator acc, org.openrewrite.ExecutionContext ctx)
     
    Collection<? extends org.openrewrite.SourceFile>
    generate(org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator acc, org.openrewrite.ExecutionContext ctx)
     
     
     
    org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator
    getInitialValue(org.openrewrite.ExecutionContext ctx)
     
    org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>
    getScanner(org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator acc)
     
    protected Path
     
    org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>
    getVisitor(org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator acc)
     
    protected void
    processOutput(Path projectFile, Path output, org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator acc)
     
    void
    runUpgradeAssistant(org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator acc, org.openrewrite.ExecutionContext ctx)
     

    Methods inherited from class org.openrewrite.ScanningRecipe

    generate, getAccumulator, getVisitor

    Methods inherited from class org.openrewrite.Recipe

    addDataTable, builder, buildRecipeList, causesAnotherCycle, clone, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescriptor, getEstimatedEffortPerOccurrence, getExamples, getInstanceName, getInstanceNameSuffix, getJacksonPolymorphicTypeTag, getMaintainers, getName, getRecipeList, getTags, hashCode, maxCycles, noop, onComplete, run, run, run, setContributors, setExamples, validate, validate, validateAll, validateAll

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DOTNET_HOME

      protected static final String DOTNET_HOME
  • Constructor Details

    • UpgradeAssistant

      public UpgradeAssistant()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in class org.openrewrite.Recipe
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in class org.openrewrite.Recipe
    • buildUpgradeAssistantCommand

      public List<String> buildUpgradeAssistantCommand(org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator acc, org.openrewrite.ExecutionContext ctx, Path projectFile)
    • runUpgradeAssistant

      public void runUpgradeAssistant(org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator acc, org.openrewrite.ExecutionContext ctx)
    • processOutput

      protected void processOutput(Path projectFile, Path output, org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator acc)
    • getInitialValue

      public org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator getInitialValue(org.openrewrite.ExecutionContext ctx)
      Specified by:
      getInitialValue in class org.openrewrite.ScanningRecipe<org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator>
    • getScanner

      public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getScanner(org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator acc)
      Specified by:
      getScanner in class org.openrewrite.ScanningRecipe<org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator>
    • generate

      public Collection<? extends org.openrewrite.SourceFile> generate(org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator acc, org.openrewrite.ExecutionContext ctx)
      Overrides:
      generate in class org.openrewrite.ScanningRecipe<org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator>
    • execUpgradeAssistant

      protected void execUpgradeAssistant(Path inputFile, org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator acc, org.openrewrite.ExecutionContext ctx)
    • deleteFile

      protected void deleteFile(@Nullable Path path)
    • getUpgradeAssistantPath

      protected Path getUpgradeAssistantPath()
    • getVisitor

      public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor(org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator acc)
      Overrides:
      getVisitor in class org.openrewrite.ScanningRecipe<org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator>
    • createAfter

      protected org.openrewrite.SourceFile createAfter(org.openrewrite.SourceFile before, org.openrewrite.dotnet.UpgradeAssistantRecipe.Accumulator acc, org.openrewrite.ExecutionContext ctx)