org.apache.velocity.runtime.directive
public class Macro extends Directive
Version: $Id: Macro.java,v 1.16.4.1 2004/03/03 23:22:56 geirm Exp $
Field Summary | |
---|---|
static boolean | debugMode |
Method Summary | |
---|---|
static String[] | getArgArray(Node node)
creates an array containing the literal
strings in the macro arguement |
static List | getASTAsStringArray(Node rootNode)
Returns an array of the literal rep of the AST |
String | getName()
Return name of this directive. |
int | getType()
Return type of this directive. |
void | init(RuntimeServices rs, InternalContextAdapter context, Node node) |
static void | processAndRegister(RuntimeServices rs, Node node, String sourceTemplate)
Used by Parser.java to process VMs withing the parsing process
processAndRegister() doesn't actually render the macro to the output
Processes the macro body into the internal representation used by the
VelocimacroProxy objects, and if not currently used, adds it
to the macro Factory |
boolean | render(InternalContextAdapter context, Writer writer, Node node)
render() doesn't do anything in the final output rendering.
|