IntersectionTypeTree (Java SE 26 & JDK 26)
Description: declaration: module: jdk.compiler, package: com.sun.source.tree, interface: IntersectionTypeTree
Keywords: com.sun.source.tree.IntersectionTypeTree interface

# Interface IntersectionTypeTree

All Superinterfaces:
  `Tree`

public interface IntersectionTypeTree extends Tree
A tree node for an intersection type in a cast expression.

Since:
  1.8

- ## Nested Class Summary

  ### Nested classes/interfaces declared in interface Tree

  `Tree.Kind`
  Modifier and Type
  Interface
  Description
  `static enum`
  `Tree.Kind`
  Enumerates all kinds of trees.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `List<? extends Tree>`
  `getBounds()`
  Returns the bounds of the type.

  ### Methods declared in interface Tree

  `accept, getKind`
  Modifier and Type
  Method
  Description
  `<R,D> R`
  `accept(TreeVisitor<R,D> visitor, D data)`
  Accept method used to implement the visitor pattern.
  `Tree.Kind`
  `getKind()`
  Returns the kind of this tree.

- ## Method Details

  - ### getBounds

    List<? extends Tree> getBounds()
    Returns the bounds of the type.
    Returns:
      the bounds