Class StringBuilderRewriter
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.parse.rewriters.StringBuilderRewriter
-
- All Implemented Interfaces:
ExpressionRewriter
public class StringBuilderRewriter extends java.lang.Object implements ExpressionRewriter
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
stringBufferEnabled
private boolean
stringBuilderEnabled
private boolean
stringConcatFactoryEnabled
-
Constructor Summary
Constructors Constructor Description StringBuilderRewriter(Options options, ClassFileVersion classFileVersion)
-
Method Summary
-
-
-
Constructor Detail
-
StringBuilderRewriter
public StringBuilderRewriter(Options options, ClassFileVersion classFileVersion)
-
-
Method Detail
-
rewriteExpression
public Expression rewriteExpression(Expression expression, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags)
- Specified by:
rewriteExpression
in interfaceExpressionRewriter
-
extractStringConcatSimple
private Expression extractStringConcatSimple(StaticFunctionInvokation staticFunctionInvokation)
-
extractStringConcat
private Expression extractStringConcat(StaticFunctionInvokation staticFunctionInvokation)
-
handleStatement
public void handleStatement(StatementContainer statementContainer)
- Specified by:
handleStatement
in interfaceExpressionRewriter
-
rewriteExpression
public ConditionalExpression rewriteExpression(ConditionalExpression expression, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags)
- Specified by:
rewriteExpression
in interfaceExpressionRewriter
-
rewriteExpression
public LValue rewriteExpression(LValue lValue, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags)
- Specified by:
rewriteExpression
in interfaceExpressionRewriter
-
rewriteExpression
public StackSSALabel rewriteExpression(StackSSALabel lValue, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags)
- Specified by:
rewriteExpression
in interfaceExpressionRewriter
-
testAppendChain
private Expression testAppendChain(Expression lhs)
-
genStringConcat
private Expression genStringConcat(java.util.List<Expression> revList)
-
-