From 1aa1cddc0b5c7e9b581e584cce7b0a75e9c1361a Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 9 Apr 1999 08:04:08 +0000 Subject: [PATCH] getParamCount removed git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@532 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/decompiler/MethodAnalyzer.java | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/jode/jode/decompiler/MethodAnalyzer.java b/jode/jode/decompiler/MethodAnalyzer.java index 0f4b5be..e4e2f29 100644 --- a/jode/jode/decompiler/MethodAnalyzer.java +++ b/jode/jode/decompiler/MethodAnalyzer.java @@ -54,7 +54,7 @@ public class MethodAnalyzer implements Analyzer { AttributeInfo codeattr = minfo.findAttribute("Code"); if (codeattr != null) { - code = new CodeAnalyzer(this, codeattr, env); + code = new CodeAnalyzer(this, minfo, codeattr, env); } AttributeInfo excattr = minfo.findAttribute("Exceptions"); @@ -109,14 +109,6 @@ public class MethodAnalyzer implements Analyzer { return synth.type == SyntheticAnalyzer.GETCLASS; } - public int getParamCount() { - int count = isStatic() ? 0 : 1; - Type[] paramTypes = methodType.getParameterTypes(); - for (int i=0; i< paramTypes.length; i++) - count += paramTypes[i].stackSize(); - return count; - } - public Type getReturnType() { return methodType.getReturnType(); } @@ -139,7 +131,7 @@ public class MethodAnalyzer implements Analyzer { Type[] paramTypes = methodType.getParameterTypes(); for (int i=0; i< paramTypes.length; i++) { code.getParamInfo(offset).setType(paramTypes[i]); - offset += paramTypes[i].stackSize(); + offset++; } for (int i= 0; i< exceptions.length; i++) @@ -223,7 +215,7 @@ public class MethodAnalyzer implements Analyzer { } else li = code.getParamInfo(offset); writer.print(li.getType().toString()+" "+li.getName()); - offset += paramTypes[i].stackSize(); + offset++; } writer.print(")"); }