Class ApplyCodemod

java.lang.Object
org.openrewrite.Recipe
org.openrewrite.ScanningRecipe<NodeBasedRecipe.Accumulator>
org.openrewrite.codemods.NodeBasedRecipe
org.openrewrite.codemods.ApplyCodemod
All Implemented Interfaces:
Cloneable

public class ApplyCodemod extends NodeBasedRecipe
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.openrewrite.codemods.NodeBasedRecipe

    NodeBasedRecipe.Accumulator

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

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

    Fields inherited from class org.openrewrite.Recipe

    contributors, examples, PANIC
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    protected List<String>
    getNpmCommand(NodeBasedRecipe.Accumulator acc, org.openrewrite.ExecutionContext ctx)
     

    Methods inherited from class org.openrewrite.ScanningRecipe

    clone, generate, getAccumulator, getVisitor

    Methods inherited from class org.openrewrite.Recipe

    addDataTable, builder, buildRecipeList, causesAnotherCycle, 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, withOptions

    Methods inherited from class java.lang.Object

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

    • ApplyCodemod

      public ApplyCodemod()
  • 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
    • getNpmCommand

      protected List<String> getNpmCommand(NodeBasedRecipe.Accumulator acc, org.openrewrite.ExecutionContext ctx)
      Specified by:
      getNpmCommand in class NodeBasedRecipe