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

DocTrees should provide getType(DocTreePath) method

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b26
    • CPU:
      generic
    • OS:
      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

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

                Dates

                Created:
                Updated:
                Resolved: