Class 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefinedTest

        public DefinedTest()
    • Method Detail