getParameters abstract method

List<Parameter> getParameters()

Gets all parameters of this executable element.

Returns:

  • An ordered list of Parameter objects
  • Empty list if no parameters exist

Order matches the declaration order in source.

Example:

void method(int a, String b) {}
// Returns [Parameter(a), Parameter(b)]

Implementation

List<Parameter> getParameters();