Example #1
0
  private void _aInputStreamStringV(InputStream inputstream, int i, String s) throws IOException {
    byte abyte0[] = net.rim.tools.compiler.io.StructuredInputStream.readFully(inputstream, i, s);
    net.rim.tools.compiler.classfile.ClassFile q1 =
        new net.rim.tools.compiler.classfile.ClassFile(abyte0, false);
    net.rim.tools.compiler.classfile.ConstantPool m1 = q1.getConstantsPool();
    Hashtable hashtable = new Hashtable();
    int j = m1.getSize();
    for (int k = 1; k < j; k++) {
      net.rim.tools.compiler.classfile.ConstantPoolEntry o = m1.getConstantPoolEntry(k);
      if (o instanceof net.rim.tools.compiler.classfile.ConstantPoolClass) {
        net.rim.tools.compiler.classfile.ConstantPoolClass e1 =
            (net.rim.tools.compiler.classfile.ConstantPoolClass) o;
        String s1 = e1.getName();
        if (s1.charAt(0) != '[') hashtable.put(s1, s1);
      } else if (o instanceof net.rim.tools.compiler.classfile.ConstantPoolNameAndType) {
        net.rim.tools.compiler.classfile.ConstantPoolNameAndType ag1 =
            (net.rim.tools.compiler.classfile.ConstantPoolNameAndType) o;
        _aHashtableV(hashtable, ag1.getType());
      }
    }

    j = q1.getNumFields();
    for (int l = 0; l < j; l++) {
      net.rim.tools.compiler.classfile.ClassFileField ak1 = q1.getField(l);
      net.rim.tools.compiler.classfile.TypeDescriptor d1 = ak1.getDescriptor();
      _aHashtableV(hashtable, d1.getString());
    }

    j = q1.getNumMethods();
    for (int i1 = 0; i1 < j; i1++) {
      net.rim.tools.compiler.classfile.ClassFileMethod ah1 = q1.getMethod(i1);
      net.rim.tools.compiler.classfile.TypeDescriptor d2 = ah1.getDescriptor();
      _aHashtableV(hashtable, d2.getString());
    }

    String s2 = q1.getClassNameString();
    z_ifHashtable.put(s2, hashtable);
  }
Example #2
0
 public void resolve(net.rim.tools.compiler.classfile.ConstantPool __constantPool)
     throws IOException {
   if (utf8 == null) utf8 = (ConstantPoolUTF8) __constantPool.getConstantPoolEntry(super.index);
 }