private void appendTerminator() { Validate.isTrue(indentLevel == 1, "Indent level must be 1 (not %d) to conclude", indentLevel); indentRemove(); // Ensure we present the content flag, as it will be set true during the // formal line append final boolean contentBefore = content; appendFormalLine("}"); content = contentBefore; }
indentRemove(); appendFormalLine("}"); this.newLine(false);
private void appendTerminator() { Validate.isTrue(indentLevel == 1, "Indent level must be 1 (not %d) to conclude", indentLevel); indentRemove(); // Ensure we present the content flag, as it will be set true during the // formal line append final boolean contentBefore = content; appendFormalLine("}"); content = contentBefore; }
writeInnerTypeConstructors(innerType.getName(), innerType.getDeclaredConstructors(), false, false); indentRemove(); indentRemove();
private void writeInnerTypeFields(final ClassOrInterfaceTypeDetails innerType) { for (final FieldMetadata field : innerType.getDeclaredFields()) { indent(); this.newLine(false); // Append annotations for (final AnnotationMetadata annotation : field.getAnnotations()) { appendIndent(); outputAnnotation(annotation); this.newLine(false); } appendIndent(); if (field.getModifier() != 0) { append(Modifier.toString(field.getModifier())); append(" "); } append(field.getFieldType().getNameIncludingTypeParameters(false, resolver)); append(" "); append(field.getFieldName().getSymbolName()); // Append initializer, if present if (field.getFieldInitializer() != null) { append(" = "); append(field.getFieldInitializer()); } // Complete the field declaration append(";"); this.newLine(false); indentRemove(); } }
indentRemove(); appendFormalLine("}"); this.newLine(false);
writeInnerTypeConstructors(innerType.getName(), innerType.getDeclaredConstructors(), false, false); indentRemove(); indentRemove();
private void writeInnerTypeFields(final ClassOrInterfaceTypeDetails innerType) { for (final FieldMetadata field : innerType.getDeclaredFields()) { indent(); this.newLine(false); // Append annotations for (final AnnotationMetadata annotation : field.getAnnotations()) { appendIndent(); outputAnnotation(annotation); this.newLine(false); } appendIndent(); if (field.getModifier() != 0) { append(Modifier.toString(field.getModifier())); append(" "); } append(field.getFieldType().getNameIncludingTypeParameters(false, resolver)); append(" "); append(field.getFieldName().getSymbolName()); // Append initializer, if present if (field.getFieldInitializer() != null) { append(" = "); append(field.getFieldInitializer()); } // Complete the field declaration append(";"); this.newLine(false); indentRemove(); } }