org.jbpm.process.builder.dialect.mvel
Class MVELReturnValueEvaluatorBuilder

java.lang.Object
  extended by org.jbpm.process.builder.dialect.mvel.MVELReturnValueEvaluatorBuilder
All Implemented Interfaces:
ReturnValueEvaluatorBuilder

public class MVELReturnValueEvaluatorBuilder
extends Object
implements ReturnValueEvaluatorBuilder


Constructor Summary
MVELReturnValueEvaluatorBuilder()
           
 
Method Summary
 void build(org.drools.rule.builder.PackageBuildContext context, ReturnValueConstraintEvaluator constraintNode, org.drools.compiler.ReturnValueDescr descr, ContextResolver contextResolver)
           
static String delimitExpressions(String s)
          Allows newlines to demarcate expressions, as per MVEL command line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MVELReturnValueEvaluatorBuilder

public MVELReturnValueEvaluatorBuilder()
Method Detail

build

public void build(org.drools.rule.builder.PackageBuildContext context,
                  ReturnValueConstraintEvaluator constraintNode,
                  org.drools.compiler.ReturnValueDescr descr,
                  ContextResolver contextResolver)
Specified by:
build in interface ReturnValueEvaluatorBuilder

delimitExpressions

public static String delimitExpressions(String s)
Allows newlines to demarcate expressions, as per MVEL command line. If expression spans multiple lines (ie inside an unbalanced bracket) then it is left alone. Uses character based iteration which is at least an order of magnitude faster then a single simple regex.



Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.