private void addClass(ClassInfo clazz) { addClassName(clazz.name()); if (clazz.superName() != null) addClassName(clazz.superName()); addTypeList(clazz.typeParameterArray()); addTypeList(clazz.interfaceTypeArray()); addType(clazz.superClassType()); // Inner class data DotName enclosingClass = clazz.enclosingClass(); if (enclosingClass != null) { addClassName(enclosingClass); } String name = clazz.simpleName(); if (name != null) { addString(name); } addEnclosingMethod(clazz.enclosingMethod()); addMethodList(clazz.methodArray()); addFieldList(clazz.fieldArray()); for (Entry<DotName, List<AnnotationInstance>> entry : clazz.annotations().entrySet()) { addClassName(entry.getKey()); for (AnnotationInstance instance: entry.getValue()) { addAnnotation(instance); } } }
private void writeClassEntry(PackedDataOutputStream stream, ClassInfo clazz) throws IOException { stream.writePackedU32(positionOf(clazz.name())); stream.writePackedU32(clazz.flags()); stream.writePackedU32(clazz.superClassType() == null ? 0 : positionOf(clazz.superClassType()));
ClassInfo clazz = (ClassInfo) enclosingTarget; int position = target.asClassExtends().position(); type = position == 65535 ? clazz.superClassType() : clazz.interfaceTypeArray()[position]; break;
int index = extendsTarget.position(); if (index == 65535) { clazz.setSuperClassType(resolveTypePath(clazz.superClassType(), typeAnnotationState)); } else if (index < clazz.interfaceTypes().size()) { Type[] types = clazz.copyInterfaceTypes();