Interface ParameterInfo
- 
- All Superinterfaces:
- AnnotationTarget,- DeclarationInfo
 
 public interface ParameterInfo extends DeclarationInfo A method parameter or a constructor parameter, declared in some method or constructor.- Since:
- 4.0
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface jakarta.enterprise.lang.model.declarations.DeclarationInfoDeclarationInfo.Kind
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ParameterInfoasParameter()Returns this declaration as a method parameter.MethodInfodeclaringMethod()Returns the method that declares this parameter.default DeclarationInfo.Kindkind()Returns the kind of this declaration.Stringname()Returns the name of this parameter, if it is known.Typetype()Returns the type of this parameter.- 
Methods inherited from interface jakarta.enterprise.lang.model.AnnotationTargetannotation, annotations, annotations, hasAnnotation, hasAnnotation, repeatableAnnotation
 - 
Methods inherited from interface jakarta.enterprise.lang.model.declarations.DeclarationInfoasClass, asDeclaration, asField, asMethod, asPackage, asRecordComponent, asType, isClass, isDeclaration, isField, isMethod, isPackage, isParameter, isRecordComponent, isType
 
- 
 
- 
- 
- 
Method Detail- 
nameString name() Returns the name of this parameter, if it is known. Method parameter names may not always be known, in which case a synthetic name of the formargN, whereNis zero-based parameter position in the method declaration, is returned.- Returns:
- the name of this parameter, or a synthetic name, never null
 
 - 
typeType type() Returns the type of this parameter.- Returns:
- the type of this parameter, never null
 
 - 
declaringMethodMethodInfo declaringMethod() Returns the method that declares this parameter.- Returns:
- the method that declares this parameter, never null
 
 - 
kinddefault DeclarationInfo.Kind kind() Description copied from interface:DeclarationInfoReturns the kind of this declaration.- Specified by:
- kindin interface- DeclarationInfo
- Returns:
- the kind of this declaration
 
 - 
asParameterdefault ParameterInfo asParameter() Description copied from interface:DeclarationInfoReturns this declaration as a method parameter.- Specified by:
- asParameterin interface- DeclarationInfo
- Returns:
- this parameter, never null
 
 
- 
 
-