public interface ParameterInfo extends DeclarationInfo
DeclarationInfo.Kind| Modifier and Type | Method and Description |
|---|---|
default ParameterInfo |
asParameter()
Returns this declaration as a method parameter.
|
MethodInfo |
declaringMethod()
Returns the method that declares this parameter.
|
default DeclarationInfo.Kind |
kind()
Returns the kind of this declaration.
|
java.lang.String |
name()
Returns the name of this parameter, if it is known.
|
Type |
type()
Returns the type of this parameter.
|
asClass, asDeclaration, asField, asMethod, asPackage, asRecordComponent, asType, isClass, isDeclaration, isField, isMethod, isPackage, isParameter, isRecordComponent, isTypeannotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotationjava.lang.String name()
argN, where N is zero-based parameter position
in the method declaration, is returned.nullType type()
nullMethodInfo declaringMethod()
nulldefault DeclarationInfo.Kind kind()
DeclarationInfokind in interface DeclarationInfodefault ParameterInfo asParameter()
DeclarationInfoasParameter in interface DeclarationInfonull