Modifier and Type | Method and Description |
---|---|
static Template |
Velocity.getTemplate(String name)
Returns a
Template from the Velocity
resource management system. |
Template |
VelocityEngine.getTemplate(String name)
Returns a
Template from the Velocity
resource management system. |
static Template |
Velocity.getTemplate(String name,
String encoding)
Returns a
Template from the Velocity
resource management system. |
Template |
VelocityEngine.getTemplate(String name,
String encoding)
Returns a
Template from the Velocity
resource management system. |
Modifier and Type | Method and Description |
---|---|
Template |
RuntimeInstance.getTemplate(String name)
Returns a
Template from the resource manager. |
Template |
RuntimeServices.getTemplate(String name)
Returns a
Template from the resource manager. |
static Template |
RuntimeSingleton.getTemplate(String name)
Returns a
Template from the resource manager. |
Template |
RuntimeInstance.getTemplate(String name,
String encoding)
Returns a
Template from the resource manager |
Template |
RuntimeServices.getTemplate(String name,
String encoding)
Returns a
Template from the resource manager |
static Template |
RuntimeSingleton.getTemplate(String name,
String encoding)
Returns a
Template from the resource manager |
Modifier and Type | Method and Description |
---|---|
boolean |
VelocimacroFactory.addVelocimacro(String name,
Node macroBody,
List<Macro.MacroArg> macroArgs,
Template definingTemplate)
Adds a macro to the factory.
|
boolean |
RuntimeInstance.addVelocimacro(String name,
Node macro,
List<Macro.MacroArg> macroArgs,
Template definingTemplate)
Adds a new Velocimacro.
|
boolean |
RuntimeServices.addVelocimacro(String name,
Node macro,
List<Macro.MacroArg> macroArgs,
Template definingTemplate)
Adds a new Velocimacro.
|
static boolean |
RuntimeSingleton.addVelocimacro(String name,
Node macro,
List<Macro.MacroArg> macroArgs,
Template definingTemplate)
Adds a new Velocimacro.
|
boolean |
VelocimacroManager.addVM(String vmName,
Node macroBody,
List<Macro.MacroArg> macroArgs,
Template definingTemplate,
boolean canReplaceGlobalMacro)
Adds a VM definition to the cache.
|
VelocimacroProxy |
VelocimacroManager.get(String vmName,
Template renderingTemplate,
Template template)
Gets a VelocimacroProxy object by the name / source template duple.
|
String |
VelocimacroManager.getLibraryName(String vmName,
Template template)
Return the library name for a given macro.
|
Directive |
VelocimacroFactory.getVelocimacro(String vmName,
Template renderingTemplate,
Template sourceTemplate)
actual factory: creates a Directive that will
behave correctly wrt getting the framework to
dig out the correct # of args
|
Directive |
RuntimeInstance.getVelocimacro(String vmName,
Template renderingTemplate,
Template template)
Returns the appropriate VelocimacroProxy object if vmName
is a valid current Velocimacro.
|
Directive |
RuntimeServices.getVelocimacro(String vmName,
Template renderingTemplate,
Template template)
Returns the appropriate VelocimacroProxy object if strVMname
is a valid current Velocimacro.
|
static Directive |
RuntimeSingleton.getVelocimacro(String vmName,
Template renderingTemplate,
Template template)
Returns the appropriate VelocimacroProxy object if strVMname
is a valid current Velocimacro.
|
boolean |
VelocimacroFactory.isVelocimacro(String vm,
Template template)
Tells the world if a given directive string is a Velocimacro
|
boolean |
RuntimeInstance.isVelocimacro(String vmName,
Template template)
Checks to see if a VM exists
|
boolean |
RuntimeServices.isVelocimacro(String vmName,
Template template)
Checks to see if a VM exists
|
static boolean |
RuntimeSingleton.isVelocimacro(String vmName,
Template template)
Checks to see if a VM exists
|
SimpleNode |
RuntimeInstance.parse(Reader reader,
Template template)
Parse the input and return the root of
AST node structure.
|
SimpleNode |
RuntimeServices.parse(Reader reader,
Template template)
Parse the input and return the root of
AST node structure.
|
static SimpleNode |
RuntimeSingleton.parse(Reader reader,
Template template)
Parse the input and return the root of
AST node structure.
|
Modifier and Type | Method and Description |
---|---|
Template |
Directive.getTemplate()
returns the template in which this directive appears
|
Modifier and Type | Method and Description |
---|---|
void |
Directive.setLocation(int line,
int column,
Template template)
Allows the template location to be set.
|
Modifier and Type | Field and Description |
---|---|
Template |
StandardParser.currentTemplate
Current template we are parsing.
|
Modifier and Type | Method and Description |
---|---|
Template |
StandardParser.getCurrentTemplate() |
Template |
Parser.getCurrentTemplate() |
Modifier and Type | Method and Description |
---|---|
SimpleNode |
StandardParser.parse(Reader reader,
Template template)
This was also added to allow parsers to be
re-usable.
|
SimpleNode |
Parser.parse(Reader reader,
Template template) |
Modifier and Type | Field and Description |
---|---|
protected Template |
SimpleNode.template |
Modifier and Type | Method and Description |
---|---|
Template |
SimpleNode.getTemplate() |
Template |
Node.getTemplate() |
Modifier and Type | Field and Description |
---|---|
protected Template |
VelocityCompiledScript.template |
Constructor and Description |
---|
VelocityCompiledScript(VelocityScriptEngine e,
Template t) |
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.