String javaName = normalized;
String detypedName = javaName;
String listType = "";
// @Binding can override the detyped name
Binding bindingDeclaration = method.getAnnotation(Binding.class);
boolean skip = false;
boolean key = false;
boolean expr = false;
boolean writeUndefined = false;
if(bindingDeclaration!=null)
{
if(bindingDeclaration.detypedName()!= null && !bindingDeclaration.detypedName().equals(""))
detypedName = bindingDeclaration.detypedName();
else
detypedName = javaName;
listType = bindingDeclaration.listType();
skip = bindingDeclaration.skip();
key = bindingDeclaration.key();
expr = bindingDeclaration.expr();
writeUndefined = bindingDeclaration.writeUndefined();
}
BindingDeclaration decl = new BindingDeclaration(detypedName, javaName, listType, skip, beanTypeClass.getName());
decl.setJavaTypeName(method.getReturnType().getName());
decl.setKey(key);