Java SE 19 API Javadocs
Шаблон для создания внешней ссылки в Javadoc для класса в текущей версии Java SE API. Этот шаблон следует использовать вместо явного URL, чтобы разрешить автоматическое обновление ссылки до последней версии API при обновлении этого шаблона.
Пожалуйста, обновите Template:Javadoc:SE/Home_URL , чтобы обновить версию Java, на которую эта ссылка перенаправляет пользователей.
Вот распространенные формы использования этого шаблона:
В приведенном выше примере clone()
может быть любым членом, задокументированным в Javadoc , который не является классом или интерфейсом, поэтому производит . Для члена класса или интерфейса имя класса — , поэтому производит .{{Javadoc:SE|java/lang|System|out}}
System.out
OuterClass.InnerClass
{{Javadoc:SE|java/lang|Character.Subset}}
Character.Subset
URL-адреса Javadoc не включают общие параметризованные типы. Чтобы отобразить параметры типа, укажите параметр class
и/или member
в шаблоне, чтобы переопределить имя отображаемого класса и/или имя члена. Обратите внимание, что нотация параметризованного типа использует угловые скобки ( <
и >
), поэтому имена параметров типа, соответствующие тегам разметки HTML, должны использовать кодировки символов <
для <
и >
для >
.
URL метода использует полное имя пути типов параметров. Параметр member
может использоваться для использования простого имени типа параметров метода, как показано в предыдущей таблице, или даже для полного исключения параметров.
Наконец, если ни один из вышеперечисленных способов не подходит для отображаемого текста, предоставление name
параметра позволяет заменить все отображаемое имя пакета/класса/члена. (Однако параметр name
не переопределит текст, отображаемый при использовании формы.){{Javadoc:SE}}
module
параметр, чтобы гарантировать, что пользователь будет отправлен в правильную область документации. Если module
не указано, шаблон будет по умолчанию java.base
- который, если рассматриваемый элемент не находится в java.base
, отправит читателя на страницу 404.