Uses of Interface
java.lang.classfile.TypeAnnotation.TargetInfo
Package
Description
Provides classfile parsing, generation, and transformation library.
-
Uses of TypeAnnotation.TargetInfoPREVIEW in java.lang.classfilePREVIEW
Modifier and TypeInterfaceDescriptionstatic interface
Preview.Indicates that an annotation appears on the i'th type in an exception parameter declaration.static interface
Preview.Indicates that an annotation appears on either the type in a field declaration, the return type of a method, the type of a newly constructed object, or the receiver type of a method or constructor.static interface
Preview.Indicates that an annotation appears on the type in a formal parameter declaration of a method, constructor, or lambda expression.static interface
Preview.Indicates that an annotation appears on the type in a local variable declaration, including a variable declared as a resource in a try-with-resources statement.static interface
Preview.Indicates that an annotation appears on either the type in an instanceof expression or a new expression, or the type before the :: in a method reference expression.static interface
Preview.Indicates that an annotation appears on a type in the extends or implements clause of a class or interface declaration.static interface
Preview.Indicates that an annotation appears on the i'th type in the throws clause of a method or constructor declaration.static interface
Preview.Indicates that an annotation appears either 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.static interface
Preview.Indicates that an annotation appears on the i'th bound of the j'th type parameter declaration of a generic class, interface, method, or constructor.static interface
Preview.Indicates that an annotation appears on the declaration of the i'th type parameter of a generic class, generic interface, generic method, or generic constructor.Modifier and TypeMethodDescriptionTypeAnnotation.targetInfo()
Returns information describing precisely which type in a declaration or expression is annotated.Modifier and TypeMethodDescriptionstatic TypeAnnotationPREVIEW
TypeAnnotation.of
(TypeAnnotation.TargetInfoPREVIEW targetInfo, List<TypeAnnotation.TypePathComponentPREVIEW> targetPath, Utf8EntryPREVIEW annotationClassUtf8Entry, AnnotationElementPREVIEW... annotationElements) Returns a type annotation.static TypeAnnotationPREVIEW
TypeAnnotation.of
(TypeAnnotation.TargetInfoPREVIEW targetInfo, List<TypeAnnotation.TypePathComponentPREVIEW> targetPath, Utf8EntryPREVIEW annotationClassUtf8Entry, List<AnnotationElementPREVIEW> annotationElements) Returns a type annotation.static TypeAnnotationPREVIEW
TypeAnnotation.of
(TypeAnnotation.TargetInfoPREVIEW targetInfo, List<TypeAnnotation.TypePathComponentPREVIEW> targetPath, ClassDesc annotationClass, AnnotationElementPREVIEW... annotationElements) Returns a type annotation.static TypeAnnotationPREVIEW
TypeAnnotation.of
(TypeAnnotation.TargetInfoPREVIEW targetInfo, List<TypeAnnotation.TypePathComponentPREVIEW> targetPath, ClassDesc annotationClass, List<AnnotationElementPREVIEW> annotationElements) Returns a type annotation.