public String generateAllAnnotationsString(GenerationContext generationContext, HasAnnotations hasAnnotations) throws Exception { return generateAllAnnotationsString( generationContext, hasAnnotations, null ); }
/** * Generate the complete code fragment for a field (annotations + field declaration) */ public String generateCompleteFieldString(GenerationContext generationContext, ObjectProperty attribute, String indent) throws Exception { StringBuilder sb = new StringBuilder(); String annotationsString = generateAllAnnotationsString( generationContext, attribute ); if (annotationsString != null && !"".endsWith( annotationsString )) { sb.append( annotationsString ); sb.append( GenerationTools.EOL ); } sb.append( generateFieldString( generationContext, attribute ) ); return indentLines( sb.toString(), indent ); }