Class DefinedTest
java.lang.Object
io.pebbletemplates.pebble.extension.core.NullTest
io.pebbletemplates.pebble.extension.core.DefinedTest
- All Implemented Interfaces:
NamedArguments
,Test
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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
apply
(Object input, Map<String, Object> args, PebbleTemplate self, EvaluationContext context, int lineNumber) Methods inherited from class io.pebbletemplates.pebble.extension.core.NullTest
getArgumentNames
-
Constructor Details
-
DefinedTest
public DefinedTest()
-
-
Method Details
-
apply
public boolean apply(Object input, Map<String, Object> args, PebbleTemplate self, EvaluationContext context, int lineNumber)
-