Module jdk.compiler

Interface DocTypeTree

所有超级接口:
DocTree

public interface DocTypeTree extends DocTree
用于doctype声明的树节点。
    <!doctype text>
 
对于HTML5文档,正确的形式是<!doctype html>
自从:
10
  • Nested Class Summary

    Nested classes/interfaces declared in interface com.sun.source.doctree.DocTree

    DocTree.Kind
  • Method Summary

    Modifier and Type
    Method
    Description
    返回doctype声明的文本。

    Methods declared in interface com.sun.source.doctree.DocTree

    accept, getKind
  • Method Details

    • getText

      String getText()
      返回doctype声明的文本。
      返回:
      文本