Esempio n. 1
0
  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());
   }
 }
Esempio n. 3
0
 private boolean isRedefined(FieldDeclaration field) {
   return _localType.getFields().contains(field.getName());
 }