Class MVELHelper
java.lang.Object
com.espertech.esper.common.internal.epl.script.mvel.MVELHelper
=============
Without MVEL dependencies in classpath, this call verifies and compiles an MVEL script.
=============
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionScriptCompiled
compile
(String scriptName, String expression, Map<String, Class> mvelInputParamTypes, ClasspathImportService classpathImportService) static void
verifyScript
(ExpressionScriptProvided script, ClasspathImportService classpathImportService) Verify MVEL script (not compiling it).
-
Constructor Details
-
MVELHelper
public MVELHelper()
-
-
Method Details
-
verifyScript
public static void verifyScript(ExpressionScriptProvided script, ClasspathImportService classpathImportService) throws ExprValidationException Verify MVEL script (not compiling it). Compiling is done by the first expression node using the expression since only then parameter types can be bound.- Parameters:
script
- to verify/analyzeclasspathImportService
- imports- Throws:
ExprValidationException
- when not all parameters are resolved
-
compile
public static ExpressionScriptCompiled compile(String scriptName, String expression, Map<String, Class> mvelInputParamTypes, ClasspathImportService classpathImportService) throws ExprValidationException- Throws:
ExprValidationException
-