Module org.glavo.classfile
Package org.glavo.classfile
Interface TypeAnnotation.FormalParameterTarget
- All Superinterfaces:
TypeAnnotation.TargetInfo
- All Known Implementing Classes:
TargetInfoImpl.FormalParameterTargetImpl
- Enclosing interface:
TypeAnnotation
public static sealed interface TypeAnnotation.FormalParameterTarget
extends TypeAnnotation.TargetInfo
permits TargetInfoImpl.FormalParameterTargetImpl
Indicates that an annotation appears on the type in a formal parameter
declaration of a method, constructor, or lambda expression.
-
Method Summary
Modifier and TypeMethodDescriptionintWhich formal parameter declaration has an annotated type.Methods inherited from interface org.glavo.classfile.TypeAnnotation.TargetInfo
size, targetType
-
Method Details
-
formalParameterIndex
int formalParameterIndex()Which formal parameter declaration has an annotated type.- Returns:
- the index into the formal parameter declarations, in the order declared in the source code
-