JavaScript is disabled on your browser.
This specification is not final and is subject to change. Use is subject to
license terms
.
Skip navigation links
Overview
Class
Use
Tree
Preview
New
Deprecated
Index
Search
Help
Java SE 24 & JDK 24
DRAFT 24-ea+10-Debian-1
jdk.compiler
com.sun.source.doctree
DocTypeTree
Contents
Hide sidebar
❮
❯
Show sidebar
Description
Nested Class Summary
Method Summary
Method Details
getText()
Interface DocTypeTree
All Superinterfaces:
DocTree
public interface
DocTypeTree
extends
DocTree
A tree node for a
doctype
declaration.
<!doctype text>
For HTML5 documents, the correct form is
<!doctype html>
.
Since:
10
Nested Class Summary
Nested classes/interfaces declared in interface com.sun.source.doctree.
DocTree
DocTree.Kind
Method Summary
All Methods
Instance Methods
Abstract Methods
Modifier and Type
Method
Description
String
getText
()
Returns the text of the doctype declaration.
Methods declared in interface com.sun.source.doctree.
DocTree
accept
,
getKind
Method Details
getText
String
getText
()
Returns the text of the doctype declaration.
Returns:
text