Uses of Interface javax.lang.model.type.IntersectionType (Java Platform SE 8 )
Date: 2026-07-22

## Uses of Interface
javax.lang.model.type.IntersectionType

- Packages that use IntersectionType
  Package | Description
  --- | ---
  javax.lang.model.type | Interfaces used to model Java programming language types.
  javax.lang.model.util | Utilities to assist in the processing of program elements and types.

- - ### Uses of IntersectionType in javax.lang.model.type

    Methods in javax.lang.model.type with parameters of type IntersectionType
    Modifier and Type | Method and Description
    --- | ---
    `R` | TypeVisitor.`visitIntersection(IntersectionType t, P p)` Visits an intersection type.

  - ### Uses of IntersectionType in javax.lang.model.util

    Methods in javax.lang.model.util with parameters of type IntersectionType
    Modifier and Type | Method and Description
    --- | ---
    `R` | TypeKindVisitor8.`visitIntersection(IntersectionType t, P p)` This implementation visits an `IntersectionType` by calling `defaultAction`.
    `R` | SimpleTypeVisitor8.`visitIntersection(IntersectionType t, P p)` This implementation visits an `IntersectionType` by calling `defaultAction`.
    `abstract R` | AbstractTypeVisitor8.`visitIntersection(IntersectionType t, P p)` Visits an `IntersectionType` in a manner defined by a subclass.
    `R` | AbstractTypeVisitor6.`visitIntersection(IntersectionType t, P p)` Visits an `IntersectionType` element by calling `visitUnknown`.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.