Module jdk.compiler

Interface DocTree

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  DocTree.Kind
      Enumerates all kinds of trees.
    • Method Summary

      Modifier and Type Method Description
      <R,​D>
      R
      accept​(DocTreeVisitor<R,​D> visitor, D data)
      Accept method used to implement the visitor pattern.
      DocTree.Kind getKind()
      Returns the kind of this tree.
    • Method Detail

      • getKind

        DocTree.Kind getKind()
        Returns the kind of this tree.
        Returns:
        the kind of this tree.
      • accept

        <R,​D> R accept​(DocTreeVisitor<R,​D> visitor,
                             D data)
        Accept method used to implement the visitor pattern. The visitor pattern is used to implement operations on trees.
        Type Parameters:
        R - result type of this operation.
        D - type of additional data.
        Parameters:
        visitor - the visitor to be called
        data - a parameter value to be passed to the visitor method
        Returns:
        the value returned from the visitor method