Fork me on GitHub

DefinedTest

In package com.mitchellbosecke.pebble.extension.core

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.

Constructors

public DefinedTest()
Parameters:
  • No parameters

Methods

public boolean apply(Object input, Map<String, Object> args, PebbleTemplate self, EvaluationContext context, int lineNumber)
Parameters: