Class ForStatement
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.parse.statement.AbstractStatement
-
- org.benf.cfr.reader.bytecode.analysis.parse.statement.ForStatement
-
- All Implemented Interfaces:
HasByteCodeLoc
,DeepCloneable<Statement>
,Statement
,ComparableUnderEC
,Dumpable
public class ForStatement extends AbstractStatement
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<AbstractAssignmentExpression>
assignments
private BlockIdentifier
blockIdentifier
private ConditionalExpression
condition
private AssignmentSimple
initial
-
Constructor Summary
Constructors Constructor Description ForStatement(BytecodeLoc loc, ConditionalExpression conditionalExpression, BlockIdentifier blockIdentifier, AssignmentSimple initial, java.util.List<AbstractAssignmentExpression> assignments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collectLValueUsage(LValueUsageCollector lValueUsageCollector)
Statement
deepClone(CloneHelper cloneHelper)
Dumper
dump(Dumper dumper)
boolean
equivalentUnder(java.lang.Object o, EquivalenceConstraint constraint)
java.util.List<AbstractAssignmentExpression>
getAssignments()
BlockIdentifier
getBlockIdentifier()
BytecodeLoc
getCombinedLoc()
ConditionalExpression
getCondition()
AssignmentSimple
getInitial()
StructuredStatement
getStructuredStatement()
void
replaceSingleUsageLValues(LValueRewriter lValueRewriter, SSAIdentifiers ssaIdentifiers)
void
rewriteExpressions(ExpressionRewriter expressionRewriter, SSAIdentifiers ssaIdentifiers)
-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.parse.statement.AbstractStatement
addLoc, canThrow, collectLocallyMutatedVariables, collectLValueAssignments, collectObjectCreation, doesBlackListLValueReplacement, fallsToNext, getCompoundParts, getContainer, getCreatedLValue, getLoc, getRValue, getTargetStatement, isCompound, outerDeepClone, setContainer, setLifetimeHint, toString, wantsLifetimeHint
-
-
-
-
Field Detail
-
condition
private ConditionalExpression condition
-
blockIdentifier
private BlockIdentifier blockIdentifier
-
initial
private AssignmentSimple initial
-
assignments
private java.util.List<AbstractAssignmentExpression> assignments
-
-
Constructor Detail
-
ForStatement
ForStatement(BytecodeLoc loc, ConditionalExpression conditionalExpression, BlockIdentifier blockIdentifier, AssignmentSimple initial, java.util.List<AbstractAssignmentExpression> assignments)
-
-
Method Detail
-
deepClone
public Statement deepClone(CloneHelper cloneHelper)
-
getCombinedLoc
public BytecodeLoc getCombinedLoc()
-
replaceSingleUsageLValues
public void replaceSingleUsageLValues(LValueRewriter lValueRewriter, SSAIdentifiers ssaIdentifiers)
-
rewriteExpressions
public void rewriteExpressions(ExpressionRewriter expressionRewriter, SSAIdentifiers ssaIdentifiers)
-
collectLValueUsage
public void collectLValueUsage(LValueUsageCollector lValueUsageCollector)
-
getStructuredStatement
public StructuredStatement getStructuredStatement()
-
getBlockIdentifier
public BlockIdentifier getBlockIdentifier()
-
getCondition
public ConditionalExpression getCondition()
-
getInitial
public AssignmentSimple getInitial()
-
getAssignments
public java.util.List<AbstractAssignmentExpression> getAssignments()
-
equivalentUnder
public final boolean equivalentUnder(java.lang.Object o, EquivalenceConstraint constraint)
-
-