Class AssertRewriter.ControlFlowSwitchExpressionTransformer
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.opgraph.op4rewriters.AssertRewriter.ControlFlowSwitchExpressionTransformer
-
- All Implemented Interfaces:
StructuredStatementTransformer
- Direct Known Subclasses:
AssertRewriter.AssertionTrackingControlFlowSwitchExpressionTransformer
- Enclosing class:
- AssertRewriter
static class AssertRewriter.ControlFlowSwitchExpressionTransformer extends java.lang.Object implements StructuredStatementTransformer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classAssertRewriter.ControlFlowSwitchExpressionTransformer.BreakClassification
-
Field Summary
Fields Modifier and Type Field Description protected booleanfailedprivate BlockIdentifierfalseBlock(package private) intfalseFoundprivate java.util.Map<Op04StructuredStatement,StructuredExpressionYield>replacements(package private) Expressionsingle(package private) inttotalStatementsprivate BlockIdentifiertrueBlock(package private) inttrueFound
-
Constructor Summary
Constructors Modifier Constructor Description privateControlFlowSwitchExpressionTransformer(BlockIdentifier trueBlock, BlockIdentifier falseBlock, java.util.Map<Op04StructuredStatement,StructuredExpressionYield> replacements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidadditionalHandling(StructuredStatement in)(package private) AssertRewriter.ControlFlowSwitchExpressionTransformer.BreakClassificationclassifyBreak(StructuredBreak in, StructuredScope scope)StructuredStatementtransform(StructuredStatement in, StructuredScope scope)
-
-
-
Field Detail
-
replacements
private java.util.Map<Op04StructuredStatement,StructuredExpressionYield> replacements
-
failed
protected boolean failed
-
totalStatements
int totalStatements
-
single
Expression single
-
trueFound
int trueFound
-
falseFound
int falseFound
-
trueBlock
private BlockIdentifier trueBlock
-
falseBlock
private BlockIdentifier falseBlock
-
-
Constructor Detail
-
ControlFlowSwitchExpressionTransformer
private ControlFlowSwitchExpressionTransformer(BlockIdentifier trueBlock, BlockIdentifier falseBlock, java.util.Map<Op04StructuredStatement,StructuredExpressionYield> replacements)
-
-
Method Detail
-
additionalHandling
void additionalHandling(StructuredStatement in)
-
transform
public StructuredStatement transform(StructuredStatement in, StructuredScope scope)
- Specified by:
transformin interfaceStructuredStatementTransformer
-
classifyBreak
AssertRewriter.ControlFlowSwitchExpressionTransformer.BreakClassification classifyBreak(StructuredBreak in, StructuredScope scope)
-
-