public boolean isPublic() {
return realMember.isPublic();
}
-
- public boolean isProtected() {
- return realMember.isProtected();
- }
public boolean isDefault() {
return realMember.isDefault();
if (signaturesOfMember.getKind() == Member.FIELD) {
return false;
}
- if (signaturesOfMember.isStatic()) {
+ if (Modifier.isStatic(signaturesOfMember.getModifiers())) {
return false;
}
return true;
public interface Member extends Comparable {
public static final Member[] NONE = new Member[0];
+
public static final MemberKind METHOD = new MemberKind("METHOD", 1);
public static final MemberKind FIELD = new MemberKind("FIELD", 2);
public static final MemberKind CONSTRUCTOR = new MemberKind("CONSTRUCTOR", 3);
// this is wrong if the member doesn't exist, but that doesn't
// matter
ret.add(myType);
- } else if (isStatic() || kind == FIELD) {
+ } else if (Modifier.isStatic(modifiers) || kind == FIELD) {
walkUpStatic(ret, myType);
} else {
walkUp(ret, myType);
public boolean isPublic();
- public boolean isProtected();
-
public boolean isDefault();
public boolean isVisible(ResolvedType fromType);
if (aMember.getKind() == Member.FIELD) {
return false;
}
- if (aMember.isStatic()) {
+ if (Modifier.isStatic(aMember.getModifiers())) {
return false;
}
return true;
return Modifier.isPublic(modifiers);
}
- public boolean isProtected() {
- return Modifier.isProtected(modifiers);
- }
-
public boolean isDefault() {
int mods = getModifiers();
return !(Modifier.isPublic(mods) || Modifier.isProtected(mods) || Modifier.isPrivate(mods));