/** {@inheritDoc} */ public String getConciseIdentity() { return "annotation_set_item @0x" + Integer.toHexString(getOffset()); }
/** {@inheritDoc} */ protected void writeItem(AnnotatedOutput out) { if (out.annotates()) { out.annotate(4, "size: 0x" + Integer.toHexString(annotationSets.length) + " (" + annotationSets.length + ")"); for (AnnotationSetItem annotationSetItem: annotationSets) { out.annotate(4, "annotation_set_off: 0x" + Integer.toHexString(annotationSetItem.getOffset())); } } out.writeInt(annotationSets.length); for (AnnotationSetItem annotationSetItem: annotationSets) { out.writeInt(annotationSetItem.getOffset()); } }
out.annotate(4, "class_annotations_off: 0x" + Integer.toHexString(classAnnotations.getOffset())); } else { out.annotate(4, "class_annotations_off:"); out.annotate(4, "field: " + fieldAnnotationFields[i].getFieldName().getStringValue() + ":" + fieldAnnotationFields[i].getFieldType().getTypeDescriptor()); out.annotate(4, "annotations_off: 0x" + Integer.toHexString(fieldAnnotations[i].getOffset())); out.deindent(); out.indent(); out.annotate(4, "method: " + methodAnnotationMethods[i].getMethodString()); out.annotate(4, "annotations_off: 0x" + Integer.toHexString(methodAnnotations[i].getOffset())); out.deindent(); out.writeInt(classAnnotations==null?0:classAnnotations.getOffset()); out.writeInt(fieldAnnotations==null?0:fieldAnnotations.length); out.writeInt(methodAnnotations==null?0:methodAnnotations.length); for (int i=0; i<fieldAnnotations.length; i++) { out.writeInt(fieldAnnotationFields[i].getIndex()); out.writeInt(fieldAnnotations[i].getOffset()); for (int i=0; i<methodAnnotations.length; i++) { out.writeInt(methodAnnotationMethods[i].getIndex()); out.writeInt(methodAnnotations[i].getOffset());
/** {@inheritDoc} */ public String getConciseIdentity() { return "annotation_set_item @0x" + Integer.toHexString(getOffset()); }
/** {@inheritDoc} */ protected void writeItem(AnnotatedOutput out) { if (out.annotates()) { out.annotate(4, "size: 0x" + Integer.toHexString(annotationSets.length) + " (" + annotationSets.length + ")"); for (AnnotationSetItem annotationSetItem: annotationSets) { out.annotate(4, "annotation_set_off: 0x" + Integer.toHexString(annotationSetItem.getOffset())); } } out.writeInt(annotationSets.length); for (AnnotationSetItem annotationSetItem: annotationSets) { out.writeInt(annotationSetItem.getOffset()); } }
fieldAnnotation.field.getFieldType().getTypeDescriptor()); out.annotate(4, "annotations_off: 0x" + Integer.toHexString(fieldAnnotation.annotationSet.getOffset())); out.deindent(); out.annotate(4, "method: " + parameterAnnotation.method.getMethodString()); out.annotate(4, "annotations_off: 0x" + Integer.toHexString(parameterAnnotation.annotationSet.getOffset())); out.writeInt(classAnnotations==null?0:classAnnotations.getOffset()); out.writeInt(fieldAnnotations==null?0:fieldAnnotations.length); out.writeInt(methodAnnotations==null?0:methodAnnotations.length); for (FieldAnnotation fieldAnnotation: fieldAnnotations) { out.writeInt(fieldAnnotation.field.getIndex()); out.writeInt(fieldAnnotation.annotationSet.getOffset());