convertFieldIntoParameter(name, transformation, model);
}
private void convertFieldIntoParameter(String name, ClassTransformation transformation, MutableComponentModel model)
{
Parameter annotation = transformation.getFieldAnnotation(name, Parameter.class);
String parameterName = getParameterName(name, annotation.name());
model.addParameter(parameterName, annotation.required(), annotation.allowNull(), annotation.defaultPrefix());
String type = transformation.getFieldType(name);
boolean cache = annotation.cache();
String cachedFieldName = transformation.addField(Modifier.PRIVATE, "boolean", name + "_cached");
String resourcesFieldName = transformation.getResourcesFieldName();
String invariantFieldName = addParameterSetup(name, annotation.defaultPrefix(), annotation.value(),
parameterName, cachedFieldName, cache, type, resourcesFieldName,
transformation);
addReaderMethod(name, cachedFieldName, invariantFieldName, cache, parameterName, type, resourcesFieldName,
transformation);