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 ScriptEngineFactory
public String getEngineVersion()
getEngineVersion
in interface ScriptEngineFactory
public List<String> getExtensions()
getExtensions
in interface ScriptEngineFactory
public String getLanguageName()
getLanguageName
in interface ScriptEngineFactory
public String getLanguageVersion()
getLanguageVersion
in interface ScriptEngineFactory
public String getMethodCallSyntax(String obj, String m, String... args)
getMethodCallSyntax
in interface ScriptEngineFactory
obj
- m
- args
- public List<String> getMimeTypes()
getMimeTypes
in interface ScriptEngineFactory
public List<String> getNames()
getNames
in interface ScriptEngineFactory
public String getOutputStatement(String toDisplay)
getOutputStatement
in interface ScriptEngineFactory
toDisplay
- public String getParameter(String key)
getParameter
in interface ScriptEngineFactory
key
- public String getProgram(String... statements)
getProgram
in interface ScriptEngineFactory
statements
- VTL linespublic ScriptEngine getScriptEngine()
getScriptEngine
in interface ScriptEngineFactory
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.