Package com.hubspot.jinjava.lib.filter
Class LengthFilter
- java.lang.Object
-
- com.hubspot.jinjava.lib.filter.LengthFilter
-
- All Implemented Interfaces:
Filter
,Importable
- Direct Known Subclasses:
CountFilter
public class LengthFilter extends Object implements Filter
-
-
Constructor Summary
Constructors Constructor Description LengthFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
filter(Object object, JinjavaInterpreter interpreter, String... arg)
Filter the specified template variable within the context of a render process.String
getName()
boolean
preserveSafeString()
-
-
-
Method Detail
-
filter
public Object filter(Object object, JinjavaInterpreter interpreter, String... arg)
Description copied from interface:Filter
Filter the specified template variable within the context of a render process. {{ myvar|myfiltername(arg1,arg2) }}
-
preserveSafeString
public boolean preserveSafeString()
- Specified by:
preserveSafeString
in interfaceFilter
-
getName
public String getName()
- Specified by:
getName
in interfaceImportable
-
-