Class ReplaceStringBuilderWithString

java.lang.Object
org.openrewrite.Recipe
org.openrewrite.java.cleanup.ReplaceStringBuilderWithString
All Implemented Interfaces:
Cloneable

public class ReplaceStringBuilderWithString extends org.openrewrite.Recipe
  • Constructor Details

    • ReplaceStringBuilderWithString

      public ReplaceStringBuilderWithString()
  • Method Details

    • getDisplayName

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

      public String getDescription()
      Overrides:
      getDescription in class org.openrewrite.Recipe
    • getEstimatedEffortPerOccurrence

      public Duration getEstimatedEffortPerOccurrence()
      Overrides:
      getEstimatedEffortPerOccurrence in class org.openrewrite.Recipe
    • getSingleSourceApplicableTest

      @Nullable protected @Nullable org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getSingleSourceApplicableTest()
      Overrides:
      getSingleSourceApplicableTest in class org.openrewrite.Recipe
    • getVisitor

      protected org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor()
      Overrides:
      getVisitor in class org.openrewrite.Recipe
    • getParenthesesTemplate

      public static J.Parentheses getParenthesesTemplate()
    • getStringValueOfMethodInvocationTemplate

      public static J.MethodInvocation getStringValueOfMethodInvocationTemplate()
    • wrapExpression

      public static <T extends J> J.Parentheses<T> wrapExpression(Expression exp)