org.objectweb.fractal.aokell.lib.asm
Class ASMGeneratorForBoundableInterface
java.lang.Object
org.objectweb.fractal.aokell.lib.asm.ASMGeneratorForBoundableInterface
- All Implemented Interfaces:
- GeneratorItf
public class ASMGeneratorForBoundableInterface
- extends Object
- implements GeneratorItf
This class generates Interface
implementations for interfaces which are bound to a target interface.
This is typically the case of:
- interfaces own by composite components,
- client interfaces associated to primitive components.
- Author:
- Lionel Seinturier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASMGeneratorForBoundableInterface
public ASMGeneratorForBoundableInterface()
generate
public ClassDefinition generate(String targetClassname,
String delegateClassname)
- Generate an Interface implementation by extending
InterfaceImpl
.
- Specified by:
generate
in interface GeneratorItf
- Parameters:
targetClassname
- the name of the generated classdelegateClassname
- the name of the class where calls will be delegated
- Returns:
- the generated class definition (Class and bytecode)
getInterfaceImpl
protected String getInterfaceImpl()
- Return the name of the Interface implementation to be used as
super class for generated implementations.