Serializable, Comparable<TypeAnnotation.TypePathComponent.Kind>, ConstableTypeAnnotation.TypePathComponentpublic static enum TypeAnnotation.TypePathComponent.Kind extends Enum<TypeAnnotation.TypePathComponent.Kind>
Enum.EnumDesc<E>
| Enum Constant | Description |
|---|---|
ARRAY |
Annotation is deeper in an array type |
INNER_TYPE |
Annotation is deeper in a nested type |
TYPE_ARGUMENT |
Annotation is on a type argument of a parameterized type |
WILDCARD |
Annotation is on the bound of a wildcard type argument of a parameterized type |
| Modifier and Type | Method | Description |
|---|---|---|
int |
tag() |
Returns the type path kind value. |
static TypeAnnotation.TypePathComponent.Kind |
valueOf |
Returns the enum constant of this class with the specified name. |
static TypeAnnotation.TypePathComponent.Kind[] |
values() |
Returns an array containing the constants of this enum class, in the order they are declared. |
public static final TypeAnnotation.TypePathComponent.Kind ARRAY
public static final TypeAnnotation.TypePathComponent.Kind INNER_TYPE
public static final TypeAnnotation.TypePathComponent.Kind WILDCARD
public static final TypeAnnotation.TypePathComponent.Kind TYPE_ARGUMENT
public static TypeAnnotation.TypePathComponent.Kind[] values()
public static TypeAnnotation.TypePathComponent.Kind valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is nullpublic int tag()
© 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.Kind.html