private boolean isVisible(FieldDeclaration field) { boolean samePackage = isLocal(ASTHelper.getOutermostTypeDeclarationOf(field).getPackage()); if (samePackage && !field.getModifiers().isPrivate()) { return true; } if (field.getModifiers().isPublic() || field.getModifiers().isProtected()) { return true; } return false; }
public void visitFieldDeclaration(FieldDeclaration node) { if (node.getInitializer() != null) { // visit initializer visit(node.getInitializer()); } }
private boolean isRedefined(FieldDeclaration field) { return _localType.getFields().contains(field.getName()); }