Class AssignmentSimple
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.parse.statement.AbstractStatement
-
- org.benf.cfr.reader.bytecode.analysis.parse.statement.AbstractAssignment
-
- org.benf.cfr.reader.bytecode.analysis.parse.statement.AssignmentSimple
-
- All Implemented Interfaces:
HasByteCodeLoc,DeepCloneable<Statement>,Statement,ComparableUnderEC,Dumpable
public class AssignmentSimple extends AbstractAssignment
-
-
Field Summary
Fields Modifier and Type Field Description private LValuelvalueprivate Expressionrvalue
-
Constructor Summary
Constructors Constructor Description AssignmentSimple(BytecodeLoc loc, LValue lvalue, Expression rvalue)
-
Method Summary
-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.parse.statement.AbstractStatement
addLoc, fallsToNext, getCompoundParts, getContainer, getLoc, getTargetStatement, isCompound, outerDeepClone, setContainer, setLifetimeHint, toString, wantsLifetimeHint
-
-
-
-
Field Detail
-
lvalue
private LValue lvalue
-
rvalue
private Expression rvalue
-
-
Constructor Detail
-
AssignmentSimple
public AssignmentSimple(BytecodeLoc loc, LValue lvalue, Expression rvalue)
-
-
Method Detail
-
getCombinedLoc
public BytecodeLoc getCombinedLoc()
-
deepClone
public Statement deepClone(CloneHelper cloneHelper)
-
collectLValueAssignments
public void collectLValueAssignments(LValueAssignmentCollector<Statement> lValueAssigmentCollector)
- Specified by:
collectLValueAssignmentsin interfaceStatement- Overrides:
collectLValueAssignmentsin classAbstractStatement
-
doesBlackListLValueReplacement
public boolean doesBlackListLValueReplacement(LValue lValue, Expression expression)
- Specified by:
doesBlackListLValueReplacementin interfaceStatement- Overrides:
doesBlackListLValueReplacementin classAbstractStatement
-
collectLValueUsage
public void collectLValueUsage(LValueUsageCollector lValueUsageCollector)
-
collectObjectCreation
public void collectObjectCreation(CreationCollector creationCollector)
- Specified by:
collectObjectCreationin interfaceStatement- Overrides:
collectObjectCreationin classAbstractStatement
-
collectLocallyMutatedVariables
public SSAIdentifiers<LValue> collectLocallyMutatedVariables(SSAIdentifierFactory<LValue,?> ssaIdentifierFactory)
- Specified by:
collectLocallyMutatedVariablesin interfaceStatement- Overrides:
collectLocallyMutatedVariablesin classAbstractStatement
-
getCreatedLValue
public LValue getCreatedLValue()
- Specified by:
getCreatedLValuein interfaceStatement- Overrides:
getCreatedLValuein classAbstractStatement
-
getRValue
public Expression getRValue()
- Specified by:
getRValuein interfaceStatement- Overrides:
getRValuein classAbstractStatement
-
setRValue
public void setRValue(Expression rvalue)
-
isSelfMutatingOperation
public boolean isSelfMutatingOperation()
- Specified by:
isSelfMutatingOperationin classAbstractAssignment
-
isSelfMutatingOp1
public boolean isSelfMutatingOp1(LValue lValue, ArithOp arithOp)
- Specified by:
isSelfMutatingOp1in classAbstractAssignment
-
getPostMutation
public Expression getPostMutation()
- Specified by:
getPostMutationin classAbstractAssignment
-
getPreMutation
public Expression getPreMutation()
- Specified by:
getPreMutationin classAbstractAssignment
-
getInliningExpression
public AbstractAssignmentExpression getInliningExpression()
- Specified by:
getInliningExpressionin classAbstractAssignment
-
replaceSingleUsageLValues
public void replaceSingleUsageLValues(LValueRewriter lValueRewriter, SSAIdentifiers ssaIdentifiers)
-
rewriteExpressions
public void rewriteExpressions(ExpressionRewriter expressionRewriter, SSAIdentifiers ssaIdentifiers)
-
getStructuredStatement
public StructuredStatement getStructuredStatement()
-
canThrow
public boolean canThrow(ExceptionCheck caught)
- Specified by:
canThrowin interfaceStatement- Overrides:
canThrowin classAbstractStatement
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
equivalentUnder
public final boolean equivalentUnder(java.lang.Object o, EquivalenceConstraint constraint)
-
-