Package org.openrewrite.staticanalysis
Class ReplaceStringBuilderWithString
java.lang.Object
org.openrewrite.Recipe
org.openrewrite.staticanalysis.ReplaceStringBuilderWithString
- All Implemented Interfaces:
Cloneable
public class ReplaceStringBuilderWithString
extends org.openrewrite.Recipe
-
Field Summary
Fields inherited from class org.openrewrite.Recipe
contributors, examples, PANIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.openrewrite.java.tree.J.Parenthesesstatic org.openrewrite.java.tree.J.MethodInvocationorg.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> static <T extends org.openrewrite.java.tree.J>
org.openrewrite.java.tree.J.Parentheses<T>wrapExpression(org.openrewrite.java.tree.Expression exp) Methods inherited from class org.openrewrite.Recipe
addDataTable, causesAnotherCycle, clone, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescriptor, getExamples, getJacksonPolymorphicTypeTag, getMaintainers, getName, getRecipeList, getTags, hashCode, maxCycles, noop, run, run, run, setContributors, setExamples, validate, validate, validateAll, validateAll
-
Constructor Details
-
ReplaceStringBuilderWithString
public ReplaceStringBuilderWithString()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein classorg.openrewrite.Recipe
-
getDescription
- Specified by:
getDescriptionin classorg.openrewrite.Recipe
-
getEstimatedEffortPerOccurrence
- Overrides:
getEstimatedEffortPerOccurrencein classorg.openrewrite.Recipe
-
getVisitor
public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor()- Overrides:
getVisitorin classorg.openrewrite.Recipe
-
getParenthesesTemplate
public static org.openrewrite.java.tree.J.Parentheses getParenthesesTemplate() -
getStringValueOfMethodInvocationTemplate
public static org.openrewrite.java.tree.J.MethodInvocation getStringValueOfMethodInvocationTemplate() -
wrapExpression
public static <T extends org.openrewrite.java.tree.J> org.openrewrite.java.tree.J.Parentheses<T> wrapExpression(org.openrewrite.java.tree.Expression exp)
-