public class VelocimacroFactory extends Object
Constructor and Description |
---|
VelocimacroFactory(RuntimeServices rsvc)
C'tor for the VelociMacro factory.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addVelocimacro(String name,
Node macroBody,
String[] argArray,
String sourceTemplate)
Adds a macro to the factory.
|
boolean |
addVelocimacro(String name,
String macroBody,
String[] argArray,
String sourceTemplate)
Adds a macro to the factory.
|
boolean |
dumpVMNamespace(String namespace)
tells the vmManager to dump the specified namespace
|
Directive |
getVelocimacro(String vmName,
String sourceTemplate)
actual factory : creates a Directive that will
behave correctly wrt getting the framework to
dig out the correct # of args
|
Directive |
getVelocimacro(String vmName,
String sourceTemplate,
String renderingTemplate) |
void |
initVelocimacro()
initialize the factory - setup all permissions
load all global libraries.
|
boolean |
isVelocimacro(String vm,
String sourceTemplate)
Tells the world if a given directive string is a Velocimacro
|
public VelocimacroFactory(RuntimeServices rsvc)
rsvc
- Reference to a runtime services object.public void initVelocimacro()
public boolean addVelocimacro(String name, String macroBody, String[] argArray, String sourceTemplate)
name
- Name of the Macro to add.macroBody
- String representation of the macro.argArray
- Macro arguments. First element is the macro name.sourceTemplate
- Source template from which the macro gets registered.public boolean addVelocimacro(String name, Node macroBody, String[] argArray, String sourceTemplate)
name
- Name of the Macro to add.macroBody
- root node of the parsed macro ASTargArray
- Name of the macro arguments. First element is the macro name.sourceTemplate
- Source template from which the macro gets registered.public boolean isVelocimacro(String vm, String sourceTemplate)
vm
- Name of the Macro.sourceTemplate
- Source template from which the macro should be loaded.public Directive getVelocimacro(String vmName, String sourceTemplate)
vmName
- Name of the Macro.sourceTemplate
- Source template from which the macro should be loaded.public Directive getVelocimacro(String vmName, String sourceTemplate, String renderingTemplate)
public boolean dumpVMNamespace(String namespace)
namespace
- Namespace to dump.Copyright © 2000–2016. All rights reserved.