Package com.hubspot.jinjava.lib.fn.eager
Class EagerMacroFunction
- java.lang.Object
-
- com.hubspot.jinjava.el.ext.AbstractCallableMethod
-
- com.hubspot.jinjava.lib.fn.eager.EagerMacroFunction
-
public class EagerMacroFunction extends AbstractCallableMethod
-
-
Field Summary
-
Fields inherited from class com.hubspot.jinjava.el.ext.AbstractCallableMethod
EVAL_METHOD
-
-
Constructor Summary
Constructors Constructor Description EagerMacroFunction(String fullName, MacroFunction macroFunction, JinjavaInterpreter interpreter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
doEvaluate(Map<String,Object> argMap, Map<String,Object> kwargMap, List<Object> varArgs)
String
getEndTag(JinjavaInterpreter interpreter)
String
getStartTag(JinjavaInterpreter interpreter)
String
reconstructImage()
Reconstruct the image of the macro function, @see MacroFunction#reconstructImage() This image, however, may be partially or fully resolved depending on the usage of the arguments, which are filled in as deferred values, and any values on this interpreter's context.-
Methods inherited from class com.hubspot.jinjava.el.ext.AbstractCallableMethod
evaluate, getArguments, getDefaults, getName
-
-
-
-
Constructor Detail
-
EagerMacroFunction
public EagerMacroFunction(String fullName, MacroFunction macroFunction, JinjavaInterpreter interpreter)
-
-
Method Detail
-
doEvaluate
public Object doEvaluate(Map<String,Object> argMap, Map<String,Object> kwargMap, List<Object> varArgs)
- Specified by:
doEvaluate
in classAbstractCallableMethod
-
getStartTag
public String getStartTag(JinjavaInterpreter interpreter)
-
getEndTag
public String getEndTag(JinjavaInterpreter interpreter)
-
reconstructImage
public String reconstructImage()
Reconstruct the image of the macro function, @see MacroFunction#reconstructImage() This image, however, may be partially or fully resolved depending on the usage of the arguments, which are filled in as deferred values, and any values on this interpreter's context.- Returns:
- An image of the macro function that's body is resolved as much as possible. This image allows for the macro function to be recreated during a later rendering pass.
-
-