Class SwitchMapAnalyzer
- java.lang.Object
-
- com.tonic.analysis.source.recovery.SwitchMapAnalyzer
-
public class SwitchMapAnalyzer extends Object
Recovers the enum constant behind each ordinal in a javac $SwitchMap holder class by reading its static initializer.
-
-
Constructor Summary
Constructors Constructor Description SwitchMapAnalyzer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidanalyzeClass(String holderClass, List<FieldEntry> fields, List<IRMethod> methods)Finds the class's $SwitchMap fields and analyzes its static initializer to key them, doing nothing when the class declares none.
-
-
-
Method Detail
-
analyzeClass
public static void analyzeClass(String holderClass, List<FieldEntry> fields, List<IRMethod> methods)
Finds the class's $SwitchMap fields and analyzes its static initializer to key them, doing nothing when the class declares none.- Parameters:
holderClass- the internal name of the class declaring the switch map fieldsfields- the class's declared fieldsmethods- the class's methods in IR form
-
-