Interface ScriptingLanguage

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ScriptingLanguage
Represents a Language which is a general purpose scripting languages such as groovy, joor and others.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    evaluate(String script, Map<String,Object> bindings, Class<T> resultType)
    Evaluates the script
  • Method Details

    • evaluate

      <T> T evaluate(String script, Map<String,Object> bindings, Class<T> resultType)
      Evaluates the script
      Parameters:
      script - the script
      bindings - optional bindings to use when evaluating the script
      resultType - the expected result type
      Returns:
      the result of the evaluation