Package com.hubspot.jinjava.lib.filter
Class MapFilter
- java.lang.Object
-
- com.hubspot.jinjava.lib.filter.MapFilter
-
- All Implemented Interfaces:
AdvancedFilter
,Filter
,Importable
public class MapFilter extends Object implements AdvancedFilter
-
-
Constructor Summary
Constructors Constructor Description MapFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
filter(Object var, JinjavaInterpreter interpreter, Object[] args, Map<String,Object> kwargs)
Filter the specified template variable within the context of a render process.String
getName()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hubspot.jinjava.lib.filter.AdvancedFilter
filter
-
Methods inherited from interface com.hubspot.jinjava.lib.filter.Filter
filter, preserveSafeString
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceImportable
-
filter
public Object filter(Object var, JinjavaInterpreter interpreter, Object[] args, Map<String,Object> kwargs)
Description copied from interface:AdvancedFilter
Filter the specified template variable within the context of a render process. {{ myvar|myfiltername(arg1,arg2) }}- Specified by:
filter
in interfaceAdvancedFilter
- Specified by:
filter
in interfaceFilter
- Parameters:
var
- the variable which this filter should operate oninterpreter
- current interpreter contextargs
- any positional arguments passed to this filter invocationkwargs
- any named arguments passed to this filter invocation- Returns:
- the filtered form of the given variable
-
-