Class LValueAssignmentAndAliasCondenser.AliasRewriter
java.lang.Object
org.benf.cfr.reader.bytecode.analysis.parse.utils.LValueAssignmentAndAliasCondenser.AliasRewriter
- All Implemented Interfaces:
LValueRewriter<Statement>
- Enclosing class:
LValueAssignmentAndAliasCondenser
public class LValueAssignmentAndAliasCondenser.AliasRewriter
extends Object
implements LValueRewriter<Statement>
-
Nested Class Summary
Nested classes/interfaces inherited from interface LValueRewriter
LValueRewriter.Util -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<StackSSALabel, List<LValueAssignmentAndAliasCondenser.LValueStatementContainer>> private final Map<StackSSALabel, List<StatementContainer<Statement>>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckPostConditions(LValue lValue, Expression rValue) booleanexplicitlyReplaceThisLValue(LValue lValue) private LValuegetAlias(StackSSALabel stackSSALabel, LValueAssignmentAndAliasCondenser.ExpressionStatementPair target) getLValueReplacement(LValue lValue, SSAIdentifiers<LValue> ssaIdentifiers, StatementContainer<Statement> statementContainer) getWithFixed(Set<SSAIdent> fixed) voidkeepConstant(Collection<LValue> usedLValues) booleanneedLR()
-
Field Details
-
usages
-
possibleAliases
private final Map<StackSSALabel, List<LValueAssignmentAndAliasCondenser.LValueStatementContainer>> possibleAliases
-
-
Constructor Details
-
AliasRewriter
public AliasRewriter()
-
-
Method Details
-
getWithFixed
- Specified by:
getWithFixedin interfaceLValueRewriter<Statement>
-
keepConstant
- Specified by:
keepConstantin interfaceLValueRewriter<Statement>
-
needLR
public boolean needLR()- Specified by:
needLRin interfaceLValueRewriter<Statement>
-
getLValueReplacement
public Expression getLValueReplacement(LValue lValue, SSAIdentifiers<LValue> ssaIdentifiers, StatementContainer<Statement> statementContainer) - Specified by:
getLValueReplacementin interfaceLValueRewriter<Statement>
-
getAlias
private LValue getAlias(StackSSALabel stackSSALabel, LValueAssignmentAndAliasCondenser.ExpressionStatementPair target) -
inferAliases
public void inferAliases() -
explicitlyReplaceThisLValue
- Specified by:
explicitlyReplaceThisLValuein interfaceLValueRewriter<Statement>
-
checkPostConditions
- Specified by:
checkPostConditionsin interfaceLValueRewriter<Statement>
-