public void setMethods(List<AutoBeanMethod> methods) { toReturn.methods = new ArrayList<AutoBeanMethod>(methods); Collections.sort(toReturn.methods, new Comparator<AutoBeanMethod>() { public int compare(AutoBeanMethod o1, AutoBeanMethod o2) { int c = o1.getAction().compareTo(o2.getAction()); if (c != 0) { return c; } // Name alone would cause overload conflicts return o1.getMethod().getReadableDeclaration().compareTo( o2.getMethod().getReadableDeclaration()); } }); toReturn.methods = Collections.unmodifiableList(toReturn.methods); toReturn.simpleBean = true; for (AutoBeanMethod method : methods) { if (method.getAction().equals(JBeanMethod.CALL)) { if (method.getStaticImpl() == null) { toReturn.simpleBean = false; } else { affectedByCategories = true; } } } }
public void setMethods(List<AutoBeanMethod> methods) { toReturn.methods = new ArrayList<AutoBeanMethod>(methods); Collections.sort(toReturn.methods, new Comparator<AutoBeanMethod>() { public int compare(AutoBeanMethod o1, AutoBeanMethod o2) { int c = o1.getAction().compareTo(o2.getAction()); if (c != 0) { return c; } // Name alone would cause overload conflicts return o1.getMethod().getReadableDeclaration().compareTo( o2.getMethod().getReadableDeclaration()); } }); toReturn.methods = Collections.unmodifiableList(toReturn.methods); toReturn.simpleBean = true; for (AutoBeanMethod method : methods) { if (method.getAction().equals(JBeanMethod.CALL)) { if (method.getStaticImpl() == null) { toReturn.simpleBean = false; } else { affectedByCategories = true; } } } }
for (AutoBeanMethod missing : autoBeanType.getMethods()) { if (missing.getAction().equals(JBeanMethod.CALL) && missing.getStaticImpl() == null) { poison(missing.getMethod().getReadableDeclaration());
for (AutoBeanMethod missing : autoBeanType.getMethods()) { if (missing.getAction().equals(JBeanMethod.CALL) && missing.getStaticImpl() == null) { poison(missing.getMethod().getReadableDeclaration());
JMethod staticImpl = method.getStaticImpl(); if (!returnType.equals(JPrimitiveType.VOID)) { sw.print("return ");
JMethod staticImpl = method.getStaticImpl(); if (!returnType.equals(JPrimitiveType.VOID)) { sw.print("return ");