public static DalvCode translate(
      RopMethod method,
      int positionInfo,
      LocalVariableInfo locals,
      int paramSize,
      DexOptions dexOptions) {
    RopTranslator translator =
        new RopTranslator(method, positionInfo, locals, paramSize, dexOptions);
    return translator.translateAndGetResult();
  }
Translates a {@link RopMethod}. This may modify the given input.

@param method {@code non-null;} the original method
@param positionInfo how much position info to preserve; one of the static constants in {@link
    PositionList}
@param locals {@code null-ok;} local variable information to use
@param paramSize size, in register units, of all the parameters to this method
@param dexOptions {@code non-null;} options for dex output
@return {@code non-null;} the translated version
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/code/RopTranslator.java