Class AbstractStructuredConditionalLoopStatement
- 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.AbstractStructuredConditionalLoopStatement
-
- All Implemented Interfaces:
HasByteCodeLoc,Matcher<StructuredStatement>,StructuredStatement,Dumpable,TypeUsageCollectable
- Direct Known Subclasses:
StructuredDo,StructuredWhile
public abstract class AbstractStructuredConditionalLoopStatement extends AbstractStructuredBlockStatement
-
-
Field Summary
Fields Modifier and Type Field Description protected BlockIdentifierblockprotected ConditionalExpressioncondition
-
Constructor Summary
Constructors Constructor Description AbstractStructuredConditionalLoopStatement(BytecodeLoc loc, ConditionalExpression condition, BlockIdentifier block, Op04StructuredStatement body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollectTypeUsages(TypeUsageCollector collector)BlockIdentifiergetBlock()BlockIdentifiergetBreakableBlockOrNull()ConditionalExpressiongetCondition()booleanisInfinite()booleanisScopeBlock()voidlinearizeInto(java.util.List<StructuredStatement> out)voidrewriteExpressions(ExpressionRewriter expressionRewriter)booleansupportsBreak()booleansupportsContinueBreak()voidtraceLocalVariableScope(LValueScopeDiscoverer scopeDiscoverer)-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractStructuredBlockStatement
getBody, isRecursivelyStructured, transformStructuredChildren
-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.structured.statement.AbstractStructuredStatement
addLoc, alwaysDefines, canDefine, canFall, claimBlock, fallsNopToNext, findCreatedHere, getContainer, getInline, getLoc, informBlockHeirachy, inlineable, isEffectivelyNOP, isProperlyStructured, markCreator, match, setContainer, suggestName, toString, transformStructuredChildrenInReverse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.benf.cfr.reader.bytecode.analysis.loc.HasByteCodeLoc
getCombinedLoc
-
-
-
-
Field Detail
-
condition
protected ConditionalExpression condition
-
block
protected final BlockIdentifier block
-
-
Constructor Detail
-
AbstractStructuredConditionalLoopStatement
AbstractStructuredConditionalLoopStatement(BytecodeLoc loc, ConditionalExpression condition, BlockIdentifier block, Op04StructuredStatement body)
-
-
Method Detail
-
getBlock
public BlockIdentifier getBlock()
-
getCondition
public ConditionalExpression getCondition()
-
getBreakableBlockOrNull
public BlockIdentifier getBreakableBlockOrNull()
- Specified by:
getBreakableBlockOrNullin interfaceStructuredStatement- Overrides:
getBreakableBlockOrNullin classAbstractStructuredStatement
-
supportsBreak
public boolean supportsBreak()
- Specified by:
supportsBreakin interfaceStructuredStatement- Overrides:
supportsBreakin classAbstractStructuredStatement
-
collectTypeUsages
public void collectTypeUsages(TypeUsageCollector collector)
- Specified by:
collectTypeUsagesin interfaceTypeUsageCollectable- Overrides:
collectTypeUsagesin classAbstractStructuredBlockStatement
-
isInfinite
public boolean isInfinite()
-
isScopeBlock
public boolean isScopeBlock()
- Specified by:
isScopeBlockin interfaceStructuredStatement- Overrides:
isScopeBlockin classAbstractStructuredStatement
-
supportsContinueBreak
public boolean supportsContinueBreak()
- Specified by:
supportsContinueBreakin interfaceStructuredStatement- Overrides:
supportsContinueBreakin classAbstractStructuredStatement
-
traceLocalVariableScope
public void traceLocalVariableScope(LValueScopeDiscoverer scopeDiscoverer)
-
linearizeInto
public void linearizeInto(java.util.List<StructuredStatement> out)
-
rewriteExpressions
public void rewriteExpressions(ExpressionRewriter expressionRewriter)
-
-