TypeAnnotationpublic static sealed interface TypeAnnotation.TypePathComponent
| Modifier and Type | Interface | Description |
|---|---|---|
static enum |
TypeAnnotation.TypePathComponent.Kind |
Type path kind, as defined in JVMS 4.7.20.2
|
| Modifier and Type | Field | Description |
|---|---|---|
static final TypeAnnotation.TypePathComponent |
ARRAY |
static instance for annotation is deeper in an array type |
static final TypeAnnotation.TypePathComponent |
INNER_TYPE |
static instance for annotation is deeper in a nested type |
static final TypeAnnotation.TypePathComponent |
WILDCARD |
static instance for annotation is on the bound of a wildcard type argument of a parameterized type |
| Modifier and Type | Method | Description |
|---|---|---|
static TypeAnnotation.TypePathComponent |
of |
Returns type path component of an annotation. |
int |
typeArgumentIndex() |
JVMS: type_argument_index If the value of the type_path_kind item is 0, 1, or 2, then the value of the type_argument_index item is 0. |
TypeAnnotation.TypePathComponent.Kind |
typePathKind() |
The type path kind items from JVMS Table 4.7.20.2-A. |
static final TypeAnnotation.TypePathComponent ARRAY
static final TypeAnnotation.TypePathComponent INNER_TYPE
static final TypeAnnotation.TypePathComponent WILDCARD
TypeAnnotation.TypePathComponent.Kind typePathKind()
int typeArgumentIndex()
static TypeAnnotation.TypePathComponent of(TypeAnnotation.TypePathComponent.Kind typePathKind, int typeArgumentIndex)
typePathKind - the kind of path elementtypeArgumentIndex - the type argument index
© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/classfile/TypeAnnotation.TypePathComponent.html