Class AssertRewriter.SwitchAssertUseCollector
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.opgraph.op4rewriters.matchutil.AbstractMatchResultIterator
-
- org.benf.cfr.reader.bytecode.analysis.opgraph.op4rewriters.AssertRewriter.SwitchAssertUseCollector
-
- All Implemented Interfaces:
MatchResultCollector
- Enclosing class:
- AssertRewriter
private class AssertRewriter.SwitchAssertUseCollector extends AbstractMatchResultIterator
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SwitchAssertUseCollector()
-
Method Summary
-
Methods inherited from class org.benf.cfr.reader.bytecode.analysis.opgraph.op4rewriters.matchutil.AbstractMatchResultIterator
collectMatches
-
-
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceMatchResultCollector
- Overrides:
clear
in classAbstractMatchResultIterator
-
collectStatement
public void collectStatement(java.lang.String name, StructuredStatement statement)
- Specified by:
collectStatement
in interfaceMatchResultCollector
- Overrides:
collectStatement
in classAbstractMatchResultIterator
-
tryCombineSwitch
private java.util.List<Op04StructuredStatement> tryCombineSwitch(java.util.List<Op04StructuredStatement> content, BlockIdentifier outer, BlockIdentifier swiBlockIdentifier, Block swBodyBlock)
-
getThrowExpression
private Pair<java.lang.Boolean,Expression> getThrowExpression(StructuredStatement throwS)
-
processSwitchAndThrow
private StructuredStatement processSwitchAndThrow(StructuredStatement ifStm, BlockIdentifier outer, BlockIdentifier swiBlockIdentifier, Block swBodyBlock, StructuredSwitch struSwi, Op04StructuredStatement throwStm)
-
getBranches
private boolean getBranches(BlockIdentifier outer, BlockIdentifier swiBlockIdentifier, Block swBodyBlock, java.util.List<SwitchExpression.Branch> branches, java.util.Map<Op04StructuredStatement,StructuredExpressionYield> replacements, boolean addYieldTrue)
-
getBranch
private SwitchExpression.Branch getBranch(BlockIdentifier outer, BlockIdentifier swiBlockIdentifier, java.util.Map<Op04StructuredStatement,StructuredExpressionYield> replacements, Op04StructuredStatement statement, boolean addYieldTrue)
-
processSwitchEmbeddedThrow
private StructuredStatement processSwitchEmbeddedThrow(StructuredStatement ifStm, BlockIdentifier outer, Block swBodyBlock, Op04StructuredStatement switchStm, StructuredSwitch struSwi)
-
-