Class Hierarchy (Compiler Tree API )
Date: 2026-04-24

# Hierarchy For All Packages

Package Hierarchies:

- com.sun.source.doctree,
- com.sun.source.tree,
- com.sun.source.util,
- jdk

## Class Hierarchy

- java.lang.Object
  - com.sun.source.util.DocTreePath (implements java.lang.Iterable<T>)
  - com.sun.source.util.DocTreeScanner<R,P> (implements com.sun.source.doctree.DocTreeVisitor<R,P>)
    - com.sun.source.util.DocTreePathScanner<R,P>
  - com.sun.source.util.JavacTask (implements javax.tools.JavaCompiler.CompilationTask)
  - com.sun.source.util.SimpleDocTreeVisitor<R,P> (implements com.sun.source.doctree.DocTreeVisitor<R,P>)
  - com.sun.source.util.SimpleTreeVisitor<R,P> (implements com.sun.source.tree.TreeVisitor<R,P>)
  - com.sun.source.util.TaskEvent
  - com.sun.source.util.TreePath (implements java.lang.Iterable<T>)
  - com.sun.source.util.Trees
    - com.sun.source.util.DocTrees
  - com.sun.source.util.TreeScanner<R,P> (implements com.sun.source.tree.TreeVisitor<R,P>)
    - com.sun.source.util.TreePathScanner<R,P>

## Interface Hierarchy

- com.sun.source.doctree.DocTree
  - com.sun.source.doctree.AttributeTree
  - com.sun.source.doctree.AuthorTree
  - com.sun.source.doctree.BlockTagTree
    - com.sun.source.doctree.AuthorTree
    - com.sun.source.doctree.DeprecatedTree
    - com.sun.source.doctree.ParamTree
    - com.sun.source.doctree.ReturnTree
    - com.sun.source.doctree.SeeTree
    - com.sun.source.doctree.SerialDataTree
    - com.sun.source.doctree.SerialFieldTree
    - com.sun.source.doctree.SerialTree
    - com.sun.source.doctree.SinceTree
    - com.sun.source.doctree.ThrowsTree
    - com.sun.source.doctree.UnknownBlockTagTree
    - com.sun.source.doctree.VersionTree
  - com.sun.source.doctree.CommentTree
  - com.sun.source.doctree.DeprecatedTree
  - com.sun.source.doctree.DocCommentTree
  - com.sun.source.doctree.DocRootTree
  - com.sun.source.doctree.EndElementTree
  - com.sun.source.doctree.EntityTree
  - com.sun.source.doctree.ErroneousTree
  - com.sun.source.doctree.IdentifierTree
  - com.sun.source.doctree.InheritDocTree
  - com.sun.source.doctree.InlineTagTree
    - com.sun.source.doctree.DocRootTree
    - com.sun.source.doctree.InheritDocTree
    - com.sun.source.doctree.LinkTree
    - com.sun.source.doctree.LiteralTree
    - com.sun.source.doctree.UnknownInlineTagTree
    - com.sun.source.doctree.ValueTree
  - com.sun.source.doctree.LinkTree
  - com.sun.source.doctree.LiteralTree
  - com.sun.source.doctree.ParamTree
  - com.sun.source.doctree.ReferenceTree
  - com.sun.source.doctree.ReturnTree
  - com.sun.source.doctree.SeeTree
  - com.sun.source.doctree.SerialDataTree
  - com.sun.source.doctree.SerialFieldTree
  - com.sun.source.doctree.SerialTree
  - com.sun.source.doctree.SinceTree
  - com.sun.source.doctree.StartElementTree
  - com.sun.source.doctree.TextTree
    - com.sun.source.doctree.ErroneousTree
  - com.sun.source.doctree.ThrowsTree
  - com.sun.source.doctree.UnknownBlockTagTree
  - com.sun.source.doctree.UnknownInlineTagTree
  - com.sun.source.doctree.ValueTree
  - com.sun.source.doctree.VersionTree
- com.sun.source.doctree.DocTreeVisitor<R,P>
- com.sun.source.tree.LineMap
- com.sun.source.util.Plugin
- com.sun.source.tree.Scope
- com.sun.source.util.SourcePositions
  - com.sun.source.util.DocSourcePositions
- com.sun.source.util.TaskListener
- com.sun.source.tree.Tree
  - com.sun.source.tree.AnnotatedTypeTree
  - com.sun.source.tree.AnnotationTree
  - com.sun.source.tree.ArrayAccessTree
  - com.sun.source.tree.ArrayTypeTree
  - com.sun.source.tree.AssertTree
  - com.sun.source.tree.AssignmentTree
  - com.sun.source.tree.BinaryTree
  - com.sun.source.tree.BlockTree
  - com.sun.source.tree.BreakTree
  - com.sun.source.tree.CaseTree
  - com.sun.source.tree.CatchTree
  - com.sun.source.tree.ClassTree
  - com.sun.source.tree.CompilationUnitTree
  - com.sun.source.tree.CompoundAssignmentTree
  - com.sun.source.tree.ConditionalExpressionTree
  - com.sun.source.tree.ContinueTree
  - com.sun.source.tree.DoWhileLoopTree
  - com.sun.source.tree.EmptyStatementTree
  - com.sun.source.tree.EnhancedForLoopTree
  - com.sun.source.tree.ErroneousTree
  - com.sun.source.tree.ExpressionStatementTree
  - com.sun.source.tree.ExpressionTree
    - com.sun.source.tree.AnnotatedTypeTree
    - com.sun.source.tree.AnnotationTree
    - com.sun.source.tree.ArrayAccessTree
    - com.sun.source.tree.AssignmentTree
    - com.sun.source.tree.BinaryTree
    - com.sun.source.tree.CompoundAssignmentTree
    - com.sun.source.tree.ConditionalExpressionTree
    - com.sun.source.tree.ErroneousTree
    - com.sun.source.tree.IdentifierTree
    - com.sun.source.tree.InstanceOfTree
    - com.sun.source.tree.LambdaExpressionTree
    - com.sun.source.tree.LiteralTree
    - com.sun.source.tree.MemberReferenceTree
    - com.sun.source.tree.MemberSelectTree
    - com.sun.source.tree.MethodInvocationTree
    - com.sun.source.tree.NewArrayTree
    - com.sun.source.tree.NewClassTree
    - com.sun.source.tree.ParenthesizedTree
    - com.sun.source.tree.TypeCastTree
    - com.sun.source.tree.UnaryTree
  - com.sun.source.tree.ForLoopTree
  - com.sun.source.tree.IdentifierTree
  - com.sun.source.tree.IfTree
  - com.sun.source.tree.ImportTree
  - com.sun.source.tree.InstanceOfTree
  - com.sun.source.tree.IntersectionTypeTree
  - com.sun.source.tree.LabeledStatementTree
  - com.sun.source.tree.LambdaExpressionTree
  - com.sun.source.tree.LiteralTree
  - com.sun.source.tree.MemberReferenceTree
  - com.sun.source.tree.MemberSelectTree
  - com.sun.source.tree.MethodInvocationTree
  - com.sun.source.tree.MethodTree
  - com.sun.source.tree.ModifiersTree
  - com.sun.source.tree.NewArrayTree
  - com.sun.source.tree.NewClassTree
  - com.sun.source.tree.ParameterizedTypeTree
  - com.sun.source.tree.ParenthesizedTree
  - com.sun.source.tree.PrimitiveTypeTree
  - com.sun.source.tree.ReturnTree
  - com.sun.source.tree.StatementTree
    - com.sun.source.tree.AssertTree
    - com.sun.source.tree.BlockTree
    - com.sun.source.tree.BreakTree
    - com.sun.source.tree.ClassTree
    - com.sun.source.tree.ContinueTree
    - com.sun.source.tree.DoWhileLoopTree
    - com.sun.source.tree.EmptyStatementTree
    - com.sun.source.tree.EnhancedForLoopTree
    - com.sun.source.tree.ExpressionStatementTree
    - com.sun.source.tree.ForLoopTree
    - com.sun.source.tree.IfTree
    - com.sun.source.tree.LabeledStatementTree
    - com.sun.source.tree.ReturnTree
    - com.sun.source.tree.SwitchTree
    - com.sun.source.tree.SynchronizedTree
    - com.sun.source.tree.ThrowTree
    - com.sun.source.tree.TryTree
    - com.sun.source.tree.VariableTree
    - com.sun.source.tree.WhileLoopTree
  - com.sun.source.tree.SwitchTree
  - com.sun.source.tree.SynchronizedTree
  - com.sun.source.tree.ThrowTree
  - com.sun.source.tree.TryTree
  - com.sun.source.tree.TypeCastTree
  - com.sun.source.tree.TypeParameterTree
  - com.sun.source.tree.UnaryTree
  - com.sun.source.tree.UnionTypeTree
  - com.sun.source.tree.VariableTree
  - com.sun.source.tree.WhileLoopTree
  - com.sun.source.tree.WildcardTree
- com.sun.source.tree.TreeVisitor<R,P>

## Annotation Type Hierarchy

- jdk.Exported (implements java.lang.annotation.Annotation)

## Enum Hierarchy

- java.lang.Object
  - java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable)
    - com.sun.source.doctree.AttributeTree.ValueKind
    - com.sun.source.doctree.DocTree.Kind
    - com.sun.source.tree.LambdaExpressionTree.BodyKind
    - com.sun.source.tree.MemberReferenceTree.ReferenceMode
    - com.sun.source.tree.Tree.Kind
    - com.sun.source.util.TaskEvent.Kind

Copyright © 2005, 2026, Oracle and/or its affiliates. All rights reserved.