Top Description Methods
jakarta.enterprise.lang.model.declarations

public Interface ParameterInfo

extends DeclarationInfo
Imports
jakarta.enterprise.lang.model.types.Type

A method parameter or a constructor parameter, declared in some method or constructor.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public default ParameterInfo
public MethodInfo

Returns:

the method that declares this parameter, never null
declaringMethod
()

Returns the method that declares this parameter.

public default DeclarationInfo.Kind
kind()

Implements jakarta.enterprise.lang.model.declarations.DeclarationInfo.kind.

Returns the kind of this declaration.
public String

Returns:

the name of this parameter, or a synthetic name, never null
name
()

Returns the name of this parameter, if it is known.

public Type

Returns:

the type of this parameter, never null
type
()

Returns the type of this parameter.

Inherited from jakarta.enterprise.lang.model.declarations.DeclarationInfo:
asClassasDeclarationasFieldasMethodasPackageasRecordComponentasTypeisClassisDeclarationisFieldisMethodisPackageisParameterisRecordComponentisType

Method Detail

asParameterback to summary
public default ParameterInfo asParameter()

Overrides default jakarta.enterprise.lang.model.declarations.DeclarationInfo.asParameter.

Doc from jakarta.enterprise.lang.model.declarations.DeclarationInfo.asParameter.

Returns this declaration as a method parameter.

Returns:ParameterInfo

this parameter, never null

Annotations
@Override
declaringMethodback to summary
public MethodInfo declaringMethod()

Returns the method that declares this parameter.

Returns:MethodInfo

the method that declares this parameter, never null

kindback to summary
public default DeclarationInfo.Kind kind()

Implements jakarta.enterprise.lang.model.declarations.DeclarationInfo.kind.

Doc from jakarta.enterprise.lang.model.declarations.DeclarationInfo.kind.

Returns the kind of this declaration.

Returns:DeclarationInfo.Kind

the kind of this declaration

Annotations
@Override
nameback to summary
public String 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 form argN, where N is zero-based parameter position in the method declaration, is returned.

Returns:String

the name of this parameter, or a synthetic name, never null

typeback to summary
public Type type()

Returns the type of this parameter.

Returns:Type

the type of this parameter, never null