Class PreprocessPhase


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

      Constructors 
      Constructor Description
      PreprocessPhase()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.drools.mvelcompiler.PreprocessPhase.PreprocessPhaseResult invoke​(com.github.javaparser.ast.stmt.Statement statement)  
      void removeEmptyStmt​(com.github.javaparser.ast.stmt.BlockStmt blockStmt)  
      com.github.javaparser.ast.expr.StringLiteralExpr replaceTextBlockWithConcatenatedStrings​(com.github.javaparser.ast.expr.TextBlockLiteralExpr textBlockLiteralExpr)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PreprocessPhase

        public PreprocessPhase()
    • 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)
      • replaceTextBlockWithConcatenatedStrings

        public com.github.javaparser.ast.expr.StringLiteralExpr replaceTextBlockWithConcatenatedStrings​(com.github.javaparser.ast.expr.TextBlockLiteralExpr textBlockLiteralExpr)