Class SwitchStringRewriter
java.lang.Object
org.benf.cfr.reader.bytecode.analysis.opgraph.op4rewriters.SwitchStringRewriter
- All Implemented Interfaces:
Op04Rewriter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
private static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BytecodeMeta
private final ClassFileVersion
private final Options
-
Constructor Summary
ConstructorsConstructorDescriptionSwitchStringRewriter
(Options options, ClassFileVersion classFileVersion, BytecodeMeta bytecodeMeta) -
Method Summary
Modifier and TypeMethodDescriptionprivate static Integer
getInt
(Expression e) private static String
private static boolean
isLVOk
(Expression lve, LValue lv, StructuredStatement assign) void
private void
rewriteComplex
(List<StructuredStatement> structuredStatements) private void
rewriteEmpty
(List<StructuredStatement> structuredStatements) private StructuredSwitch
rewriteSwitch
(StructuredSwitch original, SwitchStringRewriter.SwitchStringMatchResultCollector matchResultCollector)
-
Field Details
-
options
-
classFileVersion
-
bytecodeMeta
-
-
Constructor Details
-
SwitchStringRewriter
public SwitchStringRewriter(Options options, ClassFileVersion classFileVersion, BytecodeMeta bytecodeMeta)
-
-
Method Details
-
rewrite
- Specified by:
rewrite
in interfaceOp04Rewriter
-
rewriteEmpty
-
rewriteComplex
-
rewriteSwitch
private StructuredSwitch rewriteSwitch(StructuredSwitch original, SwitchStringRewriter.SwitchStringMatchResultCollector matchResultCollector) -
isLVOk
-
getString
-
getInt
-