Class CfTranslator

java.lang.Object
com.android.dx.dex.cf.CfTranslator

public class CfTranslator extends Object
Static method that turns byte[]s containing Java classfiles into ClassDefItem instances.
  • Method Details

    • translate

      public static ClassDefItem translate(DxContext context, DirectClassFile cf, byte[] bytes, CfOptions cfOptions, DexOptions dexOptions, DexFile dexFile)
      Takes a byte[], interprets it as a Java classfile, and translates it into a ClassDefItem.
      Parameters:
      context - non-null; the state global to this invocation.
      cf - non-null; the class file
      bytes - non-null; contents of the file
      cfOptions - options for class translation
      dexOptions - options for dex output
      dexFile - non-null; dex output
      Returns:
      non-null; the translated class