public class VelocityScriptEngineFactory extends Object implements ScriptEngineFactory
| Constructor and Description |
|---|
VelocityScriptEngineFactory() |
| Modifier and Type | Method and Description |
|---|---|
String |
getEngineName()
get engine name
|
String |
getEngineVersion()
get engine version
|
List<String> |
getExtensions()
get the list of file extensions handled by Velocity: vm, vtl, vhtml
|
String |
getLanguageName()
get language name
|
String |
getLanguageVersion()
get language version (same as engine version)
|
String |
getMethodCallSyntax(String obj,
String m,
String... args)
get Velocity syntax for calling method 'm' on object 'obj' with provided arguments
|
List<String> |
getMimeTypes()
get the list of Velocity mime types
|
List<String> |
getNames()
get the list of names
|
String |
getOutputStatement(String toDisplay)
get VTL expression used to display specified string
|
String |
getParameter(String key)
get engine parameter for provided key
|
String |
getProgram(String... statements)
get whole VTL program given VTL lines
|
ScriptEngine |
getScriptEngine()
get a Velocity script engine
|
public String getEngineName()
getEngineName in interface ScriptEngineFactorypublic String getEngineVersion()
getEngineVersion in interface ScriptEngineFactorypublic List<String> getExtensions()
getExtensions in interface ScriptEngineFactorypublic String getLanguageName()
getLanguageName in interface ScriptEngineFactorypublic String getLanguageVersion()
getLanguageVersion in interface ScriptEngineFactorypublic String getMethodCallSyntax(String obj, String m, String... args)
getMethodCallSyntax in interface ScriptEngineFactoryobj - m - args - public List<String> getMimeTypes()
getMimeTypes in interface ScriptEngineFactorypublic List<String> getNames()
getNames in interface ScriptEngineFactorypublic String getOutputStatement(String toDisplay)
getOutputStatement in interface ScriptEngineFactorytoDisplay - public String getParameter(String key)
getParameter in interface ScriptEngineFactorykey - public String getProgram(String... statements)
getProgram in interface ScriptEngineFactorystatements - VTL linespublic ScriptEngine getScriptEngine()
getScriptEngine in interface ScriptEngineFactoryCopyright © 2000–2021 The Apache Software Foundation. All rights reserved.