private void updateGetterSetterJavaDoc(JDefinedClass jclass, List<String> requiredFieldMethods) { for (Iterator<JMethod> methods = jclass.methods().iterator(); methods.hasNext();) { JMethod method = methods.next(); if (requiredFieldMethods.contains(method.name())) { addJavaDoc(method); } } }
private void addOverrideBuilders(JDefinedClass jclass, JDefinedClass parentJclass) { if (parentJclass == null) { return; } for (JMethod parentJMethod : parentJclass.methods()) { if (parentJMethod.name().startsWith("with") && parentJMethod.params().size() == 1) { addOverrideBuilder(jclass, parentJMethod, parentJMethod.params().get(0)); } } }
processMethodCollectionForSerializableSupport(jclass.methods().iterator(), dataOutputStream); processMethodCollectionForSerializableSupport(jclass.constructors(), dataOutputStream);
public static JMethod getMethod(final JDefinedClass theClass, final String name) { for (JMethod method : theClass.methods()) { if (method.name().equals(name)) return method; } return null; }
protected boolean matches(JCodeModel codeModel, JDefinedClass jinterface, Method theMethod) { for (Iterator itr = jinterface.methods(); itr.hasNext();) { final JMethod m = (JMethod) itr.next(); if (matches(codeModel, m, theMethod)) return true; } return false; }
public static JMethod getMethod(final JDefinedClass theClass, final String name) { for (Iterator iterator = theClass.methods(); iterator.hasNext();) { final JMethod method = (JMethod) iterator.next(); if (method.name().equals(name)) return method; } return null; }
public static JMethod getMethod(final JDefinedClass theClass, final String name) { for (JMethod method : theClass.methods()) { if (method.name().equals(name)) return method; } return null; }
public static JMethod getMethod(final JDefinedClass theClass, final String name) { for (JMethod method : theClass.methods()) { if (method.name().equals(name)) return method; } return null; }
private void removeCloneableMethod(ClassOutline classOutline) { JDefinedClass impl = classOutline.implClass; Iterator<JMethod> methods = impl.methods().iterator(); while (methods.hasNext()) { JMethod method = methods.next(); if ("clone".equals(method.name()) && method.hasSignature(new JType[]{})) { methods.remove(); } } }
private void updateGetterSetterJavaDoc(JDefinedClass jclass, List<String> requiredFieldMethods) { for (Iterator<JMethod> methods = jclass.methods().iterator(); methods.hasNext();) { JMethod method = methods.next(); if (requiredFieldMethods.contains(method.name())) { addJavaDoc(method); } } }
private JMethod findMethod(JDefinedClass definedClass, String methodName) { for (JMethod method : definedClass.methods()) { if (method.name().equals(methodName)) { return method; } } throw new IllegalArgumentException("Couldn't find method '" + methodName + "' in defined class '" + definedClass.name() + "'"); }
/** * Adds "synchoronized" to all the methods. */ private void augument(ClassOutline co) { for (JMethod m : co.implClass.methods()) m.getMods().setSynchronized(true); }
/** * Adds "synchoronized" to all the methods. */ private void augument(ClassOutline co) { for (JMethod m : co.implClass.methods()) m.getMods().setSynchronized(true); }
/** * Adds "synchoronized" to all the methods. */ private void augument(ClassOutline co) { for (JMethod m : co.implClass.methods()) m.getMods().setSynchronized(true); }
/** * Adds "synchoronized" to all the methods. */ private void augument(ClassOutline co) { for (JMethod m : co.implClass.methods()) m.getMods().setSynchronized(true); }
private void addOverrideBuilders(JDefinedClass jclass, JDefinedClass parentJclass) { if (parentJclass == null) { return; } for (JMethod parentJMethod : parentJclass.methods()) { if (parentJMethod.name().startsWith("with") && parentJMethod.params().size() == 1) { addOverrideBuilder(jclass, parentJMethod, parentJMethod.params().get(0)); } } }
/** * Adds "@Generated" to the classes, methods, and fields. */ private void augument(ClassOutline co) { annotate(co.implClass); for (JMethod m : co.implClass.methods()) annotate(m); for (JFieldVar f : co.implClass.fields().values()) annotate(f); }
/** * Adds "@Generated" to the classes, methods, and fields. */ private void augument(ClassOutline co) { annotate(co.implClass); for (JMethod m : co.implClass.methods()) annotate(m); for (JFieldVar f : co.implClass.fields().values()) annotate(f); }
/** * Adds "@Generated" to the classes, methods, and fields. */ private void augument(ClassOutline co) { annotate(co.implClass); for (JMethod m : co.implClass.methods()) annotate(m); for (JFieldVar f : co.implClass.fields().values()) annotate(f); }
/** * Adds "@Generated" to the classes, methods, and fields. */ private void augument(ClassOutline co) { annotate(co.implClass); for (JMethod m : co.implClass.methods()) annotate(m); for (JFieldVar f : co.implClass.fields().values()) annotate(f); }