public boolean classStart(int access, String name) { classBegin(access,name); return true; }
public void method(Clazz.MethodDef defined) { if (defined.isConstructor()) constructor(defined.access, defined.descriptor); else method(defined.access, defined.name, defined.descriptor); }
public void field(Clazz.FieldDef defined) { field(defined.access, defined.name, defined.descriptor); }
className = (String) pool[intPool[this_class]]; if (cd != null) cd.classBegin(access_flags, className); packageReference(pack); if (cd != null) cd.extendsClass(zuper); .readUnsignedShort()]]; if (cd != null) cd.implementsInterfaces(interfaces); cd.field(access_flags, pool[descriptor_index].toString()); descriptors.add(new Integer(descriptor_index)); doAttributes(in, ElementType.FIELD, false); if ("<init>".equals(name)) { if (cd != null) cd.constructor(access_flags, descriptor); doAttributes(in, ElementType.CONSTRUCTOR, crawl); } else { if (cd != null) cd.method(access_flags, name, descriptor); doAttributes(in, ElementType.METHOD, crawl); } finally { if (cd != null) cd.classEnd();
if (!cd.classStart(access_flags, className)) return null; packageReference(pack); if (cd != null) cd.extendsClass(zuper); interfaces[i] = (String) pool[intPool[in.readUnsignedShort()]]; if (cd != null) cd.implementsInterfaces(interfaces); cd.field(last = new FieldDef(access_flags, className, name, pool[descriptor_index].toString())); descriptors.add(new Integer(descriptor_index)); MethodDef mdef = new MethodDef(access_flags, className, name, descriptor); last = mdef; cd.method(mdef); } finally { if (cd != null) cd.classEnd();
private void doAnnotations(DataInputStream in, ElementType member, RetentionPolicy policy) throws IOException { int num_annotations = in.readUnsignedShort(); // # of annotations for (int a = 0; a < num_annotations; a++) { if (cd == null) doAnnotation(in, member, policy, false); else { Annotation annotion = doAnnotation(in, member, policy, true); cd.annotation(annotion); } } }
private void doParameterAnnotations(DataInputStream in, ElementType member, RetentionPolicy policy) throws IOException { int num_parameters = in.readUnsignedByte(); for (int p = 0; p < num_parameters; p++) { if (cd != null) cd.parameter(p); doAnnotations(in, member, policy); } }
cd.addReference(sb.toString());
private void doAnnotations(DataInputStream in, ElementType member, RetentionPolicy policy) throws IOException { int num_annotations = in.readUnsignedShort(); // # of annotations for (int a = 0; a < num_annotations; a++) { if (cd == null) doAnnotation(in, member, policy, false); else { Annotation annotion = doAnnotation(in, member, policy, true); cd.annotation(annotion); } } }
private void doParameterAnnotations(DataInputStream in, ElementType member, RetentionPolicy policy) throws IOException { int num_parameters = in.readUnsignedByte(); for (int p = 0; p < num_parameters; p++) { if (cd != null) cd.parameter(p); doAnnotations(in, member, policy); } }
cd.addReference(sb.toString());