com.android.dx.dex.cf
Class CfTranslator

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

public class CfTranslator
extends Object

Static method that turns byte[]s containing Java classfiles into ClassDefItem instances.


Method Summary
static ClassDefItem translate(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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

translate

public static ClassDefItem translate(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:
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


Copyright © 2015. All rights reserved.