From 6e2f6799d99d3d7225f3fc25b8a05e430bd9ec15 Mon Sep 17 00:00:00 2001 From: liyiwei <979621500@qq.com> Date: Sat, 16 Nov 2024 21:02:37 +0800 Subject: [PATCH] add getParameterCount --- .../main/java/sootup/core/signatures/MethodSignature.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sootup.core/src/main/java/sootup/core/signatures/MethodSignature.java b/sootup.core/src/main/java/sootup/core/signatures/MethodSignature.java index 3862e0ac65c..712f56bea6f 100644 --- a/sootup.core/src/main/java/sootup/core/signatures/MethodSignature.java +++ b/sootup.core/src/main/java/sootup/core/signatures/MethodSignature.java @@ -56,4 +56,9 @@ public MethodSignature( public List getParameterTypes() { return this.getSubSignature().getParameterTypes(); } + + /** Returns the number of parameters. */ + public int getParameterCount() { + return this.getSubSignature().getParameterTypes().size(); + } }