// $Id: Jcf.java,v 1.2 2002-07-14 21:28:16+09 kaiya Exp kaiya $ public class Jcf{ private byte[] b; private boolean ok=false; private static int[] pooln={ -1, -2, -1, 4, 4, 8, 8, 2, 2, 4, 4, 4, 4 }; // const. pool width. private CP[] pool; private int thiscp; private int supercp; private fieldDef[] fdef; private methodDef[] mdef; public Jcf(byte[] bcode){ b=bcode; ok=parseBytes(); } public String className(){ if(!ok) return null; CPClass c=(CPClass)pool[thiscp]; return new String(c.name.data); } public String[][] pubVoidMethods(){ String[][] r=new String[mdef.length][2]; int n=0; for(int i=0; i")) continue; r[n][0]=s; r[n][1]=t; n++; } String[][] rr=new String[n][2]; for(int i=0; i