// "drools",
// KnowledgeHelper.class );
// }
context.setTypesafe( initCodeAnalysis.isTypesafe() );
MVELCompilationUnit initUnit = dialect.getMVELCompilationUnit( (String) accumDescr.getInitCode(),
initCodeAnalysis,
getUsedDeclarations( decls,
initCodeAnalysis ),
getUsedDeclarations( sourceOuterDeclr,
initCodeAnalysis ),
initCodeAnalysis.getMvelVariables(),
context,
"drools",
KnowledgeHelper.class );
context.setTypesafe( actionCodeAnalysis.isTypesafe() );
MVELCompilationUnit actionUnit = dialect.getMVELCompilationUnit( (String) accumDescr.getActionCode(),
actionCodeAnalysis,
getUsedDeclarations( decls,
actionCodeAnalysis ),
getUsedDeclarations( sourceOuterDeclr,
actionCodeAnalysis ),
initCodeAnalysis.getMvelVariables(),
context,
"drools",
KnowledgeHelper.class );
MVELCompilationUnit reverseUnit = null;
if ( accumDescr.getReverseCode() != null ) {
context.setTypesafe( actionCodeAnalysis.isTypesafe() );
reverseUnit = dialect.getMVELCompilationUnit( (String) accumDescr.getReverseCode(),
actionCodeAnalysis,
getUsedDeclarations( decls,
actionCodeAnalysis ),
getUsedDeclarations( sourceOuterDeclr,
actionCodeAnalysis ),
initCodeAnalysis.getMvelVariables(),
context,
"drools",
KnowledgeHelper.class );
}
context.setTypesafe( resultCodeAnalysis.isTypesafe() );
MVELCompilationUnit resultUnit = dialect.getMVELCompilationUnit( (String) accumDescr.getResultCode(),
resultCodeAnalysis,
getUsedDeclarations( decls,
resultCodeAnalysis ),
getUsedDeclarations( sourceOuterDeclr,
resultCodeAnalysis ),