Class SecondaryFunctionsHelper


  • public final class SecondaryFunctionsHelper
    extends java.lang.Object
    • Constructor Detail

      • SecondaryFunctionsHelper

        public SecondaryFunctionsHelper()
    • Method Detail

      • identifySecondaryFunctions

        public static boolean identifySecondaryFunctions​(Statement stat,
                                                         VarProcessor varProc)
      • propagateBoolNot

        public static Exprent propagateBoolNot​(Exprent exprent)
      • 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