public static String opName(int opcode) {
    switch (opcode) {
      case NOP:
        return "nop";
      case MOVE:
        return "move";
      case MOVE_PARAM:
        return "move-param";
      case MOVE_EXCEPTION:
        return "move-exception";
      case CONST:
        return "const";
      case GOTO:
        return "goto";
      case IF_EQ:
        return "if-eq";
      case IF_NE:
        return "if-ne";
      case IF_LT:
        return "if-lt";
      case IF_GE:
        return "if-ge";
      case IF_LE:
        return "if-le";
      case IF_GT:
        return "if-gt";
      case SWITCH:
        return "switch";
      case ADD:
        return "add";
      case SUB:
        return "sub";
      case MUL:
        return "mul";
      case DIV:
        return "div";
      case REM:
        return "rem";
      case NEG:
        return "neg";
      case AND:
        return "and";
      case OR:
        return "or";
      case XOR:
        return "xor";
      case SHL:
        return "shl";
      case SHR:
        return "shr";
      case USHR:
        return "ushr";
      case NOT:
        return "not";
      case CMPL:
        return "cmpl";
      case CMPG:
        return "cmpg";
      case CONV:
        return "conv";
      case TO_BYTE:
        return "to-byte";
      case TO_CHAR:
        return "to-char";
      case TO_SHORT:
        return "to-short";
      case RETURN:
        return "return";
      case ARRAY_LENGTH:
        return "array-length";
      case THROW:
        return "throw";
      case MONITOR_ENTER:
        return "monitor-enter";
      case MONITOR_EXIT:
        return "monitor-exit";
      case AGET:
        return "aget";
      case APUT:
        return "aput";
      case NEW_INSTANCE:
        return "new-instance";
      case NEW_ARRAY:
        return "new-array";
      case FILLED_NEW_ARRAY:
        return "filled-new-array";
      case CHECK_CAST:
        return "check-cast";
      case INSTANCE_OF:
        return "instance-of";
      case GET_FIELD:
        return "get-field";
      case GET_STATIC:
        return "get-static";
      case PUT_FIELD:
        return "put-field";
      case PUT_STATIC:
        return "put-static";
      case INVOKE_STATIC:
        return "invoke-static";
      case INVOKE_VIRTUAL:
        return "invoke-virtual";
      case INVOKE_SUPER:
        return "invoke-super";
      case INVOKE_DIRECT:
        return "invoke-direct";
      case INVOKE_INTERFACE:
        return "invoke-interface";
      case MOVE_RESULT:
        return "move-result";
      case MOVE_RESULT_PSEUDO:
        return "move-result-pseudo";
      case FILL_ARRAY_DATA:
        return "fill-array-data";
      case INVOKE_POLYMORPHIC:
        return "invoke-polymorphic";
      case INVOKE_CUSTOM:
        return "invoke-custom";
    }

    return "unknown-" + Hex.u1(opcode);
  }
Gets the name of the given opcode.

@param opcode the opcode
@return {@code non-null;} its name
android/android_framework/dex-maker/src/main/java/com/android/dx/rop/code/RegOps.java