Class FieldTemplate.notNullCheck

java.lang.Object
de.japkit.test.members.field.FieldTemplate.notNullCheck
Enclosing class:
FieldTemplate

@CodeFragment(condFun=hasNotNull.class)
class FieldTemplate.notNullCheck
extends java.lang.Object
This will generate a statement that checks for null, if the given source element has the NotNull annotation.
  • japkit.code
     if (#{name} == null) { 
            throw new IllegalArgumentException("#{name} must not be null.");
     }
     
  • Constructor Summary

    Constructors 
    Constructor Description
    notNullCheck()  
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait