com.clickntap.tool.script
Interface ScriptEngine
- All Known Implementing Classes:
- FreemarkerScriptEngine, VelocityScriptEngine
public interface ScriptEngine
|
Method Summary |
String |
eval(Map<String,Object> ctx,
String templateName)
|
void |
eval(Map<String,Object> ctx,
String templateName,
OutputStream out)
|
boolean |
evalRule(Map<String,Object> context,
String templateName)
|
boolean |
evalRuleScript(Map<String,Object> context,
String rule)
|
String |
evalScript(Map<String,Object> ctx,
String script)
|
void |
evalScript(Map<String,Object> ctx,
String script,
OutputStream out)
|
eval
String eval(Map<String,Object> ctx,
String templateName)
throws Exception
- Throws:
Exception
evalScript
String evalScript(Map<String,Object> ctx,
String script)
throws Exception
- Throws:
Exception
eval
void eval(Map<String,Object> ctx,
String templateName,
OutputStream out)
throws Exception
- Throws:
Exception
evalScript
void evalScript(Map<String,Object> ctx,
String script,
OutputStream out)
throws Exception
- Throws:
Exception
evalRule
boolean evalRule(Map<String,Object> context,
String templateName)
throws Exception
- Throws:
Exception
evalRuleScript
boolean evalRuleScript(Map<String,Object> context,
String rule)
throws Exception
- Throws:
Exception
Copyright © 2014. All rights reserved.