org.objectweb.jac.core.translators
Class WrappeeTranslator_BCEL

java.lang.Object
  extended byorg.objectweb.jac.core.translators.WrappeeTranslator_BCEL
All Implemented Interfaces:
WrappeeTranslator

public class WrappeeTranslator_BCEL
extends Object
implements WrappeeTranslator


Constructor Summary
WrappeeTranslator_BCEL(LoadtimeRTTI rtti)
          Translator initializator.
 
Method Summary
 byte[] fillClassRTTI(String aClass)
          Computes RTTI info for a class and gets its bytecode
static boolean isCollection(String type)
           
protected  boolean isTranslated(JavaClass javaClass)
          Returns true if the class is already translated (ie it contains a field named __JAC_TRANSLATED)
 byte[] translateClass(String aClass)
          Translate a class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappeeTranslator_BCEL

public WrappeeTranslator_BCEL(LoadtimeRTTI rtti)
Translator initializator.

Method Detail

isTranslated

protected boolean isTranslated(JavaClass javaClass)
Returns true if the class is already translated (ie it contains a field named __JAC_TRANSLATED)


translateClass

public byte[] translateClass(String aClass)
                      throws Exception
Translate a class

Specified by:
translateClass in interface WrappeeTranslator
Parameters:
aClass - name of the class to translate
Returns:
bytecode of the translated class
Throws:
Exception

fillClassRTTI

public byte[] fillClassRTTI(String aClass)
                     throws Exception
Computes RTTI info for a class and gets its bytecode

Specified by:
fillClassRTTI in interface WrappeeTranslator
Parameters:
aClass - name of the class analyze
Returns:
bytecode of the class
Throws:
Exception

isCollection

public static boolean isCollection(String type)