Class SecondaryFunctionsHelper
- java.lang.Object
-
- org.jetbrains.java.decompiler.modules.decompiler.SecondaryFunctionsHelper
-
public final class SecondaryFunctionsHelper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SecondaryFunctionsHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanidentifySecondaryFunctions(Statement stat, VarProcessor varProc)static ExprentpropagateBoolNot(Exprent exprent)static booleanupdateAssignments(Statement stat)Simplifies assignment exprents that can be represented as a compound assignment.
-
-
-
Method Detail
-
identifySecondaryFunctions
public static boolean identifySecondaryFunctions(Statement stat, VarProcessor varProc)
-
updateAssignments
public static boolean updateAssignments(Statement stat)
Simplifies assignment exprents that can be represented as a compound assignment. Example: "a = a + b" becomes "a += b" Iterates recursively through every statement within the statement and all assignments possible. See: JLS-15.26.2- Parameters:
stat- The provided statement
-
-