if (entries != null) { for (int i = 0; i < entries.size(); i++) { entries.set(i, (EnumConstantDeclaration) entries.get(i).accept(this, arg));
for (Iterator<EnumConstantDeclaration> i = n.getEntries().iterator(); i.hasNext();) { EnumConstantDeclaration e = i.next(); e.accept(this, arg); if (i.hasNext()) { printer.print(", ");
for (final Iterator<EnumConstantDeclaration> i = n.getEntries().iterator(); i.hasNext();) { final EnumConstantDeclaration e = i.next(); e.accept(this, arg); if (i.hasNext()) { printer.print(", ");
@Override public void visit(final EnumDeclaration n, final A arg) { visitComment(n.getComment(), arg); if (n.getJavaDoc() != null) { n.getJavaDoc().accept(this, arg); } if (n.getAnnotations() != null) { for (final AnnotationExpr a : n.getAnnotations()) { a.accept(this, arg); } } if (n.getImplements() != null) { for (final ClassOrInterfaceType c : n.getImplements()) { c.accept(this, arg); } } if (n.getEntries() != null) { for (final EnumConstantDeclaration e : n.getEntries()) { e.accept(this, arg); } } if (n.getMembers() != null) { for (final BodyDeclaration member : n.getMembers()) { member.accept(this, arg); } } }
for (final EnumConstantDeclaration e : n.getEntries()) { R result = e.accept(this, arg); if (result != null) { return result;