Module jdk.compiler

Enum DocTree.Kind

    • Enum Constant Detail

      • DOC_COMMENT

        public static final DocTree.Kind DOC_COMMENT
        Used for instances of DocCommentTree representing a complete doc comment.
      • DOC_ROOT

        public static final DocTree.Kind DOC_ROOT
        Used for instances of DocRootTree representing an @docRoot tag.
      • DOC_TYPE

        public static final DocTree.Kind DOC_TYPE
        Used for instances of DocTypeTree representing an HTML DocType declaration.
      • END_ELEMENT

        public static final DocTree.Kind END_ELEMENT
        Used for instances of EndElementTree representing the end of an HTML element.
      • EXCEPTION

        public static final DocTree.Kind EXCEPTION
        Used for instances of ThrowsTree representing an @exception tag.
      • INDEX

        public static final DocTree.Kind INDEX
        Used for instances of IndexTree representing a search term.
      • LINK

        public static final DocTree.Kind LINK
        Used for instances of LinkTree representing an @link tag.
      • LINK_PLAIN

        public static final DocTree.Kind LINK_PLAIN
        Used for instances of LinkTree representing an @linkplain tag.
      • PARAM

        public static final DocTree.Kind PARAM
        Used for instances of ParamTree representing an @param tag.
      • REFERENCE

        public static final DocTree.Kind REFERENCE
        Used for instances of ReferenceTree representing a reference to a element in the Java programming language.
      • SEE

        public static final DocTree.Kind SEE
        Used for instances of SeeTree representing an @see tag.
      • SINCE

        public static final DocTree.Kind SINCE
        Used for instances of SinceTree representing an @since tag.
      • START_ELEMENT

        public static final DocTree.Kind START_ELEMENT
        Used for instances of EndElementTree representing the start of an HTML element.
      • SUMMARY

        public static final DocTree.Kind SUMMARY
        Used for instances of SummaryTree representing the summary of a comment description.
      • TEXT

        public static final DocTree.Kind TEXT
        Used for instances of TextTree representing some documentation text.
      • USES

        public static final DocTree.Kind USES
        Used for instances of UsesTree representing an @uses tag.
      • VALUE

        public static final DocTree.Kind VALUE
        Used for instances of ValueTree representing an @value tag.
      • OTHER

        public static final DocTree.Kind OTHER
        An implementation-reserved node. This is the not the node you are looking for.
    • Field Detail

      • tagName

        public final String tagName
        The name of the tag, if any, associated with this kind of node.
    • Method Detail

      • values

        public static DocTree.Kind[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DocTree.Kind c : DocTree.Kind.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DocTree.Kind valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null

微信小程序

微信扫一扫体验

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部