private static final String CONSTRAINED_PROPERTIES_PROPERTY_NAME = "$constraints";
private static final String VALIDATE_METHOD_NAME = "validate";
public void injectValidateableCode(ClassNode classNode, boolean defaultNullable) {
ASTErrorsHelper errorsHelper = new ASTValidationErrorsHelper();
errorsHelper.injectErrorsCode(classNode);
addConstraintsField(classNode);
addStaticInitializer(classNode);
addGetConstraintsMethod(classNode, defaultNullable);
addValidateMethod(classNode);
}