public static boolean isFinal(IMember member) throws ModelException { if (isInterfaceOrAnnotationField(member)) return true; // if (isAnonymousType(member)) // return true; if (isEnumConstant(member)) return true; return Flags.isFinal(member.getFlags()); }
public static boolean isStatic(IMember member) throws ModelException { if (isNestedInterfaceOrAnnotation(member)) return true; if (member.getElementType() != IModelElement.METHOD && isInterfaceOrAnnotationMember(member)) return true; if (isEnumConstant(member)) return true; return Flags.isStatic(member.getFlags()); }
public static boolean isPublic(IMember member) throws ModelException { if (isInterfaceOrAnnotationMember(member)) return true; if (isEnumConstant(member)) return true; return Flags.isPublic(member.getFlags()); }
public static boolean isProtected(IMember member) throws ModelException { return Flags.isProtected(member.getFlags()); }
public static boolean isAbstract(IMember member) throws ModelException { if (isInterfaceOrAnnotationMethod(member)) return true; return Flags.isAbstract(member.getFlags()); }
public static boolean isAnnotation(IMember member) throws ModelException { return Flags.isAnnotation(member.getFlags()); }