MCPcopy Index your code
hub / github.com/codelibs/fess / ScriptEngine

Interface ScriptEngine

src/main/java/org/codelibs/fess/script/ScriptEngine.java:25–37  ·  view source on GitHub ↗

Interface for script engines that can evaluate templates with parameters. This interface provides a contract for different script engine implementations to process template strings with parameter substitution.

Source from the content-addressed store, hash-verified

23 * to process template strings with parameter substitution.
24 */
25public interface ScriptEngine {
26
27 /**
28 * Evaluates a template string with the provided parameter map.
29 * The template is processed using the script engine's templating mechanism,
30 * with parameters from the paramMap substituted into the template.
31 *
32 * @param template the template string to evaluate
33 * @param paramMap the map of parameters to substitute into the template
34 * @return the result of evaluating the template, or null if evaluation fails
35 */
36 Object evaluate(final String template, final Map<String, Object> paramMap);
37}

Implementers 15

TestScriptEnginesrc/test/java/org/codelibs/fess/script
ObjectReturningScriptEnginesrc/test/java/org/codelibs/fess/script
ErrorHandlingScriptEnginesrc/test/java/org/codelibs/fess/script
TestScriptEnginesrc/test/java/org/codelibs/fess/script
CustomScriptEnginesrc/test/java/org/codelibs/fess/script
VeryLongClassNameScriptEngineImplementationsrc/test/java/org/codelibs/fess/script
TestScriptEnginesrc/test/java/org/codelibs/fess/job/im
AbstractScriptEnginesrc/main/java/org/codelibs/fess/script
AbstractDataStoreTestsrc/test/java/org/codelibs/fess/ds/Abs
DocBoostMatcherTestsrc/test/java/org/codelibs/fess/indexe
QueryRescorerTestsrc/test/java/org/codelibs/fess/score/
ScriptExecutorTestsrc/test/java/org/codelibs/fess/job/im

Calls

no outgoing calls

Tested by

no test coverage detected