Class PreprocessPhase


  • public class PreprocessPhase
    extends Object
    This phase transforms modify and with statements in valid Java code It's used both in the MVEL Compiler and also to preprocess Drools' Java consequences that use modify and with blocks.
    • Constructor Detail

      • PreprocessPhase

        public PreprocessPhase()
      • PreprocessPhase

        public PreprocessPhase​(boolean failOnEmptyRootScope)
    • Method Detail

      • invoke

        public org.drools.mvelcompiler.PreprocessPhase.PreprocessPhaseResult invoke​(com.github.javaparser.ast.stmt.Statement statement)
      • removeEmptyStmt

        public void removeEmptyStmt​(com.github.javaparser.ast.stmt.BlockStmt blockStmt)