Class Macro
java.lang.Object
com.google.auto.value.processor.escapevelocity.Macro
A macro definition. Macros appear in templates using the syntax
#macro (m $x $y) ... #end
and each one produces an instance of this class. Evaluating a macro involves setting the
parameters (here {$x $y)} and evaluating the macro body. Macro arguments are call-by-name, which
means that we need to set each parameter variable to the node in the parse tree that corresponds
to it, and arrange for that node to be evaluated when the variable is actually referenced.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
The context for evaluation within macros. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
definitionLineNumber
private final int definitionLineNumber -
name
-
parameterNames
-
body
-
-
Constructor Details
-
Macro
-
-
Method Details
-
name
String name() -
parameterCount
int parameterCount() -
evaluate
-