Uses of Enum Class
java.lang.classfile.TypeAnnotation.TargetType
Packages that use TypeAnnotation.TargetTypePREVIEW
Package
Description
Provides classfile parsing, generation, and transformation library.
-
Uses of TypeAnnotation.TargetTypePREVIEW in java.lang.classfilePREVIEW
Subclasses with type arguments of type TypeAnnotation.TargetTypePREVIEW in java.lang.classfilePREVIEWModifier and TypeClassDescriptionstatic enum
Preview.The kind of target on which the annotation appears, as defined in 4.7.20.1.Methods in java.lang.classfilePREVIEW that return TypeAnnotation.TargetTypePREVIEWModifier and TypeMethodDescriptionTypeAnnotation.TargetInfo.targetType()
Returns the type of the target.Returns the enum constant of this class with the specified name.static TypeAnnotation.TargetTypePREVIEW[]
TypeAnnotation.TargetType.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in java.lang.classfilePREVIEW with parameters of type TypeAnnotation.TargetTypePREVIEWModifier and TypeMethodDescriptionTypeAnnotation.TargetInfo.of
(TypeAnnotation.TargetTypePREVIEW targetType) Returns a target for annotations.TypeAnnotation.TargetInfo.ofOffset
(TypeAnnotation.TargetTypePREVIEW targetType, LabelPREVIEW 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.TargetTypePREVIEW targetType, LabelPREVIEW 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.TargetTypePREVIEW targetType, int typeParameterIndex) Returns a target for annotations on a class or method type parameter declaration.TypeAnnotation.TargetInfo.ofTypeParameterBound
(TypeAnnotation.TargetTypePREVIEW 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.TargetTypePREVIEW targetType, List<TypeAnnotation.LocalVarTargetInfoPREVIEW> 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.