コード例 #1
0
  /** {@inheritDoc} */
  public void addContents(DexFile file) {
    MixedItemSection wordData = file.getWordData();

    if (classAnnotations != null) {
      classAnnotations = wordData.intern(classAnnotations);
    }

    if (fieldAnnotations != null) {
      for (FieldAnnotationStruct item : fieldAnnotations) {
        item.addContents(file);
      }
    }

    if (methodAnnotations != null) {
      for (MethodAnnotationStruct item : methodAnnotations) {
        item.addContents(file);
      }
    }

    if (parameterAnnotations != null) {
      for (ParameterAnnotationStruct item : parameterAnnotations) {
        item.addContents(file);
      }
    }
  }