Class ChainStringBuilderAppendCalls

java.lang.Object
org.openrewrite.Recipe
org.openrewrite.staticanalysis.ChainStringBuilderAppendCalls
All Implemented Interfaces:
Cloneable

public class ChainStringBuilderAppendCalls extends org.openrewrite.Recipe
  • Nested Class Summary

    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
    static @Nullable org.openrewrite.java.tree.Expression
    additiveExpression(List<org.openrewrite.java.tree.Expression> expressions)
     
    static @Nullable org.openrewrite.java.tree.Expression
    additiveExpression(org.openrewrite.java.tree.Expression... expressions)
    Concat expressions to an expression with '+' connected.
    static org.openrewrite.java.tree.J.Binary
    concatAdditionBinary(org.openrewrite.java.tree.Expression left, org.openrewrite.java.tree.Expression right)
    Concat two literals to an expression with '+' and surrounded with single space.
    static boolean
    flatAdditiveExpressions(org.openrewrite.java.tree.Expression expression, List<org.openrewrite.java.tree.Expression> expressionList)
     
    static org.openrewrite.java.tree.J.Binary
     
     
     
    @Nullable Duration
     
    org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext>
     

    Methods inherited from class org.openrewrite.Recipe

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

    Methods inherited from class java.lang.Object

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

    • ChainStringBuilderAppendCalls

      public ChainStringBuilderAppendCalls()
  • 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
    • getEstimatedEffortPerOccurrence

      public @Nullable Duration getEstimatedEffortPerOccurrence()
      Overrides:
      getEstimatedEffortPerOccurrence in class org.openrewrite.Recipe
    • getVisitor

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

      public static org.openrewrite.java.tree.J.Binary concatAdditionBinary(org.openrewrite.java.tree.Expression left, org.openrewrite.java.tree.Expression right)
      Concat two literals to an expression with '+' and surrounded with single space.
    • additiveExpression

      public static @Nullable org.openrewrite.java.tree.Expression additiveExpression(org.openrewrite.java.tree.Expression... expressions)
      Concat expressions to an expression with '+' connected.
    • additiveExpression

      public static @Nullable org.openrewrite.java.tree.Expression additiveExpression(List<org.openrewrite.java.tree.Expression> expressions)
    • getAdditiveBinaryTemplate

      public static org.openrewrite.java.tree.J.Binary getAdditiveBinaryTemplate()
    • flatAdditiveExpressions

      public static boolean flatAdditiveExpressions(org.openrewrite.java.tree.Expression expression, List<org.openrewrite.java.tree.Expression> expressionList)