什么是Kotlin模块? [英] What is a Kotlin module?

查看:383
本文介绍了什么是Kotlin模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Kotlin文档中,他们在文档中提到了某种模块 作为internal修饰符.

In the Kotlin documentation they are mentioning some kind of module for instance in the documentation for the internal modifier.

但是我找不到术语 module 本身的任何定义.那么 module 是什么意思?

However I couldn't find any definition of the term module itself. So what is meant by module?

推荐答案

一个模块是将Kotlin的源代码编译在一起的集合:

A module is a set of Kotlin sources compiled together:

  • 一个IntelliJ IDEA模块;
  • 一个Maven项目;
  • Gradle来源集;
  • 通过一次Ant任务的调用编译的一组文件.
  • an IntelliJ IDEA module;
  • a Maven project;
  • a Gradle source set;
  • a set of files compiled with one invocation of the Ant task.

这与关于可见性修饰符的文档文章相同. :)

This is in the same docs article about visibility modifiers. :)

这篇关于什么是Kotlin模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆