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

DocTrees should provide getType(DocTreePath) method

XMLWordPrintable

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

      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)

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

              Created:
              Updated:
              Resolved: