com.googlecode.d2j.Field.toString()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(122)

本文整理了Java中com.googlecode.d2j.Field.toString()方法的一些代码示例,展示了Field.toString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Field.toString()方法的具体详情如下:
包路径:com.googlecode.d2j.Field
类名称:Field
方法名:toString

Field.toString介绍

暂无

代码示例

代码示例来源:origin: pxb1988/dex2jar

private int acceptField(ByteBuffer in, int lastIndex, DexClassVisitor dcv,
    Map<Integer, Integer> fieldAnnotationPositions, Object value, int config) {
  int diff = (int) readULeb128i(in);
  int field_access_flags = (int) readULeb128i(in);
  int field_id = lastIndex + diff;
  Field field = getField(field_id);
  // //////////////////////////////////////////////////////////////
  DexFieldVisitor dfv = dcv.visitField(field_access_flags, field, value);
  if (dfv != null) {
    if ((config & SKIP_ANNOTATION) == 0) {
      Integer annotation_offset = fieldAnnotationPositions.get(field_id);
      if (annotation_offset != null) {
        try {
          read_annotation_set_item(annotation_offset, dfv);
        } catch (Exception e) {
          throw new DexException(e, "while accept annotation in field:%s.", field.toString());
        }
      }
    }
    dfv.visitEnd();
  }
  // //////////////////////////////////////////////////////////////
  return field_id;
}

代码示例来源:origin: SparkInLee/dexdiff

private int acceptField(ByteBuffer in, int lastIndex, DexClassVisitor dcv,
    Map<Integer, Integer> fieldAnnotationPositions, Object value, int config) {
  int diff = (int) readULeb128i(in);
  int field_access_flags = (int) readULeb128i(in);
  int field_id = lastIndex + diff;
  Field field = getField(field_id);
  // //////////////////////////////////////////////////////////////
  DexFieldVisitor dfv = dcv.visitField(field_access_flags, field, value);
  if (dfv != null) {
    if ((config & SKIP_ANNOTATION) == 0) {
      Integer annotation_offset = fieldAnnotationPositions.get(field_id);
      if (annotation_offset != null) {
        try {
          read_annotation_set_item(annotation_offset, dfv);
        } catch (Exception e) {
          throw new DexException(e, "while accept annotation in field:%s.", field.toString());
        }
      }
    }
    dfv.visitEnd();
  }
  // //////////////////////////////////////////////////////////////
  return field_id;
}

相关文章