Class PreprocessPhase

java.lang.Object
org.drools.mvelcompiler.PreprocessPhase

public class PreprocessPhase extends 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 Details

    • PreprocessPhase

      public PreprocessPhase()
  • Method Details

    • 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)