public class AssignmentSimple extends AbstractAssignment
| Modifier and Type | Field and Description |
|---|---|
private LValue |
lvalue |
private Expression |
rvalue |
| Constructor and Description |
|---|
AssignmentSimple(BytecodeLoc loc,
LValue lvalue,
Expression rvalue) |
addLoc, fallsToNext, getCompoundParts, getContainer, getLoc, getTargetStatement, isCompound, outerDeepClone, setContainer, setLifetimeHint, toString, wantsLifetimeHintprivate LValue lvalue
private Expression rvalue
public AssignmentSimple(BytecodeLoc loc, LValue lvalue, Expression rvalue)
public BytecodeLoc getCombinedLoc()
public Statement deepClone(CloneHelper cloneHelper)
public void collectLValueAssignments(LValueAssignmentCollector<Statement> lValueAssigmentCollector)
collectLValueAssignments in interface StatementcollectLValueAssignments in class AbstractStatementpublic boolean doesBlackListLValueReplacement(LValue lValue, Expression expression)
doesBlackListLValueReplacement in interface StatementdoesBlackListLValueReplacement in class AbstractStatementpublic void collectLValueUsage(LValueUsageCollector lValueUsageCollector)
public void collectObjectCreation(CreationCollector creationCollector)
collectObjectCreation in interface StatementcollectObjectCreation in class AbstractStatementpublic SSAIdentifiers<LValue> collectLocallyMutatedVariables(SSAIdentifierFactory<LValue,?> ssaIdentifierFactory)
collectLocallyMutatedVariables in interface StatementcollectLocallyMutatedVariables in class AbstractStatementpublic LValue getCreatedLValue()
getCreatedLValue in interface StatementgetCreatedLValue in class AbstractStatementpublic Expression getRValue()
getRValue in interface StatementgetRValue in class AbstractStatementpublic void setRValue(Expression rvalue)
public boolean isSelfMutatingOperation()
isSelfMutatingOperation in class AbstractAssignmentpublic boolean isSelfMutatingOp1(LValue lValue, ArithOp arithOp)
isSelfMutatingOp1 in class AbstractAssignmentpublic Expression getPostMutation()
getPostMutation in class AbstractAssignmentpublic Expression getPreMutation()
getPreMutation in class AbstractAssignmentpublic AbstractAssignmentExpression getInliningExpression()
getInliningExpression in class AbstractAssignmentpublic void replaceSingleUsageLValues(LValueRewriter lValueRewriter, SSAIdentifiers ssaIdentifiers)
public void rewriteExpressions(ExpressionRewriter expressionRewriter, SSAIdentifiers ssaIdentifiers)
public StructuredStatement getStructuredStatement()
public boolean canThrow(ExceptionCheck caught)
canThrow in interface StatementcanThrow in class AbstractStatementpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic final boolean equivalentUnder(java.lang.Object o,
EquivalenceConstraint constraint)