org.objectweb.speedo.generation.enhancer
Class InheritanceModifier
java.lang.Object
ClassAdapter
org.objectweb.speedo.generation.enhancer.LoggedClassAdapter
org.objectweb.speedo.generation.enhancer.InheritanceModifier
- public class InheritanceModifier
- extends LoggedClassAdapter
Modify the inheritance in order to permit the compilation.
Before the compilation the parent of the children classes (classes
inheriting from another persistent class) are setting to the Parent proxy
class. After the compilation the inheritance link is coming back to the
real class.
ex: Kangaroo extends Animal
Action before the compilation: Kangaroo extends AnimalProxy
Action after the compilation: Kangaroo extends Animal
- Author:
- S.Chassande-Barrioz
- See Also:
- Serialized Form
Method Summary |
void |
visit(int version,
int access,
java.lang.String name,
java.lang.String superName,
java.lang.String[] interfaces,
java.lang.String sourceFile)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InheritanceModifier
public InheritanceModifier(ClassVisitor classVisitor,
Logger logger,
SpeedoClass sc,
boolean beforeCompilation)
visit
public void visit(int version,
int access,
java.lang.String name,
java.lang.String superName,
java.lang.String[] interfaces,
java.lang.String sourceFile)