Uses of Enum Class
java.lang.classfile.TypeAnnotation.TargetType
Packages that use TypeAnnotation.TargetType
Package
Description
Provides classfile parsing, generation, and transformation library.
-
Uses of TypeAnnotation.TargetType in java.lang.classfile
Subclasses with type arguments of type TypeAnnotation.TargetType in java.lang.classfileModifier and TypeClassDescriptionstatic enum
The kind of target on which the annotation appears, as defined in JVMS 4.7.20.1.Methods in java.lang.classfile that return TypeAnnotation.TargetTypeModifier and TypeMethodDescriptionTypeAnnotation.TargetInfo.targetType()
Returns the type of the target.static TypeAnnotation.TargetType
Returns the enum constant of this class with the specified name.static TypeAnnotation.TargetType[]
TypeAnnotation.TargetType.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in java.lang.classfile with parameters of type TypeAnnotation.TargetTypeModifier and TypeMethodDescriptionstatic TypeAnnotation.EmptyTarget
TypeAnnotation.TargetInfo.of
(TypeAnnotation.TargetType targetType) Returns a target for annotations.static TypeAnnotation.OffsetTarget
TypeAnnotation.TargetInfo.ofOffset
(TypeAnnotation.TargetType targetType, Label target) Returns a target for annotations on the type in an instanceof expression or a new expression, or the type before the :: in a method reference expression.TypeAnnotation.TargetInfo.ofTypeArgument
(TypeAnnotation.TargetType targetType, Label target, int typeArgumentIndex) Returns a target for annotations on the i'th type in a cast expression, or on the i'th type argument in the explicit type argument list for any of the following: a new expression, an explicit constructor invocation statement, a method invocation expression, or a method reference expression.TypeAnnotation.TargetInfo.ofTypeParameter
(TypeAnnotation.TargetType targetType, int typeParameterIndex) Returns a target for annotations on a class or method type parameter declaration.TypeAnnotation.TargetInfo.ofTypeParameterBound
(TypeAnnotation.TargetType targetType, int typeParameterIndex, int boundIndex) Returns a target for annotations on the i'th bound of the j'th type parameter declaration of a generic class, interface, method, or constructor.TypeAnnotation.TargetInfo.ofVariable
(TypeAnnotation.TargetType targetType, List<TypeAnnotation.LocalVarTargetInfo> table) Returns a target for annotations on the type in a local variable declaration, including a variable declared as a resource in a try-with-resources statement.