|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.velocity.runtime.VelocimacroFactory
public class VelocimacroFactory
VelocimacroFactory.java manages the set of VMs in a running Velocity engine.
Constructor Summary | |
---|---|
VelocimacroFactory(RuntimeServices rs)
CTOR : requires a runtime services from now on |
Method Summary | |
---|---|
boolean |
addVelocimacro(String name,
String macroBody,
String[] argArray,
String sourceTemplate,
int line,
int column)
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 |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VelocimacroFactory(RuntimeServices rs)
Method Detail |
---|
public void initVelocimacro()
public boolean addVelocimacro(String name, String macroBody, String[] argArray, String sourceTemplate, int line, int column)
public boolean isVelocimacro(String vm, String sourceTemplate)
public Directive getVelocimacro(String vmName, String sourceTemplate)
public boolean dumpVMNamespace(String namespace)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |