com.android.dx.dex.code
Class RopTranslator

java.lang.Object
  extended by com.android.dx.dex.code.RopTranslator

public final class RopTranslator
extends Object

Translator from RopMethod to DalvCode. The translate(com.android.dx.rop.code.RopMethod, int, com.android.dx.rop.code.LocalVariableInfo, int, com.android.dx.dex.DexOptions) method is the thing to call on this class.


Method Summary
static DalvCode translate(RopMethod method, int positionInfo, LocalVariableInfo locals, int paramSize, DexOptions dexOptions)
          Translates a RopMethod.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

translate

public static DalvCode translate(RopMethod method,
                                 int positionInfo,
                                 LocalVariableInfo locals,
                                 int paramSize,
                                 DexOptions dexOptions)
Translates a RopMethod. This may modify the given input.

Parameters:
method - non-null; the original method
positionInfo - how much position info to preserve; one of the static constants in PositionList
locals - null-ok; local variable information to use
paramSize - size, in register units, of all the parameters to this method
dexOptions - non-null; options for dex output
Returns:
non-null; the translated version


Copyright © 2013. All Rights Reserved.