Class RangeFunction
java.lang.Object
io.pebbletemplates.pebble.extension.core.RangeFunction
- All Implemented Interfaces:
Function,NamedArguments
Range function to iterate over long or a string with a length of 1.
- Author:
- Eric Bussieres
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(Map<String, Object> args, PebbleTemplate self, EvaluationContext context, int lineNumber)
-
Field Details
-
FUNCTION_NAME
- See Also:
-
-
Constructor Details
-
RangeFunction
public RangeFunction()
-
-
Method Details
-
execute
public Object execute(Map<String, Object> args, PebbleTemplate self, EvaluationContext context, int lineNumber) throws PebbleException- Specified by:
executein interfaceFunction- Throws:
PebbleException
-
getArgumentNames
- Specified by:
getArgumentNamesin interfaceNamedArguments
-