OpenJDK 27
jdk.compiler
com.sun.source.doctree
DocTypeTree
APIdia Launch Partner
Top
Description
Methods
com.sun.source.doctree
public
Interface DocTypeTree
extends
DocTree
Known Direct Implementers
com.
sun.
tools.
javac.
tree.
DCTree.
DCDocType
A tree node for a
doctype
declaration.
<!doctype text>
For HTML5 documents, the correct form is
<!doctype html>
.
Since
10
Method Summary
Modifier and Type
Method and Description
public
String
Returns:
text
getText
()
Returns the text of the doctype declaration.
Inherited from
com.sun.source.doctree.DocTree
:
accept
getKind
Method Detail
getText
back to summary
public
String
getText
()
Returns the text of the doctype declaration.
Returns:
String
text