Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8237826

DocTrees should provide getType(DocTreePath) method

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 15
    • None
    • tools
    • None
    • b26
    • generic
    • generic

    Description

      The DocTrees API currently provides a getElement(DocTreePath) method that allows to retrieve the javax.lang.model.element.Element referred to by a DocTree node.

      However, the element API cannot represent all types. For JDK-8177280 we need a way to represent instantiated generic types with their type arguments. For this purpose we should provide a method that returns a TypeMirror for the type referred to by a DocTreePath, or null if it does not refer to a type.

          TypeMirror getType(DocTreePath path)

      Attachments

        Issue Links

          Activity

            People

              hannesw Hannes Wallnoefer
              hannesw Hannes Wallnoefer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: