## Uses of Class
com.sun.source.util.DocTrees

- Packages that use DocTrees
  Package | Description
  --- | ---
  com.sun.source.util | Provides utilities for operations on abstract syntax trees (AST).

- - ### Uses of DocTrees in com.sun.source.util

    Methods in com.sun.source.util that return DocTrees
    Modifier and Type | Method | Description
    --- | --- | ---
    `static DocTrees` | DocTrees.`instance(JavaCompiler.CompilationTask task)` Gets a DocTrees object for a given CompilationTask.
    `static DocTrees` | DocTrees.`instance(ProcessingEnvironment env)` Gets a DocTrees object for a given ProcessingEnvironment.

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