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(); + } }