public boolean isAccessible ( Map context , Object target , Member member , String propertyName ) { int modifiers = member . getModifiers ( ) ; boolean result = Modifier . isPublic ( modifiers ) ; if ( ! result ) { if ( Modifier . isPrivate ( modifiers ) ) { result = getAllowPrivateAccess ( ) ; } else { if ( Modifier . isProtected ( modifiers ) ) { result = getAllowProtectedAccess ( ) ; } else { result = getAllowPackageProtectedAccess ( ) ; } } } return result ; }
Returns true if the given member is accessible or can be made accessible by this object .