Class CfTranslator
java.lang.Object
com.android.dx.dex.cf.CfTranslator
Static method that turns
byte[]s containing Java
classfiles into ClassDefItem instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassDefItemtranslate(DxContext context, DirectClassFile cf, byte[] bytes, CfOptions cfOptions, DexOptions dexOptions, DexFile dexFile) Takes abyte[], interprets it as a Java classfile, and translates it into aClassDefItem.
-
Method Details
-
translate
public static ClassDefItem translate(DxContext context, DirectClassFile cf, byte[] bytes, CfOptions cfOptions, DexOptions dexOptions, DexFile dexFile) Takes abyte[], interprets it as a Java classfile, and translates it into aClassDefItem.- Parameters:
context-non-null;the state global to this invocation.cf-non-null;the class filebytes-non-null;contents of the filecfOptions- options for class translationdexOptions- options for dex outputdexFile-non-null;dex output- Returns:
non-null;the translated class
-