com.sun.source.tree

## Interface ImportTree

- All Superinterfaces:
    Tree

      @Exported
      public interface ImportTree
      extends Tree

  A tree node for an import statement. For example:

         import qualifiedIdentifier ;

         static import qualifiedIdentifier ;

  Since:
    1.6
  See The Java™ Language Specification:
    section 7.5

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface com.sun.source.tree.Tree

      `Tree.Kind`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Tree` | `getQualifiedIdentifier()` |
    `boolean` | `isStatic()` |

    - ### Methods inherited from interface com.sun.source.tree.Tree

      `accept, getKind`

- - ### Method Detail

    - #### isStatic

          boolean isStatic()

    - #### getQualifiedIdentifier

          Tree getQualifiedIdentifier()

      Returns:
        a qualified identifier ending in "*" if and only if this is an import-on-demand.

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