public Constant parseValueAttribute() {
    Constant result;

    try {
      result = parseValue();

      if (input.available() != 0) {
        throw new ParseException("extra data in attribute");
      }
    } catch (IOException ex) {
      // ByteArray.MyDataInputStream should never throw.
      throw new RuntimeException("shouldn't happen", ex);
    }

    return result;
  }
Parses an annotation value ({@code element_value}) attribute.

@return {@code non-null;} the parsed constant value
android/android_framework/dex-maker/src/main/java/com/android/dx/cf/direct/AnnotationParser.java