Class DefinedTest
- java.lang.Object
-
- io.pebbletemplates.pebble.extension.core.NullTest
-
- io.pebbletemplates.pebble.extension.core.DefinedTest
-
- All Implemented Interfaces:
NamedArguments
,Test
public class DefinedTest extends NullTest
Implementation for the test function 'defined'. Inversion of 'null' test function to provide better compatibility with the original twig version and JTwig.
-
-
Constructor Summary
Constructors Constructor Description DefinedTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
apply(java.lang.Object input, java.util.Map<java.lang.String,java.lang.Object> args, PebbleTemplate self, EvaluationContext context, int lineNumber)
-
Methods inherited from class io.pebbletemplates.pebble.extension.core.NullTest
getArgumentNames
-
-
-
-
Method Detail
-
apply
public boolean apply(java.lang.Object input, java.util.Map<java.lang.String,java.lang.Object> args, PebbleTemplate self, EvaluationContext context, int lineNumber)
-
-