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, isType
annotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotation
java.lang.String name()
argN
, where N
is zero-based parameter position
in the method declaration, is returned.null
Type type()
null
MethodInfo declaringMethod()
null
default DeclarationInfo.Kind kind()
DeclarationInfo
kind
in interface DeclarationInfo
default ParameterInfo asParameter()
DeclarationInfo
asParameter
in interface DeclarationInfo
null