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 classprivate static classprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BytecodeMetaprivate final ClassFileVersionprivate final Options -
Constructor Summary
ConstructorsConstructorDescriptionSwitchStringRewriter(Options options, ClassFileVersion classFileVersion, BytecodeMeta bytecodeMeta) -
Method Summary
Modifier and TypeMethodDescriptionprivate static IntegergetInt(Expression e) private static Stringprivate static booleanisLVOk(Expression lve, LValue lv, StructuredStatement assign) voidprivate voidrewriteComplex(List<StructuredStatement> structuredStatements) private voidrewriteEmpty(List<StructuredStatement> structuredStatements) private StructuredSwitchrewriteSwitch(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:
rewritein interfaceOp04Rewriter
-
rewriteEmpty
-
rewriteComplex
-
rewriteSwitch
private StructuredSwitch rewriteSwitch(StructuredSwitch original, SwitchStringRewriter.SwitchStringMatchResultCollector matchResultCollector) -
isLVOk
-
getString
-
getInt
-