org.objectweb.jac.core
Interface WrappeeTranslator

All Known Implementing Classes:
WrappeeTranslator_BCEL

public interface WrappeeTranslator

WrappeeTranslator translates a regular java class into a wrappable one.

This translation is usually done at load time. After the translation, the class subclasses the JacObject class.

Author:
Renaud Pawlak, Lionel Seinturier, Fabrice Legond-Aubry

Method Summary
 byte[] fillClassRTTI(String aClass)
          Computes RTTI info for a class and gets its bytecode
 byte[] translateClass(String name)
          Translate a class
 

Method Detail

translateClass

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

Parameters:
name - the name of the class to translate
Returns:
the byte code or null i the class was not translated
Exception

fillClassRTTI

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

Parameters:
aClass - name of the class analyze
Returns:
bytecode of the class
Exception