Class[], Class constructor moved to Type.tMethod

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@567 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 7d0d19c63e
commit 8039178f9e
  1. 14
      jode/jode/type/MethodType.java

@ -58,20 +58,6 @@ public class MethodType extends Type {
returnType = Type.tType(signature.substring(index+1)); returnType = Type.tType(signature.substring(index+1));
} }
public MethodType(Class paramT[], Class returnT) {
super(TC_METHOD);
StringBuffer sig = new StringBuffer("(");
parameterTypes = new Type[paramT.length];
for (int i=0; i< paramT.length; i++) {
parameterTypes[i] = Type.tType(paramT[i]);
sig.append(parameterTypes[i].getTypeSignature());
}
sig.append(")");
returnType = Type.tType(returnT);
sig.append(returnType.getTypeSignature());
signature = sig.toString();
}
public final int stackSize() { public final int stackSize() {
int size = returnType.stackSize(); int size = returnType.stackSize();
for (int i=0; i<parameterTypes.length; i++) for (int i=0; i<parameterTypes.length; i++)

Loading…
Cancel
Save