Element element = node.getAccessor();
String type = node.getType().accept(new TypeResolver(), null);
Visibility visibility = node.getVisibility();
QualifiedName containerName = new QualifiedName(node.getContainer());
try
{
int hasGetter = 0;
if (node.getGetter() != null)
{
if (node.getGetter().getSimpleName().toString().startsWith("get"))
{
hasGetter = 1;
}
else
{
hasGetter = 2;
}
}
String setterName = name(node.getSetter());
String getterName = name(node.getGetter());
String fieldName = name(node.getField());
if (node.isDeprecated())
{
writer.line("@Deprecated");
}
writer.line("%s static final %s<%s,%s> %s = new %s(\"%s\", %s.class, %s, %s, %s);",
visibility.getKeyword(), Constants.SINGULAR, containerName.getQualified(), type, node.getHandle(),
Constants.SINGULAR, node.getName(), beans.peek().getName().getQualified(), fieldName, getterName,
setterName);
}
catch (IOException e)
{