/* (non-Javadoc) * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.EnumDeclaration) */ public boolean visit(EnumDeclaration node) { if (isPrivate(node.getModifiers())) { return false; } enterType(node.getName()); return isContinue(); }
@Override public boolean visit(EnumDeclaration node) { int flags = node.getModifiers(); if (Modifier.isPublic(flags)) { clazz.setVisibility(Visibility.PUBLIC); } else { clazz.setVisibility(Visibility.PACKAGE_PRIVATE); } clazz.setEnum(true); for (Object constant : node.enumConstants()) { fields.add(new OutlineField(constant.toString(), clazz)); } clazz.checkVisibility(flags); clazz.setImg(); return super.visit(node); }
/* (non-Javadoc) * @see org.eclipse.jdt.core.dom.ASTVisitor#endVisit(org.eclipse.jdt.core.dom.EnumDeclaration) */ public void endVisit(EnumDeclaration node) { if (!isPrivate(node.getModifiers())) { exitType(); } }