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.
-
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:
-
PARAM_END
- See Also:
-
PARAM_INCREMENT
- See Also:
-
PARAM_START
- See Also:
-
argumentNames
-
-
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:
execute
in interfaceFunction
- Throws:
PebbleException
-
getArgumentNames
- Specified by:
getArgumentNames
in interfaceNamedArguments
-