Skip to content

Commit

Permalink
add getParameterCount
Browse files Browse the repository at this point in the history
  • Loading branch information
Liyw979 committed Nov 16, 2024
1 parent dec694a commit 6e2f679
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,9 @@ public MethodSignature(
public List<Type> getParameterTypes() {
return this.getSubSignature().getParameterTypes();
}

/** Returns the number of parameters. */
public int getParameterCount() {
return this.getSubSignature().getParameterTypes().size();
}
}

0 comments on commit 6e2f679

Please sign in to comment.