public class Macro extends Directive
Modifier and Type | Field and Description |
---|---|
private static boolean |
debugMode |
BLOCK, LINE
Constructor and Description |
---|
Macro() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String[] |
getArgArray(Node node)
creates an array containing the literal
strings in the macro arguement
|
private static java.util.List |
getASTAsStringArray(Node rootNode)
Returns an array of the literal rep of the AST
|
java.lang.String |
getName()
Return name of this directive.
|
int |
getType()
Return type of this directive.
|
void |
init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
How this directive is to be initialized.
|
static void |
processAndRegister(RuntimeServices rs,
Node node,
java.lang.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,
java.io.Writer writer,
Node node)
render() doesn't do anything in the final output rendering.
|
getColumn, getLine, setLocation
public java.lang.String getName()
public int getType()
public boolean render(InternalContextAdapter context, java.io.Writer writer, Node node) throws java.io.IOException
public void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws java.lang.Exception
Directive
public static void processAndRegister(RuntimeServices rs, Node node, java.lang.String sourceTemplate) throws java.io.IOException, ParseException
java.io.IOException
ParseException
private static java.lang.String[] getArgArray(Node node)
private static java.util.List getASTAsStringArray(Node rootNode)
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.