Class StructuredFor
java.lang.Object
org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractStructuredStatement
org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractStructuredBlockStatement
org.benf.cfr.reader.bytecode.analysis.structured.statement.StructuredFor
- All Implemented Interfaces:
HasByteCodeLoc, Matcher<StructuredStatement>, StructuredStatement, Dumpable, TypeUsageCollectable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<AbstractAssignmentExpression> private final BlockIdentifierprivate ConditionalExpressionprivate AssignmentSimpleprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionStructuredFor(BytecodeLoc loc, ConditionalExpression condition, AssignmentSimple initial, List<AbstractAssignmentExpression> assignments, Op04StructuredStatement body, BlockIdentifier block) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanDefine(LValue scopedEntity, ScopeDiscoverInfoCache factCache) voidcollectTypeUsages(TypeUsageCollector collector) getBlock()booleanvoidvoidmarkCreator(LValue scopedEntity, StatementContainer<StructuredStatement> hint) booleanmatch(MatchIterator<StructuredStatement> matchIterator, MatchResultCollector matchResultCollector) voidrewriteExpressions(ExpressionRewriter expressionRewriter) suggestName(LocalVariable createdHere, Predicate<String> testNameUsedFn) booleanvoidtraceLocalVariableScope(LValueScopeDiscoverer scopeDiscoverer) Methods inherited from class AbstractStructuredBlockStatement
getBody, isRecursivelyStructured, transformStructuredChildrenMethods inherited from class AbstractStructuredStatement
addLoc, alwaysDefines, canFall, claimBlock, fallsNopToNext, getContainer, getInline, getLoc, informBlockHeirachy, inlineable, isEffectivelyNOP, isProperlyStructured, setContainer, supportsContinueBreak, toString, transformStructuredChildrenInReverse
-
Field Details
-
condition
-
initial
-
assignments
-
block
-
isCreator
private boolean isCreator
-
-
Constructor Details
-
StructuredFor
public StructuredFor(BytecodeLoc loc, ConditionalExpression condition, AssignmentSimple initial, List<AbstractAssignmentExpression> assignments, Op04StructuredStatement body, BlockIdentifier block)
-
-
Method Details
-
collectTypeUsages
- Specified by:
collectTypeUsagesin interfaceTypeUsageCollectable- Overrides:
collectTypeUsagesin classAbstractStructuredBlockStatement
-
getCombinedLoc
-
dump
-
isScopeBlock
public boolean isScopeBlock()- Specified by:
isScopeBlockin interfaceStructuredStatement- Overrides:
isScopeBlockin classAbstractStructuredStatement
-
linearizeInto
-
getBreakableBlockOrNull
- Specified by:
getBreakableBlockOrNullin interfaceStructuredStatement- Overrides:
getBreakableBlockOrNullin classAbstractStructuredStatement
-
supportsBreak
public boolean supportsBreak()- Specified by:
supportsBreakin interfaceStructuredStatement- Overrides:
supportsBreakin classAbstractStructuredStatement
-
traceLocalVariableScope
-
markCreator
- Specified by:
markCreatorin interfaceStructuredStatement- Overrides:
markCreatorin classAbstractStructuredStatement
-
canDefine
- Specified by:
canDefinein interfaceStructuredStatement- Overrides:
canDefinein classAbstractStructuredStatement
-
findCreatedHere
- Specified by:
findCreatedHerein interfaceStructuredStatement- Overrides:
findCreatedHerein classAbstractStructuredStatement
-
suggestName
- Specified by:
suggestNamein interfaceStructuredStatement- Overrides:
suggestNamein classAbstractStructuredStatement
-
rewriteExpressions
-
getBlock
-
match
public boolean match(MatchIterator<StructuredStatement> matchIterator, MatchResultCollector matchResultCollector) - Specified by:
matchin interfaceMatcher<StructuredStatement>- Overrides:
matchin classAbstractStructuredStatement
-