private JVVisibility toVisibility(AccessFlags obj) {
    int value = JVVisibility.DEFAULT;

    if (obj.isPublic()) {
      value = JVVisibility.PUBLIC;
    } else if (obj.isProtected()) {
      value = JVVisibility.PROTECTED;
    } else if (obj.isPrivate()) {
      value = JVVisibility.PRIVATE;
    }

    JVVisibility visib = JVVisibility.getInstance(value);
    return visib;
  }
Example #2
0
 public boolean isPackagePrivate() {
   AccessFlags af = getAccessFlagsObj();
   return (!af.isPublic() && !af.isPrivate() && !af.isProtected());
 }