Class SyntheticAccessorRewriter
java.lang.Object
org.benf.cfr.reader.bytecode.analysis.parse.rewriters.AbstractExpressionRewriter
org.benf.cfr.reader.bytecode.analysis.opgraph.op4rewriters.SyntheticAccessorRewriter
- All Implemented Interfaces:
Op04Rewriter
,ExpressionRewriter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
private class
private class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private final DCCommonState
private static final String
private static final String
private final JavaTypeInstance
private final ExpressionRewriter
-
Constructor Summary
ConstructorsConstructorDescriptionSyntheticAccessorRewriter
(DCCommonState state, JavaTypeInstance thisClassType) -
Method Summary
Modifier and TypeMethodDescriptionprivate Expression
getCastFriendArg
(JavaTypeInstance otherType, LocalVariable methodArg, Expression appliedArg) void
rewriteExpression
(Expression expression, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags) rewriteExpression
(LValue lValue, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags) private Expression
rewriteFunctionExpression
(StaticFunctionInvokation functionInvokation) private Expression
rewriteFunctionExpression2
(StaticFunctionInvokation functionInvokation) private Expression
tryRewriteAccessor
(List<StructuredStatement> structuredStatements, JavaTypeInstance otherType, List<Expression> appliedArgs, List<LocalVariable> methodArgs) private Expression
tryRewriteFunctionCall
(List<StructuredStatement> structuredStatements, JavaTypeInstance otherType, List<Expression> appliedArgs, List<LocalVariable> methodArgs) private static boolean
validRelationship
(JavaTypeInstance type1, JavaTypeInstance type2) Methods inherited from class org.benf.cfr.reader.bytecode.analysis.parse.rewriters.AbstractExpressionRewriter
handleStatement, rewriteExpression, rewriteExpression
-
Field Details
-
state
-
thisClassType
-
visbilityRewriter
-
RETURN_LVALUE
- See Also:
-
MUTATION1
- See Also:
-
MUTATION2
- See Also:
-
MUTATION3
- See Also:
-
ASSIGNMENT1
- See Also:
-
PRE_INC
- See Also:
-
POST_INC
- See Also:
-
PRE_DEC
- See Also:
-
POST_DEC
- See Also:
-
SUPER_INVOKE
- See Also:
-
SUPER_RETINVOKE
- See Also:
-
STA_SUB1
- See Also:
-
STA_FUN1
- See Also:
-
-
Constructor Details
-
SyntheticAccessorRewriter
-
-
Method Details
-
rewrite
- Specified by:
rewrite
in interfaceOp04Rewriter
-
rewriteExpression
public Expression rewriteExpression(Expression expression, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags) - Specified by:
rewriteExpression
in interfaceExpressionRewriter
- Overrides:
rewriteExpression
in classAbstractExpressionRewriter
-
rewriteExpression
public LValue rewriteExpression(LValue lValue, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags) - Specified by:
rewriteExpression
in interfaceExpressionRewriter
- Overrides:
rewriteExpression
in classAbstractExpressionRewriter
-
rewriteFunctionExpression
-
validRelationship
-
rewriteFunctionExpression2
-
tryRewriteAccessor
private Expression tryRewriteAccessor(List<StructuredStatement> structuredStatements, JavaTypeInstance otherType, List<Expression> appliedArgs, List<LocalVariable> methodArgs) -
tryRewriteFunctionCall
private Expression tryRewriteFunctionCall(List<StructuredStatement> structuredStatements, JavaTypeInstance otherType, List<Expression> appliedArgs, List<LocalVariable> methodArgs) -
getCastFriendArg
private Expression getCastFriendArg(JavaTypeInstance otherType, LocalVariable methodArg, Expression appliedArg)
-