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 LValue
lvalue
private Expression
rvalue
-
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:
collectLValueAssignments
in interfaceStatement
- Overrides:
collectLValueAssignments
in classAbstractStatement
-
doesBlackListLValueReplacement
public boolean doesBlackListLValueReplacement(LValue lValue, Expression expression)
- Specified by:
doesBlackListLValueReplacement
in interfaceStatement
- Overrides:
doesBlackListLValueReplacement
in classAbstractStatement
-
collectLValueUsage
public void collectLValueUsage(LValueUsageCollector lValueUsageCollector)
-
collectObjectCreation
public void collectObjectCreation(CreationCollector creationCollector)
- Specified by:
collectObjectCreation
in interfaceStatement
- Overrides:
collectObjectCreation
in classAbstractStatement
-
collectLocallyMutatedVariables
public SSAIdentifiers<LValue> collectLocallyMutatedVariables(SSAIdentifierFactory<LValue,?> ssaIdentifierFactory)
- Specified by:
collectLocallyMutatedVariables
in interfaceStatement
- Overrides:
collectLocallyMutatedVariables
in classAbstractStatement
-
getCreatedLValue
public LValue getCreatedLValue()
- Specified by:
getCreatedLValue
in interfaceStatement
- Overrides:
getCreatedLValue
in classAbstractStatement
-
getRValue
public Expression getRValue()
- Specified by:
getRValue
in interfaceStatement
- Overrides:
getRValue
in classAbstractStatement
-
setRValue
public void setRValue(Expression rvalue)
-
isSelfMutatingOperation
public boolean isSelfMutatingOperation()
- Specified by:
isSelfMutatingOperation
in classAbstractAssignment
-
isSelfMutatingOp1
public boolean isSelfMutatingOp1(LValue lValue, ArithOp arithOp)
- Specified by:
isSelfMutatingOp1
in classAbstractAssignment
-
getPostMutation
public Expression getPostMutation()
- Specified by:
getPostMutation
in classAbstractAssignment
-
getPreMutation
public Expression getPreMutation()
- Specified by:
getPreMutation
in classAbstractAssignment
-
getInliningExpression
public AbstractAssignmentExpression getInliningExpression()
- Specified by:
getInliningExpression
in 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:
canThrow
in interfaceStatement
- Overrides:
canThrow
in classAbstractStatement
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
equivalentUnder
public final boolean equivalentUnder(java.lang.Object o, EquivalenceConstraint constraint)
-
-