| Package | Description | 
|---|---|
| javax.lang.model.element | Interfaces used to model elements of the Java programming language. | 
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| DeclaredType | AnnotationMirror. getAnnotationType()Returns the type of this annotation. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | ErrorTypeRepresents a class or interface type that cannot be properly modeled. | 
| Modifier and Type | Method and Description | 
|---|---|
| R | TypeVisitor. visitDeclared(DeclaredType t,
             P p)Visits a declared type. | 
| Modifier and Type | Method and Description | 
|---|---|
| DeclaredType | Types. getDeclaredType(DeclaredType containing,
               TypeElement typeElem,
               TypeMirror... typeArgs)Returns the type corresponding to a type element
 and actual type arguments, given a
 containing type
 of which it is a member. | 
| DeclaredType | Types. getDeclaredType(TypeElement typeElem,
               TypeMirror... typeArgs)Returns the type corresponding to a type element and
 actual type arguments. | 
| Modifier and Type | Method and Description | 
|---|---|
| TypeMirror | Types. asMemberOf(DeclaredType containing,
          Element element)Returns the type of an element when that element is viewed as
 a member of, or otherwise directly contained by, a given type. | 
| DeclaredType | Types. getDeclaredType(DeclaredType containing,
               TypeElement typeElem,
               TypeMirror... typeArgs)Returns the type corresponding to a type element
 and actual type arguments, given a
 containing type
 of which it is a member. | 
| R | SimpleTypeVisitor6. visitDeclared(DeclaredType t,
             P p)Visits a declared type. | 
 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.