private String defaultValue() { return whenAbsentAnnotation.get() .stringValue("value") .get(); }
static IntegerFormatMethod whenZero(Property property, AnnotationInfo fieldAnnotation, AnnotationInfo whenZero) { int value = 0; String text = whenZero.stringValue("value").get(); return new IntegerFormatMethodConditional(property, fieldAnnotation, ComparisonOperator.EQ, value, text); }
static DecimalFormatMethod whenZero(Property property, AnnotationInfo fieldAnnotation, AnnotationInfo whenZero) { double value = 0d; String text = whenZero.stringValue("value").get(); return new DecimalFormatMethodConditional(property, fieldAnnotation, ComparisonOperator.EQ, value, text); }
private Artifact generate(Class<?> generator, Iterable<Plugin> pluginList, TypeInfo typeInfo) { PojoArtifactGenerator artifactGenerator = new PojoArtifactGenerator(typeInfo) .generatedBy(generator) .classNamePrefix(annotationInfo.stringValue("classNamePrefix", classNamePrefix())) .addAnnotations(annotations()) .addInterfaces(interfaces()) .skipConstructorValidation(); return configure(artifactGenerator).generateWith(pluginList); }