public static Rop opAget(TypeBearer type) {
    switch (type.getBasicType()) {
      case Type.BT_INT:
        return AGET_INT;
      case Type.BT_LONG:
        return AGET_LONG;
      case Type.BT_FLOAT:
        return AGET_FLOAT;
      case Type.BT_DOUBLE:
        return AGET_DOUBLE;
      case Type.BT_OBJECT:
        return AGET_OBJECT;
      case Type.BT_BOOLEAN:
        return AGET_BOOLEAN;
      case Type.BT_BYTE:
        return AGET_BYTE;
      case Type.BT_CHAR:
        return AGET_CHAR;
      case Type.BT_SHORT:
        return AGET_SHORT;
    }

    return throwBadType(type);
  }
Returns the appropriate {@code aget} rop for the given type. The result is a shared instance.

@param type {@code non-null;} element type of array being accessed
@return {@code non-null;} an appropriate instance
android/android_framework/dex-maker/src/main/java/com/android/dx/rop/code/Rops.java